05-30-2007 7:25 AM
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
05-30-2007 9: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
05-30-2007 7:28 AM
just provide is as information on the selection screen itself using comment statement.
Raja
05-30-2007 7:29 AM
Hi
Use can achieve this using:
Selection-screen output event.
Regards,
Sree
05-30-2007 7: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
05-30-2007 7:31 AM
Hi,
Try writing a message of type either I or S in Selection screen input
Regards
Shiva
05-30-2007 7: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.
05-30-2007 7: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
05-30-2007 7: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
05-30-2007 7:55 AM
where i have to include selection screen output.
i am using select options for selecting input
05-30-2007 8:39 AM
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
05-30-2007 7: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
05-30-2007 7: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
05-30-2007 9: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