Skip to Content

display message on variable screen

Hi All,

I want use to input value for only one of the two variables and not both. I am using below FM but message is not being displayed.

I have added this code for step 3.

CALL FUNCTION 'RRMS_MESSAGE_HANDLING'

EXPORTING

I_CLASS = 'RSBBS'

I_TYPE = 'W'

I_NUMBER = '000'

I_MSGV1 = 'Year cannot be blank.'

EXCEPTIONS

DUMMY = 0

OTHERS = 0.

can anyone help on this?

regards,

purvang

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2009 at 08:16 PM

    Try

      I_TYPE = 'I'
    

    and

      I_TYPE = 'E'
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 29, 2009 at 07:21 AM

    Hi

    Try with this

    CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
    EXPORTING
    I_CLASS = 'RSBBS'
    I_TYPE = 'E'
    I_NUMBER = '000'
    I_MSGV1 = 'Year cannot be blank.' .
    raise again.
    

    hope this helps

    Sonal....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2009 at 12:00 PM

    Hi Purvang,

    In the properties of variable, set it as Mandatory so that query will not execute if nothing is entered in that field.

    you can do this from query designer. go to that variable (under Restrictions). on the right pane, you can view the properties of variable.

    now it might be selected as optional. change it to mandatoryu.

    Cheers,

    Srinath.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      Matthias: I am already checking the variable value in second variable's exit code so there isnt any need to implement third one to check other two. But still i will check with I_STEP = 2 and let you know.

      GK: I am using customer exit code but with little customization, here the code to be executed for a variable exit is contained in a class and when I use "RAISE no_replacement." it gives error that "There is no such exception as no_replacement" Can you give me some idea to force it from inside class method.

      Thanks,

      Purvang

  • author's profile photo Former Member
    Former Member
    Posted on Aug 26, 2009 at 07:06 PM

    Hi,

    you can try using a third variable. This variable is of type exit and you need to implement the I_STEP = 2 or 3 to

    check if one of other variables has been set. Please check if this would work for you.

    Regards Matthias Nutt

    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.