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

export data in another program

Former Member
0 Likes
1,119

I have 2 programs. From program1, i want to export a field in program2(in internal table of select-option).it means i want that field in my selection screen table(in program2).for that i am using SUBMIT statement with some addition. but it's not working.please correct me........

6 REPLIES 6
Read only

Former Member
0 Likes
848

Use statement

Program 1

EXport Itab to MEMORY ID 'ASDF'.

Program 2.

IMPORT Itab FROM MEMORY ID 'ASDF'.

It will Solve you Problem

Regards,

Gaurav Sood

Read only

Former Member
0 Likes
848

Hi ,

DATA : w TYPE i.

EXPORT w TO MEMORY ID 'ABCD'.

You Write Submit pro_name with the additions USING SELECTION-SCREEN or

Via SELECTION-SCREEN or

Via SELECTION-Set accordind to your requirement .

Form the called program Import that field -


DATA : w TYPE i.

IMPORT w FROM MEMORY ID 'ABCD'.

Regards

Pinaki

Edited by: Pinaki Mukherjee on Feb 10, 2009 8:26 AM

Read only

Former Member
0 Likes
848
Read only

former_member222860
Active Contributor
0 Likes
848

Hi,

U can use the addition for SUBMIT like

..USING SELECTION-SETS OF PROGRAM prog

see the help on SUBMIT for further info.

thank\

Mahesh

Read only

Former Member
0 Likes
848

Hi,

try this .

Program 1.

SUBMIT programname WITH s_carrid IN r_carrid

WITH s_connid IN r_connid AND RETURN.

( Append ranges table with data u want to submit )

program 2.

use s_carrid and s_connid in select query

Read only

0 Likes
848

If none of the above options work, you can export the data to Cluster table INDX and import it in any program.

The program does not need to have executed in same session.