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

parameter validation

i have parameter namely A to select multiple enteries.

(created thru Select-options command)

and i have one single input parameter namely B.

After entry of A parameter and B parameter values,

i want to check whether B value exists within Parameter A

if not exists i have to display error.

could you pls give idea how to do this.

ambichan.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2005 at 07:24 AM

    sorry again.

    AT SELECTION-SCREEN ON S_BUKRS(multiple parameter).

    loop at s_bukrs.

    IF S_BUKRS-LOW NE V_BUKRS(single parameter) AND

    S_BUKRS-HIGH NE V_BUKRS.

    MESSAGE E010(HB).

    ENDIF.

    endloop.

    whether this will work...? i guess this will only check for low and high values..but if i select multiple selection apart from range..how to check with that.

    Real requirement is to check V_Bukrs value exists in S_BUKRS parameter or not.

    could you give me sample code.? if possible.

    ALso one more thing is, As soon as user entered V_Bukrs it should fire this checking thats the problem here.

    ambichan.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2005 at 06:39 AM

    Hi,

    There are more than one ways. Try AT SELECTION SECREEN ON END OF >, A in your case. Take a look at http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/at_selec.htm or http://help.sap.com/saphelp_nw04/helpdata/en/79/34a240d9b511d1950e0000e8353423/content.htm for further details.

    Alternatively, on the event, AT SELECTION SCREEN, you can simply loop at your selection table and check whether B exists in A.

    Hope this help.

    Regards

    Message was edited by: Shehryar Khan

    Message was edited by: Shehryar Khan

    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.