<?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 Sintax EXPORT TO MEMORY in AbapObjects ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sintax-export-to-memory-in-abapobjects/m-p/1026629#M82628</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;I need to save a value in memory in a BADI (Abap Objects), for example to save a flag variable; but it sends a sintax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:  flag(1)  type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flag = '1'  or '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT flag TO MEMORY ID 'ZTEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wich is the sintax to set a value in memory in Abap Objects ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2005 17:21:46 GMT</pubDate>
    <dc:creator>former_member425121</dc:creator>
    <dc:date>2005-11-07T17:21:46Z</dc:date>
    <item>
      <title>Sintax EXPORT TO MEMORY in AbapObjects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sintax-export-to-memory-in-abapobjects/m-p/1026629#M82628</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;I need to save a value in memory in a BADI (Abap Objects), for example to save a flag variable; but it sends a sintax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:  flag(1)  type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flag = '1'  or '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT flag TO MEMORY ID 'ZTEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wich is the sintax to set a value in memory in Abap Objects ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 17:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sintax-export-to-memory-in-abapobjects/m-p/1026629#M82628</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2005-11-07T17:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sintax EXPORT TO MEMORY in AbapObjects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sintax-export-to-memory-in-abapobjects/m-p/1026630#M82629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;which is the error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye enzo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 17:23:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sintax-export-to-memory-in-abapobjects/m-p/1026630#M82629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T17:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sintax EXPORT TO MEMORY in AbapObjects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sintax-export-to-memory-in-abapobjects/m-p/1026631#M82630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the exact statement you used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;flag = '1' or '0'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no such statment with the use or 'or'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not the statement, then I apologize and I request the syntax error text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 17:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sintax-export-to-memory-in-abapobjects/m-p/1026631#M82630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T17:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sintax EXPORT TO MEMORY in AbapObjects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sintax-export-to-memory-in-abapobjects/m-p/1026632#M82631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The addition ID must be specified with the statements IMPORT/EXPORT/FREE ... MEMORY in ABAP Objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error message in ABAP Objects if the following syntax is used: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT f TO MEMORY. &lt;/P&gt;&lt;P&gt;IMPORT f FROM MEMORY. &lt;/P&gt;&lt;P&gt;FREE MEMORY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct syntax: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT f TO MEMORY ID key. &lt;/P&gt;&lt;P&gt;IMPORT f FROM MEMORY ID key. &lt;/P&gt;&lt;P&gt;FREE MEMORY ID key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no identification is specified, all programs in a call chain use the same memory area. This may lead to unpredictable results especially with complex transactions. &lt;/P&gt;&lt;P&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 17:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sintax-export-to-memory-in-abapobjects/m-p/1026632#M82631</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-07T17:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sintax EXPORT TO MEMORY in AbapObjects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sintax-export-to-memory-in-abapobjects/m-p/1026633#M82632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;  here is an example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES INDX. &lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ITAB3_TYPE, &lt;/P&gt;&lt;P&gt;          CONT(4), &lt;/P&gt;&lt;P&gt;       END OF ITAB3_TYPE. &lt;/P&gt;&lt;P&gt;&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;      ITAB3 TYPE STANDARD TABLE OF ITAB3_TYPE WITH NON-UNIQUE &lt;/P&gt;&lt;P&gt;                 DEFAULT KEY INITIAL SIZE 2, &lt;/P&gt;&lt;P&gt;      WA_INDX TYPE INDX. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the data fields before CLUSTR &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;before the actual export &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    FROM F1 &lt;/P&gt;&lt;P&gt;       F2    FROM F2 &lt;/P&gt;&lt;P&gt;       ITAB3 FROM ITAB3 &lt;/P&gt;&lt;P&gt;       TO DATABASE INDX(ST)  FROM WA_INDX ID INDXKEY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 17:25:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sintax-export-to-memory-in-abapobjects/m-p/1026633#M82632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T17:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sintax EXPORT TO MEMORY in AbapObjects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sintax-export-to-memory-in-abapobjects/m-p/1026634#M82633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a example, this is passing the syntax checker.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001
       no standard page heading.


*---------------------------------------------------------------------*
*       CLASS lcl_test DEFINITION
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
class lcl_test definition.

  public section.

    methods: constructor.

    data: flag type c.

endclass.


*---------------------------------------------------------------------*
*       CLASS lcl_test IMPLEMENTATION
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
class lcl_test implementation.

  method constructor.

  EXPORT &amp;lt;b&amp;gt;flag = flag&amp;lt;/b&amp;gt; TO MEMORY ID 'ZTEST'.


  endmethod.


endclass.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 17:27:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sintax-export-to-memory-in-abapobjects/m-p/1026634#M82633</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-07T17:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sintax EXPORT TO MEMORY in AbapObjects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sintax-export-to-memory-in-abapobjects/m-p/1026635#M82634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the Rich syntax and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 17:35:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sintax-export-to-memory-in-abapobjects/m-p/1026635#M82634</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2005-11-07T17:35:18Z</dc:date>
    </item>
  </channel>
</rss>

