Quantcast
Channel: SCN: Message List - RBKP and BKPF table update from MIRO
Viewing all 11 articles
Browse latest View live

Re: RBKP and BKPF table update from MIRO

$
0
0

Hi

 

Which is your release?

 

I think it's useless your code, because the MIRO doesn't fill BKPF table directly, but just as I said It's use the structure ACCIT and ACCHD, u need to fill these structures in order to transfer your data to accounting document.

 

Max

 

Edited by: max bianchi on Nov 24, 2008 6:52 PM


Re: RBKP and BKPF table update from MIRO

$
0
0

Hi Pablo,

 

The problem has been solved now. I have used the code from your last post and used the BADI AC_DOCUMENT.

 

@Pablo...Thank you very much for you help and time. Your response time is great.

 

Thanks max. I think your reply has directed as to the structure ACCIT.

 

I will close the message and award the points :-).

 

Regards, Vijay

Table update BSEG BSET BKPF

$
0
0

Hi,

I have a requirement where I need to add a new field in the the basic view of the MIRO and FB60 wherein it accepts the VAT value manually calculated and saves in the tables.

There is a report s_alr_600* where this value should populate .

The report gives all the values like the input and the output VAT tax amount.

So the value I will input in the MIRO and FB60 should reflect in the report.

 

I found a screen BADI  BADI_FDCB_SUBBAS01 here I have added a screen field.

The value from this scrren field should update the value in the table BSEG.BSET.BKPF.

 

This should work for both MIRO and FB60 transactions.

 

Regards,

Bhaskar Jayaram

Re: Table update BSEG BSET BKPF

$
0
0

Hi Baskar,

 

I have done this thing from MIRO transaction to update BKPF table. Please check the below code.

 

METHOD if_ex_badi_fdcb_subbas01~put_data_to_screen_object.

 

  CONSTANTS:

  c_bkpf_xref1(25) TYPE c VALUE '(SAPLFDCB)BKPF-XREF1_HD'.

  FIELD-SYMBOLS: <fs_bkpf_xref1> TYPE ANY.

 

  • fill interface attributes from importing paramters

  me->if_ex_badi_fdcb_subbas01~invfo  = im_invfo.

 

  ASSIGN (c_bkpf_xref1) TO <fs_bkpf_xref1>.

  IF sy-subrc = 0.

    <fs_bkpf_xref1> = me->if_ex_badi_fdcb_subbas01~invfo-zlet_number.

  ENDIF.

 

ENDMETHOD.

 

METHOD if_ex_badi_fdcb_subbas01~get_data_from_screen_object.

 

CONSTANTS:

c_bkpf_xref1(25) TYPE c VALUE '(SAPLFDCB)BKPF-XREF1_HD'.

 

FIELD-SYMBOLS: <fs_bkpf_xref1> TYPE ANY.

 

  • fill export parameters from interface attributes

  ex_invfo  = me->if_ex_badi_fdcb_subbas01~invfo.

 

ASSIGN (c_bkpf_xref1) TO <fs_bkpf_xref1>.

if sy-subrc = 0.

<fs_bkpf_xref1> = ex_invfo-zlet_number.

endif.

 

ENDMETHOD.

 

After passing the data through field symbols, then you need to update the BKPF table using the BADI AC_DOCUMENT. Refer the below code.

METHOD if_ex_ac_document~change_after_check.

 

  • variable declaration

  DATA: lv_let_number  TYPE zisr_let_number,

        lv_field TYPE char18 VALUE '(SAPLMRMP)xaccit[]',

        lv_let_field TYPE char27 VALUE '(SAPLMR1M)RBKPV-ZLET_NUMBER'.

 

  • Field symbol declaration

  FIELD-SYMBOLS : <ft_accit> TYPE accit_t,

                  <fs_accit> TYPE accit,

                  <fv_let_number> TYPE ANY.

 

  • Constant declaration

  CONSTANTS : lc_miro TYPE sytcode VALUE 'MIRO'.

 

  • Check for transaction code MIRO

  IF sy-tcode EQ lc_miro.

 

    ASSIGN (lv_field) TO <ft_accit>.

    CHECK sy-subrc EQ 0.

    ASSIGN (lv_let_field) TO <fv_let_number>.

    CHECK sy-subrc EQ 0.

  • Assign the letter number to BKPF table field XREF1_HD

    LOOP AT <ft_accit> ASSIGNING <fs_accit>.

      lv_let_number = <fv_let_number>.

      <fs_accit>-xref1_hd = lv_let_number.

    ENDLOOP.

  ENDIF.

ENDMETHOD.

Re: RBKP and BKPF table update from MIRO

$
0
0

Hi All,

 

MY requirment is that i have add custom fields (Appprover name and Parked date) in FB60 in Basic Data tab.

When user click on Park button . Along with invoice ,my custom fields should also get updated into BKPF table .

I have add custom fields in INVFO and also in BKPF table .

Thanks in advance .

 

Regards,

Ishant

Re: RBKP and BKPF table update from MIRO

$
0
0

Hi,

the badi you´re using is an appropriate one but there are others available:

e.g.

badi -> INVOICE_UPDATE

method -> CHANGE_AT_SAVE

 

But you can perfectly do it in badi BADI_FDCB_SUBBAS01.

Please do try first the field symbols option i propose and if it does not

work then try with the other badi i propose.

 

Best regards.

 

Edited by: Pablo Casamayor on Nov 24, 2008 8:27 AM

 

Re: RBKP and BKPF table update from MIRO

$
0
0

Hi,

i´d use the code in PAI of dynpro 0100 in badi BADI_FDCB_SUBBAS

in module user_command_0100

 

just after this piece of code:

 

* put data to main screen    CALL METHOD o_badi_fdcb_subbas04->put_data_to_screen_object      EXPORTING        im_invfo = invfo.

 

the posting gets triggered when you click on post button.

but if there is any error you´re not allowed to continue.

Thus if you click on simulate button all the errors are shown.

Once you have no errors at all then you can post a document and then

is when BKPF gets updated.

There is good sap documentation about the whole process.

 

Hope to have helped.

Best regards.

Best regards.

 

Re: RBKP and BKPF table update from MIRO

$
0
0

Hi,

 

try this:

 

&---------------------------------------------------------------------
*& Module USER_COMMAND_0100 INPUT&---------------------------------------------------------------------

text 
----------------------------------------------------------------------
MODULE user_command_0100 INPUT.

CHECK NOT o_badi_fdcb_subbas01 IS INITIAL.
CONSTANTS:
c_bkpf_xref1(25) TYPE c VALUE '(SAPLFDCB)BKPF-XREF1_HD'.
FIELD-SYMBOLS: <fs_bkpf_xref1> TYPE ANY.

ASSIGN (c_bkpf_xref1) TO <fs_bkpf_xref1>.
if sy-subrc = 0.<fs_bkpf_xref1> = invfo-zlet_number.
endif.

* put data to main screen 
CALL METHOD o_badi_fdcb_subbas01->put_data_to_screen_object
EXPORTING
im_invfo = invfo.

ENDMODULE. " USER_COMMAND_0100 INPUT

 

i´ve found i:t

This is where BKPF receives  the new values in MIRO transaction:

program SAPLFDCB

include   LFDCBU03

FUNCTION  MM_VENDOR_DIALOG_COMP_IMPORT

 

search for this:

MOVE-CORRESPONDING i_ac_vendor_comp_import TO bseg.  bseg-koart = 'K'.  MOVE-CORRESPONDING i_ac_vendor_comp_import TO bsec.  MOVE-CORRESPONDING i_ac_vendor_comp_import TO bkpf.  MOVE i_ac_vendor_comp_import-mm_belnr TO bkpf-belnr.  MOVE i_ac_vendor_comp_import-mm_gjahr TO bkpf-gjahr.

 

Best regards.

 

Edited by: Pablo Casamayor on Nov 24, 2008 10:25 AM

 


Re: RBKP and BKPF table update from MIRO

$
0
0

hi,

don´t know what to say.

For me this solution works perfectly.

 

Best regards.

 

Re: RBKP and BKPF table update from MIRO

Re: RBKP and BKPF table update from MIRO

$
0
0

Use badi_fdcb_subbas04 it will work and append the field to the tables and structures as mentioned above.

Viewing all 11 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>