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 |
how to caluclate sub total of some specific fields ? Ex 1 a 2000 2 a 324 3 b 3245 i want total of all a's ,,, please dont use collect
What are field symbols and field groups.?
what is the model dialog box?
1 Answers Bristle Cone, Cap Gemini, HP, Satyam, Wipro,
What are the types of subroutines?
HI friends, in USER EXITS after finding correct EXIT when am double clicking on the "INCLUDE ZXM06U36" it is not entering inside of the program, it is givimg the error message as "Program names ZX... are reserved for includes of exit function groups". Please help me to solve this problem.
What is interactive reporting?
when do you need to create an internal table with header line ?and with out a header line?
What are the Various Types of internal tables?
What are the different functions used in sap script?
Run Time Analysis - Transaction code?
If a Function module is defined as RFC enabled why the parameters should be pass by value not by reference in sap abap
Explain the difference between call screen and leave screen?