Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

can u save internal table in sap memory from abap memory?

Answer Posted / shankar

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are aggregated objects : abap data dictionary

1002


Explain the disadvantages of logical databases?

938


What is collective search help? : sap abap data dictionary

980


On which event we can validate the input fields in module programs?

1060


Explain some essential objects in abap dictionary?

1117


What are the function modules that are generated when you activate a lockobject? : sap abap data dictionary

958


What are the table controls in bdc ? What is the difference between bdc and lsmw ?what is the difference between bdc and rfc ? : abap bdc

1093


How does the system handle roll areas for external program components?

1079


How can we set the tablespaces and extent sizes ?

945


Explain the components of selection table?

1044


Can you give the Example for the structure of an ABAP program? REPORT... NODES: SPFLI, SFLIGHT. DATA:... INITIALIZATION. AT SELECTION-SCREEN. START-OF-SELECTION. GET SPFLI... GET SFLIGHT... GET SPFLI LATE. END-OF-SELECTION. FORM... ENDFORM.

1045


What is asap methodology? : sap abap hr

1025


What are the different methods of passing data? : abap modularization

998


Kindly help me to Know the process of mapping in EDI from R/3 to a convertor(third party which translates IDoc flatfile to EDIFACT /XML / FTP /HTTP ) ?

1963


What are aggregated objects

920