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 do you find the information on the current screen? : abap bdc
what are the important fields while preparing sales order,inquiry?
What are the dynamic actions and how to configure it? : sap abap hr
What are indexes? : sap abap data dictionary
How can we use / display table in a screen?
What are the different types of parameters? : abap modularization
What is structure?
What is IMG in SAP?
It is not possible to create an abap/4 program, which contains only subroutines. State true or false. : abap modularization
What is an evaluation path? : sap abap hr
How can I get ascii value of any letter? Is there any function?
What are the various types of selection screen event?
What data is contained in data dictionary? : abap data dictionary
What is the lock object?
How is conversion of data types done between abap/4 & db layer?