Skip to Content
0
Former Member
Jul 21, 2008 at 02:26 PM

user exit for VL02N/VL01N

348 Views

Hi Friends:

I'm using an user exit (include programs) MV50AFZ1. Under the form 'USEREXIT_SAVE_DOCUMENT' I've written some code.

if lips-werks = ' '.

if sy-langu = 'E'.

message E000(zprinoth).

elseif sy-langu = 'F'.

message E001(zprinoth).

endif.

endif.

this code basicall triggers at the time of saving the delivery when the plant is blank. No when the user tries to do a PGI directly from here, it gives the same error which is ok. But when the user presses 'ENTER', then its gives a further error message & throws out of the transaction. PLease help me to resolve it. I want that when user hits enter, he should be able to modify rather than kicked out.

suitable points will be rewarded.

Thanks