<?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: exchanging values between programs... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exchanging-values-between-programs/m-p/1074010#M95749</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;In ABAP objects you have to EXPORT/IMPORT paramenters with reference to a ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USe like &lt;/P&gt;&lt;P&gt;    EXPORT ZZRESWK FROM ZZRESWK TO MEMORY ID 'ZPDT1'.&lt;/P&gt;&lt;P&gt;     IMPORT ZZRESWK TO ZZRESWK FROM MEMORY ID 'ZPDT1'.&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Nov 2005 14:38:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-10T14:38:28Z</dc:date>
    <item>
      <title>exchanging values between programs...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exchanging-values-between-programs/m-p/1074008#M95747</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 have a screen where the user selects a value. I want to insert that into a table in a BADI method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT TTXJ-TXJCD TO MEMORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i check for syntax i get a warning message &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"the EXPORT statement without ID specification exists only for the sake of compatibility with R/2. It should not be used because of unforeseeable effect"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my BADI's POST_DOCUMENT method, I use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA TXJ TYPE C.&lt;/P&gt;&lt;P&gt;IMPORT TXJ FROM MEMORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i do syntax check, i get the same message but it is shown as an error now !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong ?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to exchange the selected value. Is there anyother way it could be done ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 14:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exchanging-values-between-programs/m-p/1074008#M95747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-10T14:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: exchanging values between programs...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exchanging-values-between-programs/m-p/1074009#M95748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;try to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
EXPORT TTXJ-TXJCD TO MEMORY ID 'ZTXJCD'.
IMPORT TTXJ-TXJCD FROM MEMORY ID 'ZTXJCD'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the ID 'ZTXJCD' is arbitrary, but have to be the same in import end export&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 14:37:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exchanging-values-between-programs/m-p/1074009#M95748</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2005-11-10T14:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: exchanging values between programs...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exchanging-values-between-programs/m-p/1074010#M95749</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;In ABAP objects you have to EXPORT/IMPORT paramenters with reference to a ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USe like &lt;/P&gt;&lt;P&gt;    EXPORT ZZRESWK FROM ZZRESWK TO MEMORY ID 'ZPDT1'.&lt;/P&gt;&lt;P&gt;     IMPORT ZZRESWK TO ZZRESWK FROM MEMORY ID 'ZPDT1'.&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 14:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exchanging-values-between-programs/m-p/1074010#M95749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-10T14:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: exchanging values between programs...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exchanging-values-between-programs/m-p/1074011#M95750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ABAP Objects, the syntax is more strict.  You need to write it like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXPORT 
    TTXJ-TXJCD = TTXJ-TXJCD
             TO MEMORY ID 'ZTXJCD'.


IMPORT
    TTXJ-TXJCD = TTXJ-TXJCD
             FROM MEMORY ID 'ZTXJCD'.&lt;/CODE&gt;&lt;/PRE&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>Thu, 10 Nov 2005 14:40:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exchanging-values-between-programs/m-p/1074011#M95750</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-10T14:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: exchanging values between programs...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exchanging-values-between-programs/m-p/1074012#M95751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manuel. The Export statement did work, but import failed !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that I typed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA TXJ TYPE C.&lt;/P&gt;&lt;P&gt;IMPORT TTXJ-TXJCD to TXJ FROM MEMORY ID 'ZTXJCD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no errors as of now...let me check if this works as desired...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 14:46:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exchanging-values-between-programs/m-p/1074012#M95751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-10T14:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: exchanging values between programs...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exchanging-values-between-programs/m-p/1074013#M95752</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;While exporting and importing we need to specify the ID, so that the values will be stored with that ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do that by &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT TTXJ-TXJCD TO MEMORY ID 'ZTXJCD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can import it by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT TTXJ-TXJCD FROM MEMORY ID 'ZTXJCD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While importing or exporting make sure that the particular variable is visible in that routine. Otherwise you can use a different variables to hold these values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: V_TXJCD LIKE TTXJ-TXJCD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT TTXJ-TXJCD TO V_TXJCD FROM MEMORY ID 'ZTXJCD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Giridhar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Giridhar Nayudu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 14:46:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exchanging-values-between-programs/m-p/1074013#M95752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-10T14:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: exchanging values between programs...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exchanging-values-between-programs/m-p/1074014#M95753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA TXJ TYPE &amp;lt;b&amp;gt;TTXJ-TXJCD&amp;lt;/b&amp;gt;.
IMPORT TTXJ-TXJCD to TXJ FROM MEMORY ID 'ZTXJCD'.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make certain that the types or data delaration is the same on both sides,  EXPORT side and IMPORT SIDE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 14:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exchanging-values-between-programs/m-p/1074014#M95753</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-10T14:53:55Z</dc:date>
    </item>
  </channel>
</rss>

