‎2009 Jun 25 10:31 AM
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?
‎2009 Jun 25 10:43 AM
Can you explain what params ar eu passing and how.
Did u debug to check if the params are getting mapped correctly ?
‎2009 Jun 25 10:40 AM
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.
‎2009 Jun 25 10:43 AM
Can you explain what params ar eu passing and how.
Did u debug to check if the params are getting mapped correctly ?
‎2009 Jun 25 10:46 AM
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.
‎2009 Jun 25 10:48 AM
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?
‎2009 Jun 25 11:15 AM
after using get..
i think i am unable to delete the parameter from memory.
FREE MEMORY ID 'K'.
pls correct
‎2009 Jun 25 12:03 PM
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