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

Pass parameter between programs

Former Member
0 Likes
731

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,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
684

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

4 REPLIES 4
Read only

Former Member
0 Likes
684

Hi,

Please try IMPORT & EXPORT statement to pass the vaules.

This might help you.

Read only

Former Member
0 Likes
684

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

Read only

Former Member
0 Likes
685

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

Read only

Former Member
0 Likes
684

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