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

pop up window

Former Member
0 Likes
802

Does any one know the FM that can be use as a pop up window for user, requesting to enter input at selection screen.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
766

Sure try using the following function module.



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,

Rich Heilman

Does any one know the FM that can be use as a pop up window for user, requesting to enter input at selection screen.

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
767

Sure try using the following function module.



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,

Rich Heilman

Read only

0 Likes
766

Hi Rich Hillman

thanks It gave me clue to solve it.

Fay

Read only

Former Member
0 Likes
766

Hi,

Please check this FM.

POPUP_GET_VALUES

POPUP_TO_GET_ONE_VALUE

POPUP_GET_VALUES_USER_BUTTONS

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
766

Hi Fayyaz,

You can use two fm.one is POPUP_GET_VALUES and the other is

POPUP_TO_GET_ONE_VALUE.

Read only

Former Member
0 Likes
766

Hi

try out these FM:

POPUP_TO_GET_ONE_VALUE

POPUP_GET_VALUES

POPUP_GET_VALUES_USER_BUTTONS

PLZ REWARD POINTS IF HELPFUL