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 and Return in ABAP

Former Member
0 Likes
39,290

Hi Guyz,

I created a program using submit and return..since it there is an existing program named ZFF_STA_VESSEL which wil generate a per cost center report, i will call it to my program ZF_SummarySOA which will create a multiple cost center report..so less coding of program.

My code looks like this :

SUBMIT zff_sta_vessel AND RETURN

WITH s_bukrs IN s_bukrs

WITH s_monat IN s_monat

WITH s_gjahr IN s_gjahr

WITH s_fblart = s_fblart

WITH s_tblart = s_tblart

WITH p_waers = p_waers

WITH p_fxrtr = p_fxrtr

WITH p_fxrte = p_fxrte

WITH gy_kostl = s_kostl

WITH gy_bbf = p_bbfwd.

at the left side are my fields in ZF_SummarySOA and at the right side the fields from ZFF_STA_VESSEL.

my main problem is i will pass values to the left fields..but no values found at the right field.

for example the value of gy_kostl = P_SUN so the value of s_kostl must be P_SUN also..it happens no value found in s_kostl.

how can I solve this?

Please give advise.

Thanks in advance,

aVaDuDz

Hi Guyz,

I created a program using submit and return..since it there is an existing program named ZFF_STA_VESSEL which wil generate a per cost center report, i will call it to my program ZF_SummarySOA which will create a multiple cost center report..so less coding of program.

My code looks like this :

SUBMIT zff_sta_vessel AND RETURN

WITH s_bukrs IN s_bukrs

WITH s_monat IN s_monat

WITH s_gjahr IN s_gjahr

WITH s_fblart = s_fblart

WITH s_tblart = s_tblart

WITH p_waers = p_waers

WITH p_fxrtr = p_fxrtr

WITH p_fxrte = p_fxrte

WITH gy_kostl = s_kostl

WITH gy_bbf = p_bbfwd.

at the left side are my fields in ZF_SummarySOA and at the right side the fields from ZFF_STA_VESSEL.

my main problem is i will pass values to the left fields..but no values found at the right field.

for example the value of gy_kostl = P_SUN so the value of s_kostl must be P_SUN also..it happens no value found in s_kostl.

how can I solve this?

Please give advise.

Thanks in advance,

aVaDuDz

9 REPLIES 9
Read only

bpawanchand
Active Contributor
0 Likes
8,853

HI

USe WITH SELECTION-TABLE of SUBMIT statement

WITH SELECTION-TABLE <rspar>, dynamic transfer of values

You need an internal table <rspar> with the Dictionary structure RSPARAMS. The table then consists of the following six fields:

SELNAME (type C, length 😎 for the name of the selection criterion or parameter

KIND (type C, length 1) for the selection type (S for selection criterion, P for parameter)

SIGN, OPTION, LOW, HIGH as in a normal selection table, except that LOW and HIGH both have type C and length 45.

http://www.sapdevelopment.co.uk/reporting/rep_submit.htm

Regards

Pavan

Read only

0 Likes
8,853

hi Pavan,

i tried this but still no data passing to my right values...any other idea which went wrong?should be the parameter im passing to the left field must be the same type to my right field?

Please help..

Read only

0 Likes
8,853

hi,

That is a must.

Reagrds

Sumit Agarwal

Read only

0 Likes
8,853

Hi ,

Is there something wrong with my coding?Please check

rspar_line-selname = 'SELCRIT1'.

rspar_line-kind = 'S'.

rspar_line-sign = 'I'.

rspar_line-option = 'EQ'.

rspar_line-low = wa_hierarchyvalues-valto.

APPEND rspar_line TO rspar_tab.

SUBMIT ZFF_STA_VESSEL_BCK AND RETURN

WITH s_bukrs IN s_bukrs

WITH s_monat IN s_monat

WITH s_gjahr IN s_gjahr

WITH s_fblart = s_fblart

WITH s_tblart = s_tblart

WITH p_waers = p_waers

WITH p_fxrtr = p_fxrtr

WITH p_fxrte = p_fxrte

with rspar_tab = s_kostl

WITH p_bbfwd = p_bbfwd.

no value for s_kostl..since rspart_tab is ok..s_kostl is a select-option in ZFF_STA_VESSEL_BCK program.

Thanks

Read only

Former Member
0 Likes
8,853

hi,

For passing values to the other Program.

http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm

Regards

Sumit Agarwal

Read only

Former Member
Read only

Former Member
8,853

use syntex:

SUBMIT <report name> VIA SELECTION-SCREEN

AMit.

Read only

0 Likes
8,853

This message was moderated.

Read only

Chintu6august
Contributor
0 Likes
8,853

This message was moderated.