‎2008 Nov 19 12:15 PM
Hi,
I need to pass one parameter between 3 programs :
That is the actual flow of my parameter.
SAPF110V -> RFFOBE_I -> which include ZRFFORI99B)
get param <- RFFOBE_I <- set param
with statments
SET PARAMETER ID 'ZDBL' FIELD p_doublon.
GET parameter ID 'ZDBL' FIELD p_doublons.But unfortunatly it doesn't work 😕 (value of my param = 0)
I can run the include program in debug because it is run in background...
I can't use a Ztable
Any idea to pass value between this flow ?
Thanks,
‎2008 Nov 19 12:40 PM
Get / Set parameter will work only if parameter is maintained for that particular user.
System --> User Profile --> Own data --> Parameters.
You have to speficy your Parameter id at above location.
Regards,
Mohaiyuddin
‎2008 Nov 19 12:20 PM
Hi,
Please try IMPORT & EXPORT statement to pass the vaules.
This might help you.
‎2008 Nov 19 12:23 PM
Hi,
Pass the parameters using Export and Retrieve the values using IMPORT
EXPORT cb_zterm
cb_kdate
cb_inco1
cb_verkf
cb_telf1
i_final
i_final_1 TO DATABASE indx(me) ID v_key.
*
SUBMIT z0021_a TO SAP-SPOOL
SPOOL PARAMETERS v_params
WITHOUT SPOOL DYNPRO
VIA JOB v_jobname
NUMBER v_jobcount
AND RETURN.
IMPORT cb_zterm cb_kdate cb_inco1 cb_verkf cb_telf1 i_final i_final_1
FROM DATABASE indx(me) ID v_key.
Regards,
Nandha
‎2008 Nov 19 12:40 PM
Get / Set parameter will work only if parameter is maintained for that particular user.
System --> User Profile --> Own data --> Parameters.
You have to speficy your Parameter id at above location.
Regards,
Mohaiyuddin
‎2008 Nov 19 12:50 PM
Hello,
The value which you want to pass between the programs can be stored in the SAP memory space by using the IMPORT and EXPORT to MEMORY ID statement.
EXPORT <internal table/variable> to MEMORY-ID 'MY MEMORY'.
Above statement will keep the value in SAP memory by creating a memory named as 'MY MEMORY'.
IMPORT <internal table/variable> from MEMORY-ID 'MY MEMORY'.
Above statement will get the value from SAP memory space.
But while using the above statement please consider that all the three programs should be run in the same session because the Memory that you are using will automatically be cleaned up by the Garbage collector as the session ends.
Hope it helps.
Thanks,
Jayant.
<<text removed - don't ask for points>>
Edited by: Matt on Nov 19, 2008 7:48 PM