can u save internal table in sap memory from abap memory?
Answer Posted / shankar
If you want save ITAB in sap memory then you have to use
IMPORT nad EXPORT statements
The followin exapmles will explain how it will works
Here i created two report progrmas
1==> ZSHAN_EXPORT_ITAB ---> TO EXPORT THE ITAB INTO SAP
MEMORY
2==> ZSHAN_IMPORT_ITAB ---> TO IMPORT THE ITAB FROM SAP
MEMORY
---------------------------------------------
REPORT ZSHAN_EXPORT_ITAB.
DATA TEXT1(10) VALUE 'Exporting'.
DATA ITAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
DO 5 TIMES.
ITAB-BOOKID = 100 + SY-INDEX.
APPEND ITAB.
ENDDO.
EXPORT TEXT1 TEXT2 FROM 'Literal' TO MEMORY ID 'text'.
EXPORT ITAB TO MEMORY ID 'table'.
--------------------------------------------------------
===========================================================
--------------------------------------------------------
REPORT ZSHAN_IMPORT_ITAB.
DATA: TEXT1(10),
TEXT3 LIKE TEXT1 VALUE 'Initial'.
DATA JTAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
SUBMIT ZSHAN_EXPORT_ITAB AND RETURN.
IMPORT TEXT3 FROM MEMORY ID 'text'.
WRITE: / SY-SUBRC, TEXT3.
IMPORT TEXT2 TO TEXT1 FROM MEMORY ID 'text'.
WRITE: / SY-SUBRC, TEXT1.
IMPORT ITAB TO JTAB FROM MEMORY ID 'table'.
LOOP AT JTAB.
WRITE / JTAB-BOOKID.
ENDLOOP.
-----------------------------------------------------
I hope this information will help full.......
| Is This Answer Correct ? | 22 Yes | 10 No |
Post New Answer View All Answers
How to combine multiple order in one Delivery ( Step by Step)?
How many structures can be created in a Ztable ?
Which bdc you prefer? : abap bdc
What is an abap?
How to do find it?
Explain the advantages and disadvantages of different types of bdc's?
What is the significance of technical settings (specified while creating a table in the data dictionary) ?
What is the function of a domain?
What are the types of indexes in abap?
What is processing class, where we do them and why? : sap abap hr
How do you document ABAP programs? Do you use program documentation menu option?
How many secondary indexes can we create in a table?
What is partner selection?
How to call a subroutine in sapscript?
What are the features of abap/4 dictionary? : abap data dictionary