<?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: submit program and execute in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718547#M1297722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is no jobs, it is report type program ( list of open items) real time user program, to be clear &lt;/P&gt;&lt;P&gt;is it possible in ABAP use  command execute like submit was used !? &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Jun 2009 12:40:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-14T12:40:35Z</dc:date>
    <item>
      <title>submit program and execute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718543#M1297718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;I have created report which submit another report, is it possible to submit and automatic execute this report. &lt;/P&gt;&lt;P&gt;Main point is to avoid another click on F8 ( direct execute second report).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jun 2009 20:00:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718543#M1297718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-13T20:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: submit program and execute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718544#M1297719</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 don't think it is possible with &lt;EM&gt;Executable&lt;/EM&gt; program type (report), unless you are using &lt;STRONG&gt;job&lt;/STRONG&gt; to run this report automatically. &lt;/P&gt;&lt;P&gt;This is however possible for &lt;EM&gt;Subroutine pool&lt;/EM&gt; program type. Do the following:&lt;/P&gt;&lt;P&gt;- create &lt;EM&gt;Subroutine pool&lt;/EM&gt; program&lt;/P&gt;&lt;P&gt;- create a class inside it with only one method (though subroutine pools is intended to store subroutines, it can also handle classes)  &lt;/P&gt;&lt;P&gt;- in that method place you code which submits another report. It can look like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROGRAM my_sub_pool.

CLASS my_class DEFINITION.
  PUBLIC SECTION.
     METHODS: main.
ENDCLASS.

CLASS my_class IMPLEMENTATION.
   METHOD main.
      ....
      "here submit your program and do your coding which you do in normal report
      SUBMIT ....
   ENDMETHOD.
ENDCLASS.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;- last step is to create an Object Transaction. Right click on program name -&amp;gt; create transaction -&amp;gt; choose the option &lt;EM&gt;Method of a class&lt;/EM&gt; (Object transaction) as an &lt;EM&gt;Initial Object&lt;/EM&gt; . Enter the Class Name and Method ( &lt;EM&gt;my_class&lt;/EM&gt; + &lt;EM&gt;main&lt;/EM&gt; ). Set the &lt;EM&gt;Local in Program&lt;/EM&gt; flag and -&amp;gt; enter the program name.&lt;/P&gt;&lt;P&gt;Save the transaction code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when you use this tcode, it will call &lt;EM&gt;main&lt;/EM&gt; method of class &lt;EM&gt;my_class&lt;/EM&gt; from program &lt;EM&gt;my_sub_pool&lt;/EM&gt; and automatically execute your coding which can also execute another report by means of SUBMIT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jun 2009 20:45:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718544#M1297719</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-06-13T20:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: submit program and execute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718545#M1297720</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 this code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report Y1_program.

DATA abaplist LIKE abaplist OCCURS 0 WITH HEADER LINE.

PARAMETER: p_paydt TYPE dats DEFAULT sy-datum.
PARAMETERS MODE NO-DISPLAY DEFAULT 'X'.

    SUBMIT y2_program USING SELECTION-SETS OF   
          PROGRAM 'Y1_program'
          WITH p_paydt = p_paydt   
          WITH mode = mode        
    AND RETURN EXPORTING LIST TO MEMORY.

    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = abaplist
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2009 06:55:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718545#M1297720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-14T06:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: submit program and execute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718546#M1297721</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;If you do not have any problem to execute this program in BACKGROUND  MODE , then &lt;/P&gt;&lt;P&gt;it is possible .&lt;/P&gt;&lt;P&gt;Go to transaction &lt;STRONG&gt;SM36&lt;/STRONG&gt;  define a JOB with the starting time (When u want to execute the &lt;/P&gt;&lt;P&gt;Program ) report  name  etc.&lt;/P&gt;&lt;P&gt;Transaction SM37 is for the Background Job selection .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By this way assigning a Report in background you can execute it with out clicking the F8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2009 06:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718546#M1297721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-14T06:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: submit program and execute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718547#M1297722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is no jobs, it is report type program ( list of open items) real time user program, to be clear &lt;/P&gt;&lt;P&gt;is it possible in ABAP use  command execute like submit was used !? &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2009 12:40:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718547#M1297722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-14T12:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: submit program and execute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718548#M1297723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Directly not, but what I described above you can apply also to your first program. So the logic would be like this:&lt;/P&gt;&lt;P&gt;complete steps provided above but change name of submiting program to the first one. This will simulate F8 for first report. Inside first report simply submit another one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way user, by means of transaction code, will execute subroutine pool -&amp;gt; which will submit first report (without any further user interaction) -&amp;gt; which will submit second report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2009 12:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718548#M1297723</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-06-14T12:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: submit program and execute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718549#M1297724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is simple solution, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SUBMIT zreport WITH  SELECTION-TABLE seltab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        VIA SELECTION-SCREEN     " that must me comment !&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          AND RETURN .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 07:53:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718549#M1297724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T07:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: submit program and execute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718550#M1297725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 07:54:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-execute/m-p/5718550#M1297725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T07:54:15Z</dc:date>
    </item>
  </channel>
</rss>

