<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: acessing BSEG by import/export method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/acessing-bseg-by-import-export-method/m-p/3943362#M943189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EXPORT - Export data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. EXPORT obj1 ... objn TO MEMORY. &lt;/P&gt;&lt;P&gt;2. EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;3. EXPORT obj1 ... objn TO DATASET dsn(ar) ID key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 1&lt;/P&gt;&lt;P&gt;EXPORT obj1 ... objn TO MEMORY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additions&lt;/P&gt;&lt;P&gt;1. ... FROM g (for each field to be exported) &lt;/P&gt;&lt;P&gt;2. ... ID key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Exports the objects obj1 ... objn (fields, structures or tables) as a data cluster to ABAP/4 memory . &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;If the processing leaves the deepest level of the call chain, the ABAP/4 memory is released. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1&lt;/P&gt;&lt;P&gt;... FROM g (for each object to be exported) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Exports the contents of the data object g and stores them under the name specified before FROM . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2&lt;/P&gt;&lt;P&gt;... ID key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;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 ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;Runtime errors &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT_NO_CONTAINER : SAP paging exhausted &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2&lt;/P&gt;&lt;P&gt;EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... FROM g (for each field to be exported) &lt;/P&gt;&lt;P&gt;2. ... CLIENT h (after dbtab(ar) ) &lt;/P&gt;&lt;P&gt;3. ... USING form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Exports the objects obj1 ... objn (fields, structures or tables) as a data cluster to the database table dbtab . &lt;/P&gt;&lt;P&gt;The database table dbtab must have a standardized structure . &lt;/P&gt;&lt;P&gt;The database table dbtab is divided into different logically related areas ( ar , 2-character name). &lt;/P&gt;&lt;P&gt;You can export collections of data objects (known as data clusters ) under a freely definable key (field key ) to an area of this database. &lt;/P&gt;&lt;P&gt;IMPORT allows you to import individual data objects from this cluster. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;The table dbtab specified after DATABASE must be declared under TABLES . &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Export two fields and an internal table to the database table INDX : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES INDX.&lt;/P&gt;&lt;P&gt;DATA: INDXKEY LIKE INDX-SRTFD VALUE 'KEYVALUE',&lt;/P&gt;&lt;P&gt;      F1(4), F2 TYPE P,&lt;/P&gt;&lt;P&gt;      BEGIN OF ITAB3 OCCURS 2,&lt;/P&gt;&lt;P&gt;        CONT(4),&lt;/P&gt;&lt;P&gt;      END OF ITAB3.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Before the export, the data fields in&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;front of CLUSTR are filled.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;INDX-AEDAT = SY-DATUM.&lt;/P&gt;&lt;P&gt;INDX-USERA = SY-UNAME.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Export der Daten.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXPORT F1 F2 ITAB3 TO&lt;/P&gt;&lt;P&gt;       DATABASE INDX(ST) ID INDXKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1&lt;/P&gt;&lt;P&gt;... FROM g (for each object to be exported) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Exports the contents of the field g and stores them under the specified name in the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2&lt;/P&gt;&lt;P&gt;... CLIENT h (after dbtab(ar) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Stores the data objects in the client h (if the import/export database table dbtab is client-specific). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 3&lt;/P&gt;&lt;P&gt;... USING form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;Runtime errors &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Errors in the structure of the EXPORT / IMPORT database can cause runtime errors . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3&lt;/P&gt;&lt;P&gt;EXPORT obj1 ... objn TO DATASET dsn(ar) ID key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;This variant is not to be used at present. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;Runtime errors &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT_DATASET_CANNOT_OPEN : Unable to describe file. &lt;/P&gt;&lt;P&gt;EXPORT_DATASET_WRITE_ERROR : File write error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2008 05:16:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-29T05:16:00Z</dc:date>
    <item>
      <title>acessing BSEG by import/export method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/acessing-bseg-by-import-export-method/m-p/3943360#M943187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyone please gexpalin me or give me links to how to access the BSEG TABLE  by IMPORT EXPORT OR macros method! o&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points will be given to best answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 05:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/acessing-bseg-by-import-export-method/m-p/3943360#M943187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T05:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: acessing BSEG by import/export method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/acessing-bseg-by-import-export-method/m-p/3943361#M943188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program A : &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_BELNR FOR BKPF-BELNR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT S_BELNR TO MEMORY ID 'ZXC9'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program B : &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF S_BELNR OCCURS 10. &lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE STRUC1. &lt;/P&gt;&lt;P&gt;DATA: LOW LIKE BKPF-BELNR, &lt;/P&gt;&lt;P&gt;HIGH LIKE BKPF-BELNR. &lt;/P&gt;&lt;P&gt;DATA: END OF S_BELNR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT S_BELNR FROM MEMORY ID 'ZXC9'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For EXPORT: &lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/export01.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/export01.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For IMPORT: &lt;A href="http://www.geocities.com/siliconvalley/campus/6345/import01.htm" target="test_blank"&gt;http://www.geocities.com/siliconvalley/campus/6345/import01.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 05:13:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/acessing-bseg-by-import-export-method/m-p/3943361#M943188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T05:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: acessing BSEG by import/export method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/acessing-bseg-by-import-export-method/m-p/3943362#M943189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EXPORT - Export data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. EXPORT obj1 ... objn TO MEMORY. &lt;/P&gt;&lt;P&gt;2. EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;3. EXPORT obj1 ... objn TO DATASET dsn(ar) ID key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 1&lt;/P&gt;&lt;P&gt;EXPORT obj1 ... objn TO MEMORY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additions&lt;/P&gt;&lt;P&gt;1. ... FROM g (for each field to be exported) &lt;/P&gt;&lt;P&gt;2. ... ID key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Exports the objects obj1 ... objn (fields, structures or tables) as a data cluster to ABAP/4 memory . &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;If the processing leaves the deepest level of the call chain, the ABAP/4 memory is released. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1&lt;/P&gt;&lt;P&gt;... FROM g (for each object to be exported) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Exports the contents of the data object g and stores them under the name specified before FROM . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2&lt;/P&gt;&lt;P&gt;... ID key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;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 ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;Runtime errors &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT_NO_CONTAINER : SAP paging exhausted &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2&lt;/P&gt;&lt;P&gt;EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... FROM g (for each field to be exported) &lt;/P&gt;&lt;P&gt;2. ... CLIENT h (after dbtab(ar) ) &lt;/P&gt;&lt;P&gt;3. ... USING form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Exports the objects obj1 ... objn (fields, structures or tables) as a data cluster to the database table dbtab . &lt;/P&gt;&lt;P&gt;The database table dbtab must have a standardized structure . &lt;/P&gt;&lt;P&gt;The database table dbtab is divided into different logically related areas ( ar , 2-character name). &lt;/P&gt;&lt;P&gt;You can export collections of data objects (known as data clusters ) under a freely definable key (field key ) to an area of this database. &lt;/P&gt;&lt;P&gt;IMPORT allows you to import individual data objects from this cluster. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;The table dbtab specified after DATABASE must be declared under TABLES . &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Export two fields and an internal table to the database table INDX : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES INDX.&lt;/P&gt;&lt;P&gt;DATA: INDXKEY LIKE INDX-SRTFD VALUE 'KEYVALUE',&lt;/P&gt;&lt;P&gt;      F1(4), F2 TYPE P,&lt;/P&gt;&lt;P&gt;      BEGIN OF ITAB3 OCCURS 2,&lt;/P&gt;&lt;P&gt;        CONT(4),&lt;/P&gt;&lt;P&gt;      END OF ITAB3.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Before the export, the data fields in&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;front of CLUSTR are filled.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;INDX-AEDAT = SY-DATUM.&lt;/P&gt;&lt;P&gt;INDX-USERA = SY-UNAME.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Export der Daten.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXPORT F1 F2 ITAB3 TO&lt;/P&gt;&lt;P&gt;       DATABASE INDX(ST) ID INDXKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1&lt;/P&gt;&lt;P&gt;... FROM g (for each object to be exported) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Exports the contents of the field g and stores them under the specified name in the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2&lt;/P&gt;&lt;P&gt;... CLIENT h (after dbtab(ar) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Stores the data objects in the client h (if the import/export database table dbtab is client-specific). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 3&lt;/P&gt;&lt;P&gt;... USING form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;Runtime errors &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Errors in the structure of the EXPORT / IMPORT database can cause runtime errors . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3&lt;/P&gt;&lt;P&gt;EXPORT obj1 ... objn TO DATASET dsn(ar) ID key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;This variant is not to be used at present. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;Runtime errors &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT_DATASET_CANNOT_OPEN : Unable to describe file. &lt;/P&gt;&lt;P&gt;EXPORT_DATASET_WRITE_ERROR : File write error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 05:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/acessing-bseg-by-import-export-method/m-p/3943362#M943189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T05:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: acessing BSEG by import/export method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/acessing-bseg-by-import-export-method/m-p/3943363#M943190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IMPORT - Get data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. IMPORT f itab FROM MEMORY. &lt;/P&gt;&lt;P&gt;2. IMPORT f itab FROM DATABASE dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;3. IMPORT DIRECTORY INTO itab FROM DATABASE dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;4. IMPORT f itab FROM DATASET dsn(ar) ID key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 1&lt;/P&gt;&lt;P&gt;IMPORT f itab FROM MEMORY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... TO g (for each field f to be imported) &lt;/P&gt;&lt;P&gt;2. ... ID key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Imports data objects (fields or tables) from the ABAP/4 memory (see EXPORT ). Reads in all data without an ID that was exported to memory with "EXPORT ... TO MEMORY." . In contrast to the variant IMPORT FROM DATABASE , it does not check that the structure matches in EXPORT and IMPORT . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code value is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 The data objects were successfully imported. &lt;/P&gt;&lt;P&gt;SY_SUBRC = 4 The data objects could not be imported, probably &lt;/P&gt;&lt;P&gt;because the ABAP/4 memory was empty. &lt;/P&gt;&lt;P&gt;The contents of all objects remain unchanged. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1&lt;/P&gt;&lt;P&gt;... TO g (for each field f to be imported) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Takes the field contents stored under f from the global ABAP/4 memory and places them in the field g . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2&lt;/P&gt;&lt;P&gt;... ID key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Imports only data stored in ABAP/4 memory under the ID key . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code value is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 The data objects were successfully imported. &lt;/P&gt;&lt;P&gt;SY_SUBRC = 4 The data objects could not be imported, probably &lt;/P&gt;&lt;P&gt;because an incorrect ID was used. &lt;/P&gt;&lt;P&gt;The contents of all objects remain unchanged. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2&lt;/P&gt;&lt;P&gt;IMPORT f itab FROM DATABASE dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... TO g (for each field f to be imported) &lt;/P&gt;&lt;P&gt;2. ... MAJOR-ID maid (instead of ID key ) &lt;/P&gt;&lt;P&gt;3. ... MINOR-ID miid (together with MAJOR-ID maid ) &lt;/P&gt;&lt;P&gt;4. ... CLIENT h (after dbtab(ar) ) &lt;/P&gt;&lt;P&gt;5. ... USING form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Imports data objects (fields, field strings or internal tables) with the ID key from the area ar of the database dbtab (see also EXPORT ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code value is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 The data objects were successfully imported. &lt;/P&gt;&lt;P&gt;SY_SUBRC = 4 The data objects could not be imported, probably &lt;/P&gt;&lt;P&gt;because an incorrect ID was used. &lt;/P&gt;&lt;P&gt;The contents of all objects remain unchanged. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Import two fields and an internal table: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES INDX.&lt;/P&gt;&lt;P&gt;DATA: INDXKEY LIKE INDX-SRTFD,&lt;/P&gt;&lt;P&gt;      F1(4), F2 TYPE P,&lt;/P&gt;&lt;P&gt;      BEGIN OF TAB3 OCCURS 10,&lt;/P&gt;&lt;P&gt;        CONT(4),&lt;/P&gt;&lt;P&gt;      END OF TAB3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INDXKEY = 'INDXKEY'.&lt;/P&gt;&lt;P&gt;IMPORT F1 F2 TAB3 FROM DATABASE INDX(ST) ID INDXKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;The structure of fields, field strings and internal tables to be imported must match the structure of the objects exported to the dataset. In addition, the objects must be imported under the same name used to export them. If this is not the case, either a runtime error occurs or no import takes place. &lt;/P&gt;&lt;P&gt;Exception: You can lengthen or shorten the last field if it is of type CHAR , or add/omit CHAR fields at the end of the structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1&lt;/P&gt;&lt;P&gt;... TO g (for each field f to be imported) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Takes the field contents stored under the name f from the database and places them in g . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2&lt;/P&gt;&lt;P&gt;... MAJOR-ID maid (instead of ID key ) &lt;/P&gt;&lt;P&gt;Addition 3&lt;/P&gt;&lt;P&gt;... MINOR-ID miid (together with MAJOR-ID maid ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Searches for a record with an ID that matches maid in the first part (length of maid ) and - if MINOR-ID miid is also specified - is greater than or equal to miid in the second part. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 4&lt;/P&gt;&lt;P&gt;... CLIENT h (after dbtab(ar) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Takes the data from the client h (only with client-specific import/export databases). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES INDX.&lt;/P&gt;&lt;P&gt;DATA F1.&lt;/P&gt;&lt;P&gt;IMPORT F1 FROM DATABASE INDX(AR) CLIENT '002' ID 'TEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 5&lt;/P&gt;&lt;P&gt;... USING form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Does not read the data from the database. Instead, calls the FORM routine form for each record read from the database without this addition. This routine can take the data key of the data to be retrieved from the database table work area and write the retrieved data to this work area schreiben; it therefore has no parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;Runtime errors &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the operands or the datsets to be imported, various runtime errors may occur. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3&lt;/P&gt;&lt;P&gt;IMPORT DIRECTORY INTO itab FROM DATABASE dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... CLIENT h (after dbtab(ar) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Imports an object directory stored under the specified ID with EXPORT into the table itab . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code value is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 The directory was successfully imported. &lt;/P&gt;&lt;P&gt;SY_SUBRC = 4 The directory could not be imported, probably because an incorrect ID was used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table itab must have the same structure as the Dictionary structure CDIR (INCLUDE STRUCTURE ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1&lt;/P&gt;&lt;P&gt;... CLIENT h (after dbtab(ar) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Takes data from the client h (only with client-specific import/export databases). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Directory of a cluster consisting of two fields and an internal table: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES INDX.&lt;/P&gt;&lt;P&gt;DATA: INDXKEY LIKE INDX-SRTFD,&lt;/P&gt;&lt;P&gt;      F1(4), F2 TYPE P,&lt;/P&gt;&lt;P&gt;      BEGIN OF TAB3 OCCURS 10,&lt;/P&gt;&lt;P&gt;        CONT(4),&lt;/P&gt;&lt;P&gt;      END OF TAB3,&lt;/P&gt;&lt;P&gt;      BEGIN OF DIRTAB OCCURS 10.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE CDIR.&lt;/P&gt;&lt;P&gt;DATA  END OF DIRTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INDXKEY = 'INDXKEY'.&lt;/P&gt;&lt;P&gt;EXPORT F1 F2 TAB3 TO&lt;/P&gt;&lt;P&gt;       DATABASE INDX(ST) ID INDXKEY.    " TAB3 has 17 entries&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;IMPORT DIRECTORY INTO DIRTAB FROM DATABASE INDX(ST) ID INDXKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, the table DIRTAB contains the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME OTYPE FTYPE TFILL FLENG &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;F1 F C 0 4 &lt;/P&gt;&lt;P&gt;F2 F P 0 8 &lt;/P&gt;&lt;P&gt;TAB3 T C 17 4 &lt;/P&gt;&lt;P&gt;The meaning of the individual fields is as follows: &lt;/P&gt;&lt;P&gt;NAME : Name of stored object OTYPE : Object type ( F : Field, R : Field string / Dictionary structure, T : Internal table) FTYPE : Field type ( C : Character, P : Packed, ...) &lt;/P&gt;&lt;P&gt;Field strings and internal tables have the type C. TFILL : Number of internal table lines filled FLENG : Length of field in bytes &lt;/P&gt;&lt;P&gt;With internal tables: Length of header line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 4&lt;/P&gt;&lt;P&gt;IMPORT f itab ... FROM DATASET dsn(ar) ID key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;This variant is not to be used at present. &lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 05:58:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/acessing-bseg-by-import-export-method/m-p/3943363#M943190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T05:58:18Z</dc:date>
    </item>
  </channel>
</rss>

