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: 

Retrieve parameter values from a subscreen...

Former Member
0 Kudos

Hi...

I'm having problems retrieving the data typed on parameter fields inside a subscreen, created in a report.

I have created this subscreen.

SELECTION-SCREEN BEGIN OF SCREEN 500 AS SUBSCREEN.

PARAMETERS: p_file TYPE file,

            p_user TYPE sy-uname,

            p_date TYPE sy-datum.

SELECTION-SCREEN END OF SCREEN 500.

Then I call screen 100 which has a subscreen area:

START-OF-SELECTION.

  CALL SCREEN 100.

In screen 100 pbo i have:

  CALL SUBSCREEN sel INCLUDING sy-repid 500.

The screen shows up.

I programmed the USER_COMMAND for screen 100.

when I run the program, the parameters are not filled.

My friend told me to run then FM, in the pbo of the next screen.

  CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'

    EXPORTING

      curr_report     = sy-repid

    TABLES

      selection_table = it_rsparams.

But it's not getting the filled data.

Can anyone gimme a hand here??

Thanks.

1 ACCEPTED SOLUTION

Former Member

Put this in your PAI of screen 100. Make sure call subscreen is your first statement to ensure your values are populated first.

PROCESS AFTER INPUT.
  CALL SUBSCREEN sel.
  MODULE m0100_user_command.

You do not need to call that function.

2 REPLIES 2

Former Member

Put this in your PAI of screen 100. Make sure call subscreen is your first statement to ensure your values are populated first.

PROCESS AFTER INPUT.
  CALL SUBSCREEN sel.
  MODULE m0100_user_command.

You do not need to call that function.

0 Kudos

lol... I missed that part... Thanks a lot...