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: 

error in user-exits

Former Member
0 Kudos

Hi ,

Im to code some custom-checks in USEREXIT_PRICING_CHECK module of enhancement MV61AFZA

. If the checks failed , i've to throw an error and stop processing . How do i do throw an error and stop current action. I mean if i use message type E the whole screen is disabled. Can i set sy-subrc value to 4 . Will it help me.

Looking for your valuable suggestions.

BYe

3 REPLIES 3

Former Member
0 Kudos

Hi Mac,

If you want to throw error and stop procssing, then you can write your test condition in following manner:

CHAIN

(test condition)

END-CHAIN.

also, You can use any value of Sy-Subrc. In SAP, value of SY-Subrc other than 0 is same. It makes difference only i FM where you have to cath an exception.

Hope it helps.

Former Member
0 Kudos

HI Mac

USEREXIT_PRICING_CHECK (module pool SAPMV61, program MV61AFZA)

You can install additional checks to the standard checks of condition lines (e.g. maximum/minimum value).

Check the following link

http://help.sap.com/saphelp_40b/helpdata/es/14/f62c7dd435d1118b3f0060b03ca329/content.htm

http://help.sap.com/saphelp_46c/helpdata/en/14/f62c7dd435d1118b3f0060b03ca329/frameset.htm

Hope it will help you

Regards

sachin sharma

Former Member
0 Kudos

thnx for all your help guys