Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

can we display a message before selection screen

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

12 REPLIES 12

athavanraja
Active Contributor
0 Kudos

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

Raja

sreeramkumar_madisetty
Active Contributor
0 Kudos

Hi

Use can achieve this using:

Selection-screen output event.

Regards,

Sree

Former Member
0 Kudos

hi,

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

Regards,

Richa

Former Member
0 Kudos

Hi,

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

Regards

Shiva

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

where i have to include selection screen output.

i am using select options for selecting input

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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