‎2006 Nov 15 12:13 PM
is there any way to use the tables of another program called by submit statement into my called programe.
thanking you
‎2006 Nov 15 12:15 PM
Hi Pawan,
For that you need to modify the calling program.\
YOu need to use ABAP MEMORY (IMPORT/EXPORT) for that.
Thanks
Ramakrishna
‎2006 Nov 15 12:16 PM
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
‎2006 Nov 15 12:17 PM
Hi
Your question is not at all clear can you explain it clearly.
Regards
Haritha
‎2006 Nov 15 12:18 PM
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
‎2006 Nov 15 12:19 PM
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