2007 Apr 06 8:32 AM
hi all,
what does this coding mean:
EXPORT a = <fs_abc>-zzscena
b = <fs_abc>-zzafnam
c = <fs_abc>-zzspnam
d = <fs_abc>-zzapnam
e = <fs_abc>-zzbsscs
f = <fs_abc>-zzmanual
g = 'X' TO MEMORY ID 'SEBAN'.
does it mean to update eban data..
hi all,
what does this coding mean:
EXPORT a = <fs_abc>-zzscena
b = <fs_abc>-zzafnam
c = <fs_abc>-zzspnam
d = <fs_abc>-zzapnam
e = <fs_abc>-zzbsscs
f = <fs_abc>-zzmanual
g = 'X' TO MEMORY ID 'SEBAN'.
does it mean to update eban data..
2007 Apr 06 8:35 AM
Hi Estar,
Some clarity...
Memory ID refers to the use of ABAP Memory which is specific to an external session(window). When you have multiple sessions open, each of the concurrent sessions(windows) has it's own ABAP Memory.
ABAP Memory can thus, only be used to share data between internal sessions, that is programs/transactions that have been called by other programs/transactions in the same external session(window).
ABAP memory is cleared(and correspondingly all Memory IDs), when the session is deleted(window is closed), not when the transaction ends. The only exception to this rule when a transaction ends through the use of
<b>LEAVE TO TRANSACTION</b>
,which is when the entire external session is flushed and the ABAP Memory is cleared.
Hope this helps
2007 Apr 06 8:35 AM
No it does not mean update eban.
This means that the data that is populated into the workarea is exported in to the memory so that is can be imported by some other program for processing in that program execution cycle.
2007 Apr 06 8:36 AM
Hi,
EXPORT - Export data
Variants
1. EXPORT obj1 ... objn TO MEMORY.
2. EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key.
3. EXPORT obj1 ... objn TO DATASET dsn(ar) ID key.
Variant 1
EXPORT obj1 ... objn TO MEMORY.
Additions
1. ... FROM g (for each field to be exported)
2. ... ID key
Effect
Exports the objects obj1 ... objn (fields, structures or tables) as a data cluster to ABAP/4 memory .
If you call a transaction, report or dialog module (with CALL TRANSACTION , SUBMIT or CALL DIALOG ), the contents of ABAP/4 memory are retained, even across several levels. The called transaction can then retrieve the data from there using IMPORT ... FROM MEMORY . Each new EXPORT ... TO MEMORY statement overwrites any old data, so no data is appended.
If the processing leaves the deepest level of the call chain, the ABAP/4 memory is released.
Note
The header lines of internal tables cannot be exported, because specifying the name of an internal table with a header line always exports the actual table data.
Addition 1
... FROM g (for each object to be exported)
Effect
Exports the contents of the data object g and stores them under the name specified before FROM .
Addition 2
... ID key
Effect
Stores the exported data under the ID key in ABAP/4 memory . You can then use the ID to read it in again (with IMPORT ). The ID can be up to 32 characters long.
Note
If you store data both with and without an ID , the data stored without an ID remains separate and you can re-import it (using IMPORT without ID ).
Note
Runtime errors
EXPORT_NO_CONTAINER : SAP paging exhausted
Variant 2
EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key.
Additions
1. ... FROM g (for each field to be exported)
2. ... CLIENT h (after dbtab(ar) )
3. ... USING form
Effect
Exports the objects obj1 ... objn (fields, structures or tables) as a data cluster to the database table dbtab .
The database table dbtab must have a standardized structure .
The database table dbtab is divided into different logically related areas ( ar , 2-character name).
You can export collections of data objects (known as data clusters ) under a freely definable key (field key ) to an area of this database.
IMPORT allows you to import individual data objects from this cluster.
Notes
The table dbtab specified after DATABASE must be declared under TABLES .
The header lines of internal tables cannot be exported because specifying the name of an internal table with a header line always exports the actual table data.
Example
Export two fields and an internal table to the database table INDX :
TABLES INDX.
DATA: INDXKEY LIKE INDX-SRTFD VALUE 'KEYVALUE',
F1(4), F2 TYPE P,
BEGIN OF ITAB3 OCCURS 2,
CONT(4),
END OF ITAB3.
Before the export, the data fields in
front of CLUSTR are filled.
INDX-AEDAT = SY-DATUM.
INDX-USERA = SY-UNAME.
Export der Daten.
EXPORT F1 F2 ITAB3 TO
DATABASE INDX(ST) ID INDXKEY.
Addition 1
... FROM g (for each object to be exported)
Effect
Exports the contents of the field g and stores them under the specified name in the database.
Addition 2
... CLIENT h (after dbtab(ar) )
Effect
Stores the data objects in the client h (if the import/export database table dbtab is client-specific).
Addition 3
... USING form
Effect
Does not export the data to the database table. Instead, calls the FORM routine form for every record written to the database without this addition. This routine can take the data from the database table work area and therefore has no parameters.
Note
Runtime errors
Errors in the structure of the EXPORT / IMPORT database can cause runtime errors .
Variant 3
EXPORT obj1 ... objn TO DATASET dsn(ar) ID key.
Note
This variant is not to be used at present.
Note
Runtime errors
EXPORT_DATASET_CANNOT_OPEN : Unable to describe file.
EXPORT_DATASET_WRITE_ERROR : File write error.
regards,
keerthi
2007 Apr 06 8:39 AM
Hi,
It does not mean that it will update a table, it will just copy the data into the ABAP memory, and you can import the data using IMPORT statmnet where ever you want this data. you are passing some data to the ABAPP memory
look at the below link to know more about this one
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/export01.htm
Regards
Sudheer
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |