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

SUBMIT

Former Member
0 Likes
896

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
829

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

6 REPLIES 6
Read only

Former Member
0 Likes
829

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

Read only

Former Member
0 Likes
830

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

Read only

0 Likes
829

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.

Read only

0 Likes
829

Hi again

In the same SUBMIT statement can I capture error if I want to?

Read only

Former Member
0 Likes
829

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

Read only

anversha_s
Active Contributor
0 Likes
829

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