Skip to Content
0
Oct 05, 2009 at 10:34 AM

Submit program with new parameters

49 Views

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