2008 Aug 08 9:25 AM
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
2008 Aug 08 9:27 AM
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
2008 Aug 08 10:17 AM
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..
2008 Aug 08 10:19 AM
2008 Aug 08 10:51 AM
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
2008 Aug 08 9:34 AM
hi,
For passing values to the other Program.
http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm
Regards
Sumit Agarwal
2008 Aug 08 9:38 AM
2008 Aug 08 9:43 AM
2016 Jul 26 9:25 AM
2016 Jul 26 9:43 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |