Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Default delivery block

Former Member
0 Likes
297

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

1 REPLY 1
Read only

Former Member
0 Likes
265

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