‎2006 Oct 04 11:10 AM
I want to use SUBMIT command with the selection screen filled with values from an internal table .
Example:-
submit RSNAST00 with s_appl eq vit_nast_final-kappl sign 'I'
s_objky eq vit_nast_final-objky sign 'I'
s_kschl eq vit_nast_final-kschl sign 'I'
s_nacha eq vit_nast_final-nacha sign 'I'.
I am not able to get any result by writing the above code.
What shall I do to make it work.
Thank You
‎2006 Oct 04 11:15 AM
Hi subash
Please refer following code:
submit RSNAST00
with s_objky = r_objky
with s_kschl = r_kschl
with s_nacha = r_nacha
and return.
Regards
Srikanth
‎2006 Oct 04 11:13 AM
Fill ranges of the same type as the select-options and pass them
r_appl-sign = 'I'.
r_appl-option = 'EQ'.
r_appl-low = vit_nast_final-kappl.
append r_appl.
.
.
..
submit RSNAST00 with s_appl in R_appl
s_objky in r_objky
s_kschl in r_skschl
s_nacha in r_nacha.
Regards,
Ravi
‎2006 Oct 04 11:15 AM
Hi subash
Please refer following code:
submit RSNAST00
with s_objky = r_objky
with s_kschl = r_kschl
with s_nacha = r_nacha
and return.
Regards
Srikanth
‎2006 Oct 04 12:30 PM
Hi Srikant..
You cant use
submit RSNAST00
with s_objky = r_objky
with s_kschl = r_kschl
with s_nacha = r_nacha
and return.
the correct way is
submit RSNAST00
with s_objky in r_objky
with s_kschl in r_kschl
with s_nacha in r_nacha
and return.
I tried both the ways in my program, the second one works fine.
The first one passes some weird values to the selection parameters of the called screen.
Anyways Thank you for ur valuable assistance.
‎2006 Oct 04 12:36 PM
Hi again
In the same SUBMIT statement can I capture error if I want to?
‎2006 Oct 04 11:19 AM
Hi,
You Can Do As follows.
DATA seltab TYPE rsparams OCCURS 0.
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = 'ZSNP_DEMAND_SUPPLY_MATCH'
TABLES
selection_table = seltab.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SUBMIT ZSNP_DEMAND_SUPPLY_MATCH WITH SELECTION-TABLE seltab .
regards
Ahasan
‎2006 Oct 04 11:24 AM
hi subhash,
try this.
*Code used to populate 'select-options' & execute report
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
seltab_wa-low = 'value..'.
append seltab_wa to seltab.
SUBMIT zreport with selection-table seltab
via selection-screen.
rgds
anver