Application Development 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: 

BADI for MIGO

0 Kudos

Hi,

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

  Regards.

7 REPLIES 7

alejandro_mejias
Active Participant
0 Kudos

Try MB_MIGO_BADI

0 Kudos

Hi,

   I tried MB_MIGO_BADI, but not able to update.

Regards.

0 Kudos

MB_DOCUMENT_BADI_SAP, MB_DOCUMENT_BADI,

Also customer exit EXIT_SAPLMBMB_001.

best regards

0 Kudos

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.


0 Kudos

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 ?

Sijin_Chandran
Active Contributor
0 Kudos

Better Try with BADI MB_DOCUMENT_UPDATE .

former_member188827
Active Contributor
0 Kudos

Please check enhancement "MB_CF001".

Regards