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 |
Commonly used tables in MM and SD?
What are different data types in ABAP?
How many sections main window cab be divided in Script?
In an ABAP program how do you access data that exists on a presentation server vs on an application server?
list some middlewares used in EDI ?
What are presentation and application servers in SAP?
how do put the data in the application server in BDC
3) Will 50,000 records be uploaded directly into APP's Server?
How to write a code in tab control? : abap bdc
What abap statement will trigger list generation?
Explain the difference between domain and data element?
what is the use of CTU_PARAMS hwen we r working with BDC?