2010 May 27 10:47 AM
I am using the BAdi LE_SHP_DELIVERY_PROC and using method SAVE_DOCUMENT_PREPARE and simply writing the following code update for updating LIPS_KVGR1
if sy-tcode eq 'VL02N'.
loop at ct_xlips into wa_lips.
wa_lips-kvgr1 = '01'.
modify ct_xlips from wa_lips transporting KVGR1.
endloop.
endif.
But Its not updating the field when user not changed any fields in VL02N and simple press save.
Or i need to use any other userexit/badi.
My objective is to update LIPS-KVGR1 field thru VL02N
a®
I am using the BAdi LE_SHP_DELIVERY_PROC and using method SAVE_DOCUMENT_PREPARE and simply writing the following code update for updating LIPS_KVGR1
if sy-tcode eq 'VL02N'.
loop at ct_xlips into wa_lips.
wa_lips-kvgr1 = '01'.
modify ct_xlips from wa_lips transporting KVGR1.
endloop.
endif.
But Its not updating the field when user not changed any fields in VL02N and simple press save.
Or i need to use any other userexit/badi.
My objective is to update LIPS-KVGR1 field thru VL02N
a®
2010 May 27 10:55 AM
Hi,
Does the control goes to the code while you save delivery without changing anything ?
Regards
Vinod
2010 May 27 11:07 AM
2010 May 27 11:11 AM
Try also to set field UPDKZ in the table ct_xlips.
Kind regards.
André Witt
2010 May 27 11:24 AM
I have set the UPDKZ in CT_XLIPS but it getting "update Terminated" while saving.
a®
2010 May 27 11:26 AM
Hi,
Have you set ct_xlips-updkz to 'U' ? Are you getting any short dump ?
Regards
Vinod
2010 May 28 2:19 AM
2010 May 28 7:55 AM
The update error should raise a shortdump, could you please check in ST22 and post the error here.
What you could do ist, set a break-point into your programming code, make a change in delivery and check then, how the update-identifier in the different tables are stored. Perhaps you need also to set the update-identifier also in header level.
Kind regards
André
2010 May 28 7:05 AM
I dont think that COMMIT WORK will be executed if you dont change anything in VL02N.
That might be the reason why it was not updated.
--
Reddy
2010 May 28 8:11 AM
This is a code that i have used previously and worked for all cases....check if it helps
LOOP AT ct_xlips ASSIGNING <lf_lipsvb>
WHERE posnr = lv_posnr
or uecha = lv_posnr.
<lf_lipsvb>-updkz = 'U'.
<lf_lipsvb>-some field= lv_zaott_upsno.
ENDLOOP.
2010 May 31 10:23 AM
Issue resolved.
We need put entry (old value) in ct_ylips table.
a®
2010 Jun 20 8:39 AM
Hello,
I am facing the same issue of updating LIPS table. I am trying to update the field LIPS-LGMNG.
Can you please specify, exactly what entry we have to make in ct_ylips Table??
Regards
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |