09-26-2007 4:37 AM
MY requirement is
After execution of selection screen ,i will process the selection screen validations and then i want a small window to be popuped where i should enter a text and click ok,
after this the rest of the code must be performed.
Is any body there who came across these kind of scenario,if so do help me.
09-26-2007 4:46 AM
hi,
report zrich_0001 .
data: ivals type table of sval with header line.
data: x_datum type sy-datum,
x_uzeit type sy-uzeit.
parameters: p_check.
at selection-screen.
ivals-tabname = 'SYST'.
ivals-fieldname = 'DATUM'.
append ivals.
ivals-tabname = 'SYST'.
ivals-fieldname = 'UZEIT'.
append ivals.
call function 'POPUP_GET_VALUES'
exporting
popup_title = 'Enter Date & Time'
tables
fields = ivals
exceptions
error_in_fields = 1
others = 2.
read table ivals with key fieldname = 'DATUM'.
if sy-subrc = 0.
x_datum = ivals-value.
endif.
read table ivals with key fieldname = 'UZEIT'.
if sy-subrc = 0.
x_uzeit = ivals-value.
endif.
start-of-selection.
write:/ x_datum, x_uzeit.
regards
siva
09-26-2007 4:42 AM
Hi,
U have to call the function module,
<b>POPUP_TO_CONFIRM</b>...
Please reward points if useful.
09-26-2007 4:47 AM
09-26-2007 4:44 AM
In the event START-OF-SELECTION, try calling function POPUP_TO_FETCH_ONE_VALUE.
09-26-2007 4:46 AM
hi,
report zrich_0001 .
data: ivals type table of sval with header line.
data: x_datum type sy-datum,
x_uzeit type sy-uzeit.
parameters: p_check.
at selection-screen.
ivals-tabname = 'SYST'.
ivals-fieldname = 'DATUM'.
append ivals.
ivals-tabname = 'SYST'.
ivals-fieldname = 'UZEIT'.
append ivals.
call function 'POPUP_GET_VALUES'
exporting
popup_title = 'Enter Date & Time'
tables
fields = ivals
exceptions
error_in_fields = 1
others = 2.
read table ivals with key fieldname = 'DATUM'.
if sy-subrc = 0.
x_datum = ivals-value.
endif.
read table ivals with key fieldname = 'UZEIT'.
if sy-subrc = 0.
x_uzeit = ivals-value.
endif.
start-of-selection.
write:/ x_datum, x_uzeit.
regards
siva
09-26-2007 4:54 AM
Hi,
According to you code you can do a call screen functionality. In the screen you input some text and then put some button in it so that you can accept the same and can continue with the rest of the execution.
Syntax:
CALL SCREEN <screen_NO> STARTING AT X1 Y1
ENDING AT X2 Y2.
Thanks,
Samantak.
<b>Rewards points for useful answers.</b>