‎2008 Aug 14 10:11 PM
Hi,
I want to put a defaullt Delivery block in sales order if the material is changed.
if sy-tcode = 'VA02'.
if xvbap-matnr ne yvbap-matnr.
vbak-lifsk = '40'. '40 is a Delivery block
endif.
endif.
with this, the block is placed when the material is changed. but if someone manually checks and removes the block, while saving the order it puts back the block again.
What can i do to prevent that. I am a functional guy and trying to manage w/o a developer.
if anyone can provide the code. Points will be given.
Thanks
‎2008 Aug 15 3:24 AM
Hi Penn ,
u can also check XVBAK-UPDKZ( update Indicator ,i'm not sure of the field name , please check it) ,
if its newly created then value will be I , in case of change it will be U , so based on it u can prevent.
regards
Prabhu