2010 Mar 05 12:17 PM
Hi All,
I'm writing a code in my user-exit as
IF sy-subrc EQ 0 .
likp-lifsk = 90.
IF sy-tcode EQ 'VL02N' AND sy-batch EQ SPACE.
MESSAGE 'Delivery is Marked for Inactive' TYPE 'E'.
ENDIF.
ENDIF.
Above code will be triggered when i click on Display<> change button in application tool bar of 'VL02N'.
Now when i go txcode 'VL02N' then the Error message is displayed as i was expecting but when i press enter after error message then 'CHANGE' mode is enabled which I DONT want. I kept a break point at error message but after the error message code is out of my code. So can anyone tell me how to come to normal VL02N txcode after the error message.
Regards
VEnk@
2010 Mar 05 12:38 PM
Resolved by myself...Here is the solution..
We need to use Type I rather than E and after the error message i wrote 'Leave screen 0' by which it is now working as needed.
Regards
VEnk@
2010 Mar 05 12:39 PM
Hi,
VL02N is for changing purpose.
So the flow is correct right ?
2010 Mar 05 12:41 PM
Venkat,
As I understood, you are implementing user-exit for VL02N (Change mode)u2026
Here, after you Error message surely will call the rest of code, means it will continues with VL02N transactionu2026
I hope, after Error message you want to call document in Display mode (VL03N)u2026if my assumption is correct, try to call the VL03N with parameters at this pointu2026.
Regards,
Sreenu Valeti
2010 Mar 05 12:44 PM
We need to use Type I rather than E
Great venket
Regards,
Sreenu Valeti
2010 Mar 05 12:46 PM
I didnt find anything which is great in that line...If you feel any please tell me....:)
Edited by: Venkat Reddy on Mar 5, 2010 6:16 PM