2009 Jan 07 5:06 AM
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 .
2009 Jan 07 5:09 AM
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-POINTRegards,
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 .
2009 Jan 07 5:09 AM
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-POINTRegards,
Anversha
2009 Jan 07 6:18 AM
2009 Jan 07 8:34 AM
Hi Joy ,
Please check this link
http://saplab.blogspot.com/2007/10/sample-abap-program-for-module-pool.html
2009 Jan 09 5:46 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |