Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BADI for MIGO

0 Kudos
834

Hi,

  Is there any BADI to update MKPF-XBLNR (Reference)  from MKPF-FRBNR (Bill Of Lading) during MIGO.

  Regards.

7 REPLIES 7
Read only

alejandro_mejias
Active Participant
0 Kudos
609

Try MB_MIGO_BADI

Read only

0 Kudos
609

Hi,

   I tried MB_MIGO_BADI, but not able to update.

Regards.

Read only

0 Kudos
609

MB_DOCUMENT_BADI_SAP, MB_DOCUMENT_BADI,

Also customer exit EXIT_SAPLMBMB_001.

best regards

Read only

0 Kudos
609

Hi,

   I used BADI   MB_DOCUMENT_BADI.

   have written the code as 

     data: wa_mkpf type mkpf.
      read table xmkpf INDEX 1 into wa_mkpf .
      wa_mkpf-xblnr = wa_mkpf-frbnr.

     when i used modify statement to  modify xmkpf  am getting  error  like "XMKPF cannot be changed".

Plz anybody can help regarding this.


Read only

0 Kudos
609

Hi Sreejith,

R u using any condition with modify ?

Try using below code

READ TABLE ABC INTO WA_ABC WITH KEY a1 = a2
                                                                     b1 = b2
                                                                     c3 = c3.
               IF sy-subrc EQ 0.
                 MODIFY XYZ FROM WA_ABC
                                 TRANSPORTING X1 X2
                       WHERE a1 = x1
               ENDIF.


Can u please write your exact code ?

Read only

Sijin_Chandran
Active Contributor
0 Kudos
609

Better Try with BADI MB_DOCUMENT_UPDATE .

Read only

former_member188827
Active Contributor
0 Kudos
609

Please check enhancement "MB_CF001".

Regards