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 not working as expected

Former Member
0 Likes
729

i am calling a report (rep2) which has LDB,with selection parameters as table.

i am calling this frm a report (rep1) using a loop.

basicaly rep2 is to be called multiple times with different sets of selection parameters from rep1.

but becasue of similar declarations of varioables in rep1 and rep2 ,rep2 is not generating list as per its selections..

how to sovle?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
692

Can you explain what params ar eu passing and how.

Did u debug to check if the params are getting mapped correctly ?

6 REPLIES 6
Read only

Former Member
0 Likes
692

Hi,

how ur using submit statements...

you use like this to pass ur values to rep2 selection-screen parameters.

LOOP AT ITAB.

...................
...................

SUBMIT rep2 TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                          SPOOL PARAMETERS <spool_par_name>
                          WITH PNPPERNR-LOW EQ ITAB-PERNR
                          AND RETURN.

........................
........................

ENDLOOP.

Here i specified only one parameter of rep2 i.e PNPPERNR-LOW.

Like this how many parameters are exists on selection screen of rep2, those and all you pass the vales which u need to pass.

Read only

Former Member
0 Likes
693

Can you explain what params ar eu passing and how.

Did u debug to check if the params are getting mapped correctly ?

Read only

0 Likes
692

Hi,

That code i wrote for example.

You have to know that wat type of values you have to pass to the parameters of REP2 from REP1 in SUBMIT statement.

can you tell me wat type of parameters ur having in REP2 and wat ur passing from REP1.

Read only

0 Likes
692

I made 2 copies of RFITEMAP,

rep1 calls rep2 with changed posting dates,

using set and get i want to get a value.

but rep2 ahs same varialbes as rep1.

is this why,rep2 doesnt calcualte according to changed parameters?

Read only

0 Likes
692

after using get..

i think i am unable to delete the parameter from memory.

FREE MEMORY ID 'K'.

pls correct

Read only

0 Likes
692

hI,

yes you are right.. try to clear the memory id..

syntax: FREE MEMORY [ID <key>].

Go through this link for sample code for free:

http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3beb358411d1829f0000e829fbfe/frameset.htm