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

MB_MIGO_BADI Implementation

Former Member
0 Likes
623

Hi,

I want a badi to be triggered on posting of a goods issue document .

For this i am using method POST_Document inside MB_MIGO_BADI.

Can anyone advise how to use the tables is_mkpf and it_mseg.

I need to fetch some additional details about the GI document  like material no. through this badi.

Regards,

Hi,

I want a badi to be triggered on posting of a goods issue document .

For this i am using method POST_Document inside MB_MIGO_BADI.

Can anyone advise how to use the tables is_mkpf and it_mseg.

I need to fetch some additional details about the GI document  like material no. through this badi.

Regards,

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
504

You did not found MATNR looping at IT_MSEG ?

Regards,

Raymond

Read only

0 Likes
504

You can't add info at post method. This method is just to check all information before commit.

You can use the LINE_MODIFY Method for this propose.

Read only

Former Member
0 Likes
504

Hi,

Use read table statement with index 1 to read data from it_msg. This table always having only one record.

READ TABLE it_mseg INTO ls_mseg INDEX 1.

if sy-subrc eq 0.

 

Read table it_mkpf into ls_mkpf where mblnr =  ls_mseg-mblnr    

                                                              mjahr = ls_mseg-mjahr. 

here you can use all fields whatever you required.

endif.

endif.