can u save internal table in sap memory from abap memory?
Answers were Sorted based on User's Feedback
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 |
Answer / sreenivasa rao yarru
export&import r use for abap memory only not for sap memory
for this question 1st u have to import itab from abap memory
then put that in sap memory by set parameter id <id> field
itab
Is This Answer Correct ? | 15 Yes | 3 No |
Answer / paul
You can do this by:
EXPORT i_zpack_memory FROM it_itab_source TO MEMORY
ID ‘MEMORY_ID’ .
IMPORT i_zpack_memory TO it_itab_destination FROM MEMORY
ID 'MEMORY_ID'
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / manas
FIrst of all this question is incorrect.
We can save internal table in ABAP memory using ( EXPORT )
and obtain the values using IMPORT internal sessions while
passing data one program to another in a single session.
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / damodar reddy
Dear friends, this question is absolutely to confuse the job
seekers,
because internal table physically won't need any memory
, it holds records at run time only.
Is This Answer Correct ? | 6 Yes | 9 No |
Answer / krishnaveni
yes by using SET PARAMETER ID <PID> <field>
Is This Answer Correct ? | 9 Yes | 17 No |
WHAT IS DATA CLUSTER? HOW DO YOU ESTIMATE THE TIME TO FINISH A PARTICULAR OBJECT?
What is at exit-command:?
what is meant by HIDE statement?
transaction code for assingning the function module to the process code?
what is the Tcode to send customer master data to another system.
if u take one worst program,in this program user write the logic is session method.in that program user can get some errors ,that errors we will see in call transaction method,how it is possible.?
What is Field symbol?
How many windows can be maintained under one page?
How do you handle Table Maintenance Generator ?
What are the types of parameters in the function modules?
How memory management happens for internal tables and work areas in abap?
What is the significance of technical settings (specified while creating a table in the data dictionary) ?