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

transfering fiels value

Former Member
0 Likes
611

Hello gurus ,

I have two transaction in module pool program , I want to transfer some field value ( ex plant) from one transaction to another transaction field ex (plant) .

In selection screen its so simple , but how to do in module pool .

I am waiting for your valuable reply .

Regards ,

Joy .

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
587

Hi.

Use the memory ID Concept.

1. When u use memory id, make sure of the

following points.

a) The memory id is SAME as the variable name

b) Memory id should be in CAPITAL

c) When u want to import,

the variable name should be same as original one,

and should be declared in the same fashion only.

*-------- for Z1
report zmem_sha.
DATA : PERNR LIKE P0001-PERNR.
PERNR = '00004556'.
EXPORT PERNR TO MEMORY ID 'PERNR'.
CALL TRANSACTION 'ZTR01'.

*-------- For Z2 (having tcode ZTR01)
report abc.
DATA : PERNR LIKE P0001-PERNR.
IMPORT PERNR FROM MEMORY ID 'PERNR'.
BREAK-POINT

Regards,

Anversha

Hello gurus ,

I have two transaction in module pool program , I want to transfer some field value ( ex plant) from one transaction to another transaction field ex (plant) .

In selection screen its so simple , but how to do in module pool .

I am waiting for your valuable reply .

Regards ,

Joy .

4 REPLIES 4
Read only

anversha_s
Active Contributor
0 Likes
588

Hi.

Use the memory ID Concept.

1. When u use memory id, make sure of the

following points.

a) The memory id is SAME as the variable name

b) Memory id should be in CAPITAL

c) When u want to import,

the variable name should be same as original one,

and should be declared in the same fashion only.

*-------- for Z1
report zmem_sha.
DATA : PERNR LIKE P0001-PERNR.
PERNR = '00004556'.
EXPORT PERNR TO MEMORY ID 'PERNR'.
CALL TRANSACTION 'ZTR01'.

*-------- For Z2 (having tcode ZTR01)
report abc.
DATA : PERNR LIKE P0001-PERNR.
IMPORT PERNR FROM MEMORY ID 'PERNR'.
BREAK-POINT

Regards,

Anversha

Read only

0 Likes
587

thanks friend , its really working .

Read only

Former Member
Read only

Former Member
0 Likes
587

done