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

switch data between programs without export

kesavadas_thekkillath
Active Contributor
0 Likes
999

hi a small scenario ...

say i have program1 and program2

if i execute program1 and i want to access the internal table of program2 in program1.

is there any possibilities to acheive this without writing "Export" in program2.

is there any work arounds possible with call stacks or any other !!!

the condition is i should not use export to memory in program2

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
948

Hi,

You Can use GET and SET stmt.

You can also creat a Ztable in Se11, Where you store all data of Internal Tablea and then access that data in another program.

Create a Ztable.

Append The values or data of Internal Table of Program2 in to Z table.

Fetch this Data from select Querry in Program1.

At end of Program1 clear the Z Table by deleting all the records in Ztable.

Edited by: ShreeMohan Pugalia on Jul 24, 2009 7:50 AM

Edited by: ShreeMohan Pugalia on Jul 24, 2009 7:52 AM

10 REPLIES 10
Read only

former_member222860
Active Contributor
0 Likes
948

Hi,

How about using INCLUDE in the program,

just a prototype here:

REPORT Z_SHIP_REPORT .

* Data declaration
include z_data.

* Selection options and parameters
include z_selection.

* Initialization event
include z_initial.

* program logic
include z_logic.
*
** Output
include z_list.

Read only

0 Likes
948

hi..the program 2 here is of type E , it generates a smartform..

so including it in program 1 is not possible

Read only

Former Member
0 Likes
949

Hi,

You Can use GET and SET stmt.

You can also creat a Ztable in Se11, Where you store all data of Internal Tablea and then access that data in another program.

Create a Ztable.

Append The values or data of Internal Table of Program2 in to Z table.

Fetch this Data from select Querry in Program1.

At end of Program1 clear the Z Table by deleting all the records in Ztable.

Edited by: ShreeMohan Pugalia on Jul 24, 2009 7:50 AM

Edited by: ShreeMohan Pugalia on Jul 24, 2009 7:52 AM

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
948

No sparks ? ? ?

Read only

0 Likes
948

one using the Function Group(SET , GET Function module )

Other option using the Statuc class ,Static Attributes

Above 2 cases applicable for the Custom Programs, if you get a chance to edit and add this logic.

Edited by: Vijay Babu Dudla on Jul 24, 2009 5:55 AM

Read only

0 Likes
948

vijay,

to be frank i didnt get you.

what do you mean by SET , GET Function module

Read only

0 Likes
948

Hi,

Try this:

FIELD-SYMBOLS : <fs_table> TYPE ANY.

ASSIGN ('(Program2)Table') TO <fs_table>.

Then you can process the field symbol.

Regards

Milan

Read only

0 Likes
948

no confusions..

According to the above post, SET means a function to set the data to Function group Global parameters, and GET means a Function to Get the Data from the Function group. Don't confuse there is no SET , GET functions. It's general convention.

Read only

0 Likes
948

I don't think this work in the case of Programs. This is useful in case of Function Pool.

Read only

0 Likes
948

Yeah vijay your are right ....

Unfortunately i need this in programs...

and thanks for the receipe you gave ... it ws usefull