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

submit statement

Former Member
0 Likes
467

is there any way to use the tables of another program called by submit statement into my called programe.

thanking you

5 REPLIES 5
Read only

venkata_ramisetti
Active Contributor
0 Likes
445

Hi Pawan,

For that you need to modify the calling program.\

YOu need to use ABAP MEMORY (IMPORT/EXPORT) for that.

Thanks

Ramakrishna

Read only

Former Member
0 Likes
445

Hi Pawan,

If the other program is returning the required values then use Submt ...

But for the tables y do u want to Submit ...

Can u elabrate.

Bye

Murthy

Read only

Former Member
0 Likes
445

Hi

Your question is not at all clear can you explain it clearly.

Regards

Haritha

Read only

Former Member
0 Likes
445

Hi pawan,

you can try out submit <...> EXPORTING LIST TO MEMORY

here the called program can write the output to memory space and the calling program can read from common memory area.

also import and export can help in this situation

hope this helps

Read only

Former Member
0 Likes
445

1) You have to use Export/Import statements to do the same.

Example:

TYPES: BEGIN OF ITAB3_TYPE,

CONT(4),

END OF ITAB3_TYPE.

DATA: INDXKEY LIKE INDX-SRTFD VALUE 'KEYVALUE',

F1(4), F2 TYPE P,

ITAB3 TYPE STANDARD TABLE OF ITAB3_TYPE WITH

NON-UNIQUE DEFAULT KEY INITIAL SIZE 2,

WA_INDX TYPE INDX.

  • Before export, fill the data fields

  • before CLUSTR.

WA_INDX-AEDAT = SY-DATUM.

WA_INDX-USERA = SY-UNAME.

  • Export der Daten.

EXPORT F1 FROM F1

F2 FROM F2

ITAB3 FROM ITAB3

TO SHARED BUFFER INDX(ST) FROM WA_INDX ID INDXKEY.

in prog 2;

TYPES: BEGIN OF ITAB3_LINE,

CONT(4),

END OF ITAB3_LINE.

DATA: INDXKEY LIKE INDX-SRTFD VALUE 'KEYVALUE',

F1(4),

F2(8) TYPE P DECIMALS 0,

ITAB3 TYPE STANDARD TABLE OF ITAB3_LINE,

INDX_WA TYPE INDX.

  • Import data.

IMPORT F1 = F1 F2 = F2 ITAB3 = ITAB3

FROM SHARED BUFFER INDX(ST) ID INDXKEY TO INDX_WA.

  • After import, the data fields INDX-AEDAT and

  • INDX-USERA in front of CLUSTR are filled with

  • the values in the fields before the EXPORT

  • statement.

2) YOu can use the ranges method also.

r_matnr-low = itab-matnr.

r_matnr-sign = 'I'.

r_matnr-option = 'EQ'.

append r_matnr.

submit prog2 with s_matnr in r_matnr.

<b>in the progr2, you should have defined the s_matnr as a select option, preferably as no-display.</b>

Regards,

ravi

Message was edited by:

Ravi Kanth Talagana