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

Select options

Hi friends,

Can any one tell me how to check the entries in the input screen for the <b>select option</b> in the selection screen.

Thanx n Regards,

Venu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Oct 17, 2006 at 02:22 PM

    hi,

    chk this code.

    SELECT-OPTIONS : s_kunnr for kna1-kunnr.

    At selection-screen .

    if s_kunnr-low = your condition.

    show message.

    endif.

    like that

    if s_kunnr-high = your condition.

    show message.

    endif.

    rgds

    anver

    if hlped pls mark points

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 04:00 PM

    We normally don't. Let's say the select option is for customers and the user enters values of '0000000000' to '0000100000'. Neither of these custmers may exist, but there may be many customers in that range.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 04:25 PM

    Hi Venu,

    I hope the below code will help you out..

    if the code suits your requirement, reward points.

    TABLES MARA.

    PARAMETERS: P_MATNR LIKE MARA-MATNR.

    AT SELECTION-SCREEN ON P_MATNR.

    SELECT SINGLE MATNR

    FROM MARA

    INTO MARA-MATNR

    WHERE MATNR = P_MATNR.

    IF SY-SUBRC <> 0.

    MESSAGE I000(Z00) WITH 'Material' P_MATNR 'Not Found'.

    ENDIF.

    --satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 04:45 PM

    Hi,

    Generally you will not check the select-options in the selection screen..

    If you still want to do that..Try this..

    SELECT-OPTIONS SO_MATNR FOR MARA-MATNR.

    AT SELECTION-SCREEN.

    SELECT * UP TO ONE ROWS

    FROM MARA

    WHERE MATNR IN SO_MATNR.

    ENDSELECT.

    IF SY-SUBRC <> 0.

    MESSAGE E000.

    ENDIF.

    Thanks,

    Naren

    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.