<?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: How can I call another program in current program? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-call-another-program-in-current-program/m-p/2598972#M595394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to call Print program in background then use following statement.&lt;/P&gt;&lt;P&gt;  DATA: SELTAB TYPE TABLE OF RSPARAMS,  "Selection options&lt;/P&gt;&lt;P&gt;            SELTAB_WA  LIKE LINE OF SELTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              JOBNAME  = TBTCO-JOBNAME&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              JOBCOUNT = TBTCO-JOBCOUNT.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;      RETURN-MESSAGE = 'Error in Job Opening'.&lt;/P&gt;&lt;P&gt;      APPEND RETURN.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      SUBMIT &amp;lt;Report Name&amp;gt;&lt;/P&gt;&lt;P&gt;             USER sy-uname&lt;/P&gt;&lt;P&gt;             VIA JOB TBTCO-JOBNAME&lt;/P&gt;&lt;P&gt;             NUMBER TBTCO-JOBCOUNT&lt;/P&gt;&lt;P&gt;             WITH SELECTION-TABLE SELTAB&lt;/P&gt;&lt;P&gt;             WITH S_MAIL IN R_EMAIL&lt;/P&gt;&lt;P&gt;             WITH S_TEXT IN R_TEXT&lt;/P&gt;&lt;P&gt;             AND RETURN.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;        RETURN-MESSAGE = 'Error in Submitting Job'.&lt;/P&gt;&lt;P&gt;        APPEND RETURN.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;                  JOBCOUNT  = TBTCO-JOBCOUNT&lt;/P&gt;&lt;P&gt;                  JOBNAME   = TBTCO-JOBNAME&lt;/P&gt;&lt;P&gt;                  STRTIMMED = 'X'.&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;          RETURN-MESSAGE = 'Error in Closing Job'.&lt;/P&gt;&lt;P&gt;          APPEND RETURN.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2007 07:34:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-24T07:34:54Z</dc:date>
    <item>
      <title>How can I call another program in current program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-call-another-program-in-current-program/m-p/2598968#M595390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the current report, when user choose records and click Add-on button "Print", it should call another print program. However, it just jumps to the selection screen of print program. When i choose serveral records, how can i call the print program????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-call-another-program-in-current-program/m-p/2598968#M595390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I call another program in current program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-call-another-program-in-current-program/m-p/2598969#M595391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9dd035c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9dd035c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:29:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-call-another-program-in-current-program/m-p/2598969#M595391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I call another program in current program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-call-another-program-in-current-program/m-p/2598970#M595392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;use the SUBMIT command and call the other program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT &amp;lt;report&amp;gt; and Return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-call-another-program-in-current-program/m-p/2598970#M595392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I call another program in current program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-call-another-program-in-current-program/m-p/2598971#M595393</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;U need to use the statament SUBMIT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT &amp;lt;ZREPORT&amp;gt; WITH &amp;lt;PARAM1&amp;gt; =
                                          &amp;lt;PARAM2&amp;gt; =
                                           &amp;lt;SEL1&amp;gt; IN
                                           &amp;lt;SEL2&amp;gt; IN 
                                           ..................... AND RETURN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:33:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-call-another-program-in-current-program/m-p/2598971#M595393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I call another program in current program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-call-another-program-in-current-program/m-p/2598972#M595394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to call Print program in background then use following statement.&lt;/P&gt;&lt;P&gt;  DATA: SELTAB TYPE TABLE OF RSPARAMS,  "Selection options&lt;/P&gt;&lt;P&gt;            SELTAB_WA  LIKE LINE OF SELTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              JOBNAME  = TBTCO-JOBNAME&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              JOBCOUNT = TBTCO-JOBCOUNT.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;      RETURN-MESSAGE = 'Error in Job Opening'.&lt;/P&gt;&lt;P&gt;      APPEND RETURN.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      SUBMIT &amp;lt;Report Name&amp;gt;&lt;/P&gt;&lt;P&gt;             USER sy-uname&lt;/P&gt;&lt;P&gt;             VIA JOB TBTCO-JOBNAME&lt;/P&gt;&lt;P&gt;             NUMBER TBTCO-JOBCOUNT&lt;/P&gt;&lt;P&gt;             WITH SELECTION-TABLE SELTAB&lt;/P&gt;&lt;P&gt;             WITH S_MAIL IN R_EMAIL&lt;/P&gt;&lt;P&gt;             WITH S_TEXT IN R_TEXT&lt;/P&gt;&lt;P&gt;             AND RETURN.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;        RETURN-MESSAGE = 'Error in Submitting Job'.&lt;/P&gt;&lt;P&gt;        APPEND RETURN.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;                  JOBCOUNT  = TBTCO-JOBCOUNT&lt;/P&gt;&lt;P&gt;                  JOBNAME   = TBTCO-JOBNAME&lt;/P&gt;&lt;P&gt;                  STRTIMMED = 'X'.&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;          RETURN-MESSAGE = 'Error in Closing Job'.&lt;/P&gt;&lt;P&gt;          APPEND RETURN.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-call-another-program-in-current-program/m-p/2598972#M595394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I call another program in current program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-call-another-program-in-current-program/m-p/2598973#M595395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Submit or call or BDC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 07:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-call-another-program-in-current-program/m-p/2598973#M595395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T07:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I call another program in current program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-call-another-program-in-current-program/m-p/2598974#M595396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Submit or call or BDC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 07:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-call-another-program-in-current-program/m-p/2598974#M595396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T07:13:26Z</dc:date>
    </item>
  </channel>
</rss>

