Skip to Content
author's profile photo Former Member
Former Member

error in user-exits

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 17, 2008 at 05: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 17, 2008 at 06: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 06:52 AM

    thnx for all your help guys

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.