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 are Hana Basics
how many times a main window can be placed on placed on the same page in a layout
can we create views in bdc
What are the two ways for restricting the value range for a domain ?
What actually happens in real-time recruitment? : sap abap hr
what is difference between method and function module?
Can we include customizing include or an append structure with pooled or cluster tables?
What is read line in abap?
what is the difference between view and join
What data is contained in data dictionary? : abap data dictionary
What are the Different Types of tickets in Realtime Scenario ?
1.If there is one receiver,then To send 10 materials at a time through BD10 tcode, How many Master Idoc create? 2.If there is one receiver,then To send 1 material at a time through BD10 tcode, how many Master Idoc generated? 3.Can I Send Multiple Messges through BD10 tcode?