Application Development and Automation 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: 
Read only

can we display a message before selection screen

Former Member
0 Likes
2,982

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
Read only

Former Member
0 Likes
1,954

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

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

12 REPLIES 12
Read only

athavanraja
Active Contributor
0 Likes
1,954

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

Raja

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,954

Hi

Use can achieve this using:

Selection-screen output event.

Regards,

Sree

Read only

Former Member
0 Likes
1,954

hi,

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

Regards,

Richa

Read only

Former Member
0 Likes
1,954

Hi,

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

Regards

Shiva

Read only

Former Member
0 Likes
1,954

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.

Read only

Former Member
0 Likes
1,954

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

Read only

Former Member
0 Likes
1,954

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

Read only

0 Likes
1,954

where i have to include selection screen output.

i am using select options for selecting input

Read only

0 Likes
1,954

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

Read only

Former Member
0 Likes
1,954

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

Read only

Former Member
0 Likes
1,954

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

Read only

Former Member
0 Likes
1,955

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