2013 Nov 13 2:10 PM
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,
2013 Nov 14 3:38 PM
2013 Nov 14 5:40 PM
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.
2013 Nov 14 6:07 PM
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.