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

Any FM to get selection screen input values?

Former Member
0 Likes
11,119

Hi

As we are not using any variant to run Z report, am using RS_COVERPAGE_SELECTIONS to get user entred input values on the selection screen, but this FM is not giving me the result in a good/wanting format, pls. let me know is there any other FMs to get/read selection screen values of a report.

Thank you

1 ACCEPTED SOLUTION
Read only

awin_prabhu
Active Contributor
3,727

Try if FM RS_LIST_SELECTION_TABLE helps u.

6 REPLIES 6
Read only

awin_prabhu
Active Contributor
3,728

Try if FM RS_LIST_SELECTION_TABLE helps u.

Read only

0 Likes
3,726

Thank you.

But, am actually looking to get the user entered input values/data!

Read only

0 Likes
3,726

Check RS_REFRESH_FROM_SELECTOPTIONS

Read only

0 Likes
3,726

Then as suggested already try FM DYNP_VALUES_READ to read screen input values.

Read only

0 Likes
3,726

data:v_matnr type mara-matnr.
data:i_par type table of rsparams.
data:la type rsparams.
parameters:p_v type vkorg.
select-options:so1 for v_matnr.

start-of-selection.

  call function 'RS_REFRESH_FROM_SELECTOPTIONS'
    exporting
      curr_report     = sy-repid
    tables
      selection_table = i_par[].


  sort i_par by kind.
  loop at i_par into la.
    at new kind.
      read table i_par into la index sy-tabix.
      check sy-subrc = 0.
      if la-kind = 'S'.
        write 'Select-options'.
        skip 1.
      else.
        write 'parameters'.
        skip 1.
      endif.
    endat.
    at new selname.
      read table i_par into la index sy-tabix.
      check sy-subrc = 0.
      write:/ la-selname.

    endat.
    write:/ la-low.
    write: la-high.
    at end of selname.
      skip 1.
    endat.
  endloop.

Read only

Former Member
0 Likes
3,726

Hi,

Can you check FM : dynp_values_read

which reads fields in screen .

Regards,

Prasad