01-19-2016 11:38 AM
Hello guys,
I m working with badi LE_SHP_DELIVERY_PROC in that there is one method named as SAVE_AND_PUBLISH_DOCUMENT.
in that one strcuture which it_xlips i have defined one zfield value named as zzblock.
but when i going to change this structure i am getting error that "IT_Xlips cannot be changed".
"
if my using field symbol i am going to change the value of that field i am getting dump " MOVE_TO_LIT_NOTALLOWED_NODATA"
below is the code for the same :
lt_lips[] = it_xlips[].
*data : lt_check(2) type c.
Loop at lt_lips ASSIGNING <fs_lips> where uecha is INITIAL.
Loop at it_xlips ASSIGNING <fs_lips1> where uecha eq <fs_lips>-posnr.
<fs_lips1>-zzblock = <fs_lips>-zzblock .
ENDLOOP.
Please help me out in this.
Thanks & Regards,
Deepak kansal.
01-19-2016 11:51 AM
Hi.
You can't modify IT_XLIPS. It's an import parameter. You should modify global XLIPS in the memory stack but it's not a good solution.
Did you try SAVE_DOCUMENT_PREPARE method? Or try user-exit MV50AFZ1
Hope to help
Bye