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

help me in selection screen

Hi,

I have req callled ,I have two parameters statements.

If I givr wrong entry in first parameter statement it has to show error messag and other option should go for display mode.

With warm regards,

khadar.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 01:17 PM

    Hi

    You can do one thing While checking whether the value you hav entered is correct or not

    You can place a

    IF your parameter contain the desired value

    Then do the desired processing

    ELSEIF

    Made that parameter in display mode

    ENDIF

    Reward points if helpful

    Hitesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 01:18 PM

    Hi Khadar,

    Use:

    AT SELECTION-SCREEN ON <name of your parameter>.

    IF <wrong entry>.

    MESSAGE <your message>

    ENDIF.

    If the message is displayed your other parameter will go in display mode.

    Regards,

    John.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 01:19 PM

    Hi pls check out this,

    Selection screen then it is possible.

    for that you have to use AT SELECTION-SCREEN output. event..

    See the below code and use it according to your requirement.

    ======================================

    tables: pa0000, pa0001.

    parameters: p_rad1 radiobutton group rad1 default 'X' user-command rusr,

    p_rad2 radiobutton group rad1.

    selection-screen: begin of block blk1 with frame.

    select-options: s_pernr for pa0000-pernr modif id ABC.

    selection-screen: end of block blk1.

    selection-screen: begin of block blk2 with frame.

    select-options: s_stat2 for pa0000-stat2 modif id DEF.

    select-options: s_werks for pa0001-werks modif id DEF.

    selection-screen: end of block blk2.

    AT SELECTION-SCREEN output.

    LOOP AT SCREEN.

    IF SCREEN-GROUP1 = 'ABC'.

    IF p_rad1 = 'X'.

    SCREEN-ACTIVE = 1.

    ELSE.

    SCREEN-ACTIVE = 0.

    ENDIF.

    MODIFY SCREEN.

    ENDIF.

    IF SCREEN-GROUP1 = 'DEF'.

    IF p_rad2 = 'X'.

    SCREEN-ACTIVE = 1.

    ELSE.

    SCREEN-ACTIVE = 0.

    ENDIF.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    =====================================

    with regards,

    Hema.

    pls reward if helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 01:20 PM

    loop at screen

    case screen-group1.

    when ''

    .....

    screen-active = '' or screen-invisible = ''.

    modify screen.

    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 01:29 PM

    TABLES: mara.

    SELECTION-SCREEN BEGIN OF BLOCK b.

    PARAMETERS: p_p1 TYPE matnr,

    p_p2 TYPE matnr.

    SELECTION-SCREEN END OF BLOCK b.

    DATA: flag(1) TYPE c.

    AT SELECTION-SCREEN ON p_p1.

    SELECT SINGLE *

    FROM mara

    WHERE matnr = p_p1.

    IF sy-subrc <> 0.

    MESSAGE 'Invalid Material' TYPE 'I'.

    flag = 'X'.

    ELSE.

    flag = space.

    ENDIF.

    AT SELECTION-SCREEN OUTPUT.

    LOOP AT SCREEN.

    IF screen-name = 'P_P2'.

    IF flag = 'X'.

    screen-input = 0.

    MODIFY SCREEN.

    ELSE.

    screen-input = 1.

    MODIFY SCREEN.

    ENDIF.

    ENDIF.

    ENDLOOP.

    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.