Application Development 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: 

How to edit a program dynamically called from another program

Former Member
0 Kudos

Hi all,

Can anyone help me in coding for a program which call's another

report dynamically from selection screen(for instance z_dynam_called)

and retreive the whole content of the dynamically called program(z_dynam_called)

into an internal table and replace the contents of the internal table with some new code and put it back in z_dynam_called and save it.

Thanks in advance.

Needful will be rewarded with points

4 REPLIES 4

Former Member
0 Kudos

Desparately waiting for responses .

Former Member
0 Kudos

Hi,

Follow this:

1) U can pass data from one program to another in a single login using SAP memory......

2) u can create a DBtable update dat table using ur first pgm and fetch from second program.....

3) U can pass the report output using EXPORT TO MEMORY addition and get it back using IMPORT FROM MEMORY..........

Eg:

Export the selected rows to the next program

EXPORT final TO MEMORY ID 'ABC'.

CALL TRANSACTION 'XXX'.

XXX is the tcode for the other program where u want to import the values.

In the second program

INITIALIZATION.

IMPORT the internal table from the first program

IMPORT final FROM MEMORY ID 'ABC'.

Thanks and Regards,

Reward If Helpful

Former Member
0 Kudos

Atleast someone provide me some related links near to the requirement.

Former Member
0 Kudos

someone pls help me out !!!