<?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 How to the variable from the other program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-the-variable-from-the-other-program/m-p/2897587#M681260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sap guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider there are two programs. That is Program A and Program B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to use one variable in program A from program B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help Me on This&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Basu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2007 11:51:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-12T11:51:44Z</dc:date>
    <item>
      <title>How to the variable from the other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-the-variable-from-the-other-program/m-p/2897587#M681260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sap guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider there are two programs. That is Program A and Program B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to use one variable in program A from program B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help Me on This&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Basu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 11:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-the-variable-from-the-other-program/m-p/2897587#M681260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T11:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to the variable from the other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-the-variable-from-the-other-program/m-p/2897588#M681261</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;using set/get parameter id You can Pass the Value from one program to another program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER:INPUT(30).&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'EXAMPLE' FIELD input.&lt;/P&gt;&lt;P&gt;submit ZEXAMPL1 VIA SELECTION-SCREEN AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zexample1.&lt;/P&gt;&lt;P&gt;DATA:VAR TYPE SY-UCOMM.&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'EXAMPLE' FIELD VAR.&lt;/P&gt;&lt;P&gt;write:/ var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 11:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-the-variable-from-the-other-program/m-p/2897588#M681261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T11:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to the variable from the other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-the-variable-from-the-other-program/m-p/2897589#M681262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using  Submit .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;means   submit one program B  inside the Program A .&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  demo_program_submit_rep1.

DATA number TYPE i.
PARAMETERS      paramet(14) TYPE c.
SELECT-OPTIONS  selecto FOR number.

The program DEMOdemo_program_submit_rep1 is called by the following program using various parameters:

REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.

DATA: int TYPE i,
      rspar TYPE TABLE OF rsparams,
      wa_rspar LIKE LINE OF rspar.

RANGES seltab FOR int.

WRITE: 'Select a Selection!',
     / '--------------------'.
SKIP.

FORMAT HOTSPOT COLOR 5 INVERSE ON.
WRITE: 'Selection 1',
     / 'Selection 2'.

AT LINE-SELECTION.
  CASE sy-lilli.
    WHEN 4.
      seltab-sign = 'I'. seltab-option = 'BT'.
      seltab-low  = 1.   seltab-high   = 5.
      APPEND seltab.
      SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                      WITH paramet eq 'Selection 1'
                      WITH selecto IN seltab
                      WITH selecto ne 3
                      AND RETURN.
    WHEN 5.
      wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
      wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
      wa_rspar-low  = 14.  wa_rspar-high = 17.
      APPEND wa_rspar TO rspar.
      wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
      wa_rspar-low  = 'Selection 2'.
      APPEND wa_rspar TO rspar.
      wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
      wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
      wa_rspar-low  = 10.
      APPEND wa_rspar TO rspar.
      SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                      WITH SELECTION-TABLE rspar
                      AND RETURN.
  ENDCASE.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward  points if it is  usefull ...&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 11:55:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-the-variable-from-the-other-program/m-p/2897589#M681262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T11:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to the variable from the other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-the-variable-from-the-other-program/m-p/2897590#M681263</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;using set/get parameter id You can Pass the Value from one program to another program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 11:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-the-variable-from-the-other-program/m-p/2897590#M681263</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-10-12T11:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to the variable from the other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-the-variable-from-the-other-program/m-p/2897591#M681264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use EXPORT/IMPORT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export the value of the variable from program B to a memory id and then import the value of memory id in program A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work only if program A is called internally from Program B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if these two programs needs to be run independent of each other then use SET/GET parameter id. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 11:55:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-the-variable-from-the-other-program/m-p/2897591#M681264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T11:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to the variable from the other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-the-variable-from-the-other-program/m-p/2897592#M681265</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;&lt;/P&gt;&lt;P&gt;It can be done with the use of &amp;lt;b&amp;gt;get/set&amp;lt;/b&amp;gt; parameters,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I think it can also done with &amp;lt;b&amp;gt;include&amp;lt;/b&amp;gt; program, keep A as include to B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 11:56:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-the-variable-from-the-other-program/m-p/2897592#M681265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T11:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to the variable from the other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-the-variable-from-the-other-program/m-p/2897593#M681266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can also use the method of 'Common Part' to share the variables in two different programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/9f/db97c435c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/9f/db97c435c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 20:34:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-the-variable-from-the-other-program/m-p/2897593#M681266</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-10-12T20:34:26Z</dc:date>
    </item>
  </channel>
</rss>

