<?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: data send to external programs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-send-to-external-programs/m-p/3428884#M823660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sateesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; By using ABAP memory (OR)  SAP Memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM first Program you can use your required below sytax.&lt;/P&gt;&lt;P&gt;Passing the data from first program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP memory  ;&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. 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;4. EXPORT obj1 ... objn TO SHARED BUFFER dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;5. EXPORT (itab) TO ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Secon Program  :&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;1. IMPORT obj1 ... objn FROM MEMORY. &lt;/P&gt;&lt;P&gt;2. IMPORT obj1 ... objn FROM DATABASE dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;3. IMPORT obj1 ... objn FROM LOGFILE ID key. &lt;/P&gt;&lt;P&gt;4. IMPORT DIRECTORY INTO itab FROM DATABASE dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;5. IMPORT obj1 ... objn FROM DATASET dsn(ar) ID key. &lt;/P&gt;&lt;P&gt;6. IMPORT obj1 ... objn FROM SHARED BUFFER dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;7. IMPORT (itab) FROM ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Receiving the data in scond program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP MEMORY :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER ID pid FIELD f. &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;Writes the contents of the field f to the global user-specific SAP memory under the ID pid. SAP-Memory geschrieben. Wenn unter diesem Any existing value under the same ID is overwritten. &lt;/P&gt;&lt;P&gt;Parameter IDs can be up to 20 characters long. They cannot consist entirely of spaces. The SAP system description contains an overview of parameter IDs. You can also produce a list using the ABAP Workbench. &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 global, user-specific SAP memory is available to a user for the duration of a single terminal session. Values written to it are retained even when the user exits a program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not use SAP memory as a temporary storage area, since parallel sessions belonging to the same user all use the same memory area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create new parameter IDs using the ABAP Workbench. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter IDs may have a namespace prefix. &lt;/P&gt;&lt;P&gt;&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;DATA REPID like sy-repid VALUE 'RSPFPAR'. &lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'RID' FIELD REPID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gertting the data :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PARAMETER ID pid FIELD f. &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;Transfers the value stored under the key pid from the global user-related SAP memory to the field f. &lt;/P&gt;&lt;P&gt;A parameter ID can be up to 20 characters long. For an overview of the keys (parameters) used, refer to the SAP system description or the appropriate function in the ABAP Workbench. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0: A value was read from SAP memory. SY-SUBRC = 4: No value was found in SAP memory under the specified key. &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;SY-SUBRC is only set as of Release 4.0! For Releases 3.x, you can test whether GET PARAMETER has read something by first setting the result variable f to an invalid value and then reading the variable (see also Note 63161). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The global user-related SAP memory is available to each user for the entire duration of a terminal session. For this reason, set values are retained when you leave a program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should not use SAP memory for temporary storage because a user's parallel sessions use the same global memory. &lt;/P&gt;&lt;P&gt;&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;Read the program name from SAP memory: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : REPID LIKE SY-REPID. &lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'RID' FIELD REPID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2008 03:28:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-25T03:28:54Z</dc:date>
    <item>
      <title>data send to external programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-send-to-external-programs/m-p/3428883#M823659</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;how can we send data to external programs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2008 09:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-send-to-external-programs/m-p/3428883#M823659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-24T09:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: data send to external programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-send-to-external-programs/m-p/3428884#M823660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sateesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; By using ABAP memory (OR)  SAP Memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM first Program you can use your required below sytax.&lt;/P&gt;&lt;P&gt;Passing the data from first program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP memory  ;&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. 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;4. EXPORT obj1 ... objn TO SHARED BUFFER dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;5. EXPORT (itab) TO ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Secon Program  :&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;1. IMPORT obj1 ... objn FROM MEMORY. &lt;/P&gt;&lt;P&gt;2. IMPORT obj1 ... objn FROM DATABASE dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;3. IMPORT obj1 ... objn FROM LOGFILE ID key. &lt;/P&gt;&lt;P&gt;4. IMPORT DIRECTORY INTO itab FROM DATABASE dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;5. IMPORT obj1 ... objn FROM DATASET dsn(ar) ID key. &lt;/P&gt;&lt;P&gt;6. IMPORT obj1 ... objn FROM SHARED BUFFER dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;7. IMPORT (itab) FROM ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Receiving the data in scond program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP MEMORY :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER ID pid FIELD f. &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;Writes the contents of the field f to the global user-specific SAP memory under the ID pid. SAP-Memory geschrieben. Wenn unter diesem Any existing value under the same ID is overwritten. &lt;/P&gt;&lt;P&gt;Parameter IDs can be up to 20 characters long. They cannot consist entirely of spaces. The SAP system description contains an overview of parameter IDs. You can also produce a list using the ABAP Workbench. &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 global, user-specific SAP memory is available to a user for the duration of a single terminal session. Values written to it are retained even when the user exits a program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not use SAP memory as a temporary storage area, since parallel sessions belonging to the same user all use the same memory area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create new parameter IDs using the ABAP Workbench. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter IDs may have a namespace prefix. &lt;/P&gt;&lt;P&gt;&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;DATA REPID like sy-repid VALUE 'RSPFPAR'. &lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'RID' FIELD REPID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gertting the data :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PARAMETER ID pid FIELD f. &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;Transfers the value stored under the key pid from the global user-related SAP memory to the field f. &lt;/P&gt;&lt;P&gt;A parameter ID can be up to 20 characters long. For an overview of the keys (parameters) used, refer to the SAP system description or the appropriate function in the ABAP Workbench. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0: A value was read from SAP memory. SY-SUBRC = 4: No value was found in SAP memory under the specified key. &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;SY-SUBRC is only set as of Release 4.0! For Releases 3.x, you can test whether GET PARAMETER has read something by first setting the result variable f to an invalid value and then reading the variable (see also Note 63161). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The global user-related SAP memory is available to each user for the entire duration of a terminal session. For this reason, set values are retained when you leave a program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should not use SAP memory for temporary storage because a user's parallel sessions use the same global memory. &lt;/P&gt;&lt;P&gt;&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;Read the program name from SAP memory: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : REPID LIKE SY-REPID. &lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'RID' FIELD REPID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 03:28:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-send-to-external-programs/m-p/3428884#M823660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T03:28:54Z</dc:date>
    </item>
  </channel>
</rss>

