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

Using SUBMIT, EXPORT and IMPORT

Former Member
0 Likes
489

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....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
448

hi rayblur,

2 nd report yu mean at line selection.

3 REPLIES 3
Read only

Former Member
0 Likes
449

hi rayblur,

2 nd report yu mean at line selection.

Read only

Former Member
0 Likes
448

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.

Read only

Former Member
0 Likes
448

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.