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: 

Hi friends

kesavadas_thekkillath
Active Contributor
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

Hi,

U have to call the function module,

<b>POPUP_TO_CONFIRM</b>...

Please reward points if useful.

0 Kudos

The main issue is i want to enter a text in that window

Former Member
0 Kudos

In the event START-OF-SELECTION, try calling function POPUP_TO_FETCH_ONE_VALUE.

Former Member
0 Kudos

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

Former Member
0 Kudos

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>