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: 

Submit program with new parameters

antonio_sanseverino
Participant
0 Kudos
196

Hello, I've a problem..

Program RFSZIS00, there is a Dynamic Selections button with my Selections... I'm working on a copy of the standard and from my ZRFSZIS00 I've to submit the same report with differents value parameters...

Now I'm using RS_REFRESH_FROM_SELECTOPTIONS FM and after the changes I can do a submit istruction.

call function 'RS_REFRESH_FROM_SELECTOPTIONS'

exporting

curr_report = 'ZRFSZIS00'

  • IMPORTING

  • SP =

tables

selection_table = it_param

exceptions

not_found = 1

no_report = 2

others = 3

.

if sy-subrc ne 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

else.

  • Set dei parametri/select options per il lancio del programma

read table it_param assigning <fs_param>

with key selname = 'P_SUBMIT'.

if sy-subrc is initial.

move 'X' to <fs_param>-low.

endif.

read table it_param assigning <fs_param>

with key selname = 'VONZEIT'.

if sy-subrc is initial.

move lv_vonzeit to <fs_param>-low.

endif.

read table it_param assigning <fs_param>

with key selname = 'BISZEIT'.

if sy-subrc is initial.

clear lv_biszeit.

lv_biszeit = vonzeit - 1.

move lv_biszeit to <fs_param>-low.

endif.

endif.

submit zrfszis00 with selection-table it_param

exporting list to memory and return.

But into my it_param there aren't the Dynamic Selections parameter and I can't change its, Is it possible to change the velaues of Dynamic Selections parameter and Submit the program?

Thanks

Antonio

1 ACCEPTED SOLUTION

venkat_o
Active Contributor
0 Kudos
127

Hi Antonio, <li>You need to use something like below,when you are calling program which has dynamic fields select.


SUBMIT report1 VIA SELECTION-SCREEN 
               WITH FREE SELECTIONS texpr.
<li>Press F1 on FREE on above statement, you will see how to use WITH FREE SELECTION. Thanks Venkat.O

2 REPLIES 2

venkat_o
Active Contributor
0 Kudos
128

Hi Antonio, <li>You need to use something like below,when you are calling program which has dynamic fields select.


SUBMIT report1 VIA SELECTION-SCREEN 
               WITH FREE SELECTIONS texpr.
<li>Press F1 on FREE on above statement, you will see how to use WITH FREE SELECTION. Thanks Venkat.O

0 Kudos
127

submit report

with selection-table seltab

with free selections seltext.

Works

Thank you