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: 

User-exit MV50AFZ1

Former Member
0 Kudos
447

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@

5 REPLIES 5

Former Member
0 Kudos
170

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@

kesavadas_thekkillath
Active Contributor
0 Kudos
170

Hi,

VL02N is for changing purpose.

So the flow is correct right ?

Former Member
0 Kudos
170

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

0 Kudos
170
We need to use Type I rather than E

Great venket

Regards,

Sreenu Valeti

0 Kudos
170

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