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 the field and chain statements?
Under Data Transfer Portion of ABAP, what do you mean by DX Project
A Report program is executed in Back ground mode. The out put of this program must be sent to the inbox for a list of users.The users are based on an Organizational assignment defined in a configuration table. what is the Best way this can be performed?
What type of variables normally used in sap script to output data?
there is size categery(0,1,2,3)if i need more space after giving the size 0.what i have to do now?
How to create standard text and how do u transfer it ?
Recording -- Transaction code?
What is the difference between leave transaction and call transaction?
How can one distinguish between different kinds of parameters? : abap modularization
What is table buffer?
What is the syntex used to call a screen as dialog box (pop up)?
What are the components of selection table?