‎2006 Sep 28 2:05 PM
Dear All,
I would like to know how to use these commands above to solve my reports issues...
There are two reports created, one is a customized P/L report and another is Balance Sheet Report.
In P/L report there a number of select-options of
period and fiscal year
different cost elements.
eg.
select-options: trp3rp for coej-kstar.
select-options: trpalg for coej-kstar.
select-options: itc3rp for coej-kstar.
After running this report I will get values
in one variable total..
In 2nd report which is a Balance sheet Report will need to
get the total from the Report 1 ( P/L )
how can it be done??
does anyone have any idea utilizing these three commands above to solve my issues??
hope anyone can help me
thanks....
‎2006 Sep 28 2:08 PM
‎2006 Sep 28 2:08 PM
‎2006 Sep 28 2:09 PM
Hi rayblur,
1. U want the value of some variable xyz
from program 1,
into program 2.
2. We can use what u said.
3. Just make sure of the following things.
4. a) the variable name should be same
(in prog1, prog2)
b) The Declaration should also match
c) use export / import with the same name as variable
In prog1:
eg. DATA : MYVAR TYPE I.
EXPORT MYVAR TO MEMORY ID 'MYVAR'
In prog2:
eg. DATA : MYVAR TYPE I.
IMPORT MYVAR FROM MEMORY ID 'MYVAR'
5. Then it will work fine.
6. Moreover, u can check the value of
sy-subrc just after export/import
to know, whether it was successful or not.
regards,
amit m.
‎2006 Sep 28 2:15 PM
Hi Rayblur,
1. Run report 1. In it once the total is determined pass the same field f1. Export to memory using
'EXPORT f1 to memory id '.
2. Run report 2. In it import the same field f1 from memory. 'IMPORT f1 from memory id '.
Note: Ensure the data declaration and also the name of the field f1 is identical in both the reports for the export and import to work.
Regards.