12-17-2008 5:32 AM
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
12-17-2008 5:41 AM
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.
12-17-2008 6:38 AM
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
12-22-2008 6:52 AM