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: 

popup with 1 entry field?

Former Member
0 Kudos

hi guys

im looking for a FM with 1 entry field with text and numbers.

this pop up must exist but i cant find it.

tks in advance.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Sure, check this out.




report zrich_0001.

  data: ivals  type table of sval.
  data: xvals  type sval.

  xvals-tabname   = 'VBAK'.
  xvals-fieldname = 'AUART'.
  append xvals to ivals.

  call function 'POPUP_GET_VALUES'
       exporting
            popup_title     = 'Choose Order Type'
       tables
            fields          = ivals
       exceptions
            error_in_fields = 1
            others          = 2.


read table ivals into xvals index 1.

write:/ xvals-value.

Regards,

RIch Heilman

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Sure, check this out.




report zrich_0001.

  data: ivals  type table of sval.
  data: xvals  type sval.

  xvals-tabname   = 'VBAK'.
  xvals-fieldname = 'AUART'.
  append xvals to ivals.

  call function 'POPUP_GET_VALUES'
       exporting
            popup_title     = 'Choose Order Type'
       tables
            fields          = ivals
       exceptions
            error_in_fields = 1
            others          = 2.


read table ivals into xvals index 1.

write:/ xvals-value.

Regards,

RIch Heilman

former_member194669
Active Contributor
0 Kudos

Hi,


  call function 'POPUP_GET_VALUES_USER_CHECKED'
    exporting
      popup_title = p_title
      programname = 'SAPMYETT2'
      formname    = 'F_STATUS_EXIT_CHECK'
    importing
      returncode  = p_return
    tables
      fields      = it_sval.

aRs