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

can we display a message before selection screen

hi experts,

I need to give a message to user's to give information abt the selection screen .

like select values between 1000 to 2000 only.

date must be todays date.

so how i can display a message before the selection screen is displayed

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

10 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 08:01 AM

    yes whenever you are pressing back button the load-of-program event will trigger and it will show the popup. so you can do one thing set your own pf status and for back,exit or cancel use leave-program. But here it will directly go out of the program you cant see the selection screen again after pressing back.

    at user-command.

    case sy-ucomm.

    when 'BACK' .

    leave program.

    endcase.

    like this

    regards

    shiba dutta

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 30, 2007 at 06:28 AM

    just provide is as information on the selection screen itself using comment statement.

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 30, 2007 at 06:29 AM

    Hi

    Use can achieve this using:

    Selection-screen output event.

    Regards,

    Sree

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 06:30 AM

    hi,

    No you cannot display message before selection-screen. However, you can display the message on the selection screen using comments.

    Regards,

    Richa

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 06:31 AM

    Hi,

    Try writing a message of type either I or S in Selection screen input

    Regards

    Shiva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 06:32 AM

    HI,

    u cannot display before selection screen.

    but u can display the message in the status bar of the selection screen.try this.

    PARAMETERS:name(10).

    AT SELECTION-SCREEN OUTPUT.

    message s000(z_msg_tab).

    rgds,

    bharat.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 06:38 AM

    try like this it may be useful for you.

    load-of-program.
    
    CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
      EXPORTING
       TITEL              = 'Selection screen info'
        TEXTLINE1          = 'Material no should be between 1000 and 2000'
       TEXTLINE2          = 'Plant should be 1000'
    *   START_COLUMN       = 25
    *   START_ROW          = 6
              .
    
    start-of-selection.
    
    

    if you want some more fields to pass then search popup* fn module in se37 which can be useful 4 you.

    regards

    shiba dutta

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 06:38 AM

    Hi,

    Check the following code:

    <b>at selection-screen.</b>

    SELECT SINGLE * FROM MSEG WHERE

    MBLNR = IMBLNR.

    IF SY-SUBRC <> 0.

    MESSAGE S000(ZMM) WITH 'Please select a valid Material Number'.

    ENDIF.

    Hope this helps.

    Reward if helpful.

    Regards,

    Sipra

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi shibu,

      This is what in need .it is working perfectly but after showing the list if i go back it is again calling that pop-up window ....what to do .i have given leave list-processing but it is not coming ..anything for this problem

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 06:45 AM

    It is possible. In the event

    AT SELECTION-SCREEN OUTPUT

    give the message

    MESSAGE I<message no>

    Use the message type I

    Reward points if useful

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 06:48 AM

    Hi manikandan,

    try this short example in initialization:

    *

    PARAMETERS: P_MATNR LIKE MARA-MATNR.

    *

    initialization.

    *

    CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'

    EXPORTING

    TITEL = 'In Initialitation'

    TEXTLINE1 = 'Materialien zwischen 1000 und 2000'.

    *

    START-OF-SELECTION.

    *

    WRITE: P_MATNR.

    *

    END-OF-SELECTION.

    Regards, Dieter

    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.