‎2009 Feb 12 4:47 PM
Hi,
I am facing problem whille updating below mentioned badi.
*MB_DOCUMENT_BADI - MB_DOCUMENT_BEFORE_UPDATE*
loop at xmseg into wa_mseg.
wa_mseg-lifnr = '156236'.
modify xmseg from wa_mseg transporting lifnr.
endloop.
Facing below error : The field "XMSEG" cannot be changed. -
Thanks in advance. Pls. goude.
Regards,
DP
‎2009 Feb 13 6:13 AM
Hi,
The method MB_DOCUMENT_BEFORE_UPDATE of BADI MB_DOCUMENT_BADI has no exporting or changing parameters. All the parameters are importing parameters and are for reference only.
Only those parameters can be changed which are either exporting or changing.
That is the reason why you are getting the error message.
Hope this helps.
Regards,
Abhisek.
‎2009 Feb 16 3:16 AM
Hi,
I just want to add that you can't use this BADI to update MSEG table. It is explained in BADI documentation why it is not possible to use it for this purpose. It has serious consequences for the consistency of your data.
Cheers