Application Development 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: 

urgent

Former Member
0 Kudos

When ever the user done the changes in va02 or filed are not maintained in va02 i have to block.how should i write the code for this.i have the exit i.e.userexit_save_document_prepare.

simply..

if the user changes the field lgort,kwmeng,vstel,netpr in va02

i need to block the hole data.(.e dilivart is not created).

1 REPLY 1

Former Member
0 Kudos

Dear Venkat,

data FCODE_PFKO like sy-ucomm.

if ( sy-dynnr eq '6002' or sy-dynnr eq '0104' ) and sy-tcode eq 'VA02'.

case sy-ucomm.

when 'SICH' or 'YES'.

message e091(zwb).

leave to current Transaction.

endcase.

endif.

Rewards points if useful,

Regards,

Sumanjeet.