<?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: syntax to execute a report from inside a function module? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-execute-a-report-from-inside-a-function-module/m-p/1252558#M145379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adriaan,&lt;/P&gt;&lt;P&gt;  Use statement &amp;lt;b&amp;gt;SUBMIT&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SUBMIT REPORT01 &lt;/P&gt;&lt;P&gt;       VIA SELECTION-SCREEN "this is optional&lt;/P&gt;&lt;P&gt;       AND RETURN.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Mar 2006 16:14:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-03T16:14:28Z</dc:date>
    <item>
      <title>syntax to execute a report from inside a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-execute-a-report-from-inside-a-function-module/m-p/1252556#M145377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am actually a Basis admin so this might be easy for you ABAPers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to modify a function module to execute a report (without any variables or variants) somewhere in the beginning of the function module and then carry on with the rest of the funtion module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the syntax for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2006 16:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-execute-a-report-from-inside-a-function-module/m-p/1252556#M145377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-03T16:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to execute a report from inside a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-execute-a-report-from-inside-a-function-module/m-p/1252557#M145378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally FM is called like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:GWY_GWHOST LIKE GWY_STRUCT-GWHOST,&lt;/P&gt;&lt;P&gt;      GWY_GWSERV LIKE GWY_STRUCT-GWSERV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'SYSTEM_GET_CURRENT_GATEWAY'  &lt;/P&gt;&lt;P&gt;      EXPORTING                              &lt;/P&gt;&lt;P&gt;           STARTCOMP = STARTCOMP             &lt;/P&gt;&lt;P&gt;      IMPORTING                              &lt;/P&gt;&lt;P&gt;           GWHOST    = GWHOST                &lt;/P&gt;&lt;P&gt;           GWSERV    = GWSERV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2006 16:09:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-execute-a-report-from-inside-a-function-module/m-p/1252557#M145378</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2006-03-03T16:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to execute a report from inside a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-execute-a-report-from-inside-a-function-module/m-p/1252558#M145379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adriaan,&lt;/P&gt;&lt;P&gt;  Use statement &amp;lt;b&amp;gt;SUBMIT&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SUBMIT REPORT01 &lt;/P&gt;&lt;P&gt;       VIA SELECTION-SCREEN "this is optional&lt;/P&gt;&lt;P&gt;       AND RETURN.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2006 16:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-execute-a-report-from-inside-a-function-module/m-p/1252558#M145379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-03T16:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to execute a report from inside a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-execute-a-report-from-inside-a-function-module/m-p/1252559#M145380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adriaan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can call the report , using SUBMIT in your FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you don't have any selection screen then you can directly say SUBMIT ZREPORT and RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have selection screen then fill the selection screen variables and pass it .check this sample..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: SELTAB     TYPE TABLE OF RSPARAMS, 
      SELTAB_WA  LIKE LINE OF SELTAB. 

MOVE: 'LANGU'  TO SELTAB_WA-SELNAME, 
      'S'      TO SELTAB_WA-KIND,      " SELECT-OPTION 
      'I'      TO SELTAB_WA-SIGN, 
      'BT'     TO SELTAB_WA-OPTION, 
      'D'      TO SELTAB_WA-LOW, 
      'I'      TO SELTAB_WA-HIGH. 
APPEND SELTAB_WA TO SELTAB. 

MOVE: 'E'      TO SELTAB_WA-SIGN, 
      'EQ'     TO SELTAB_WA-OPTION, 
      'F'      TO SELTAB_WA-LOW, 
      SPACE    TO SELTAB_WA-HIGH. 
APPEND SELTAB_WA TO SELTAB. 

CLEAR SELTAB_WA. 
MOVE: 'ARBGB' TO SELTAB_WA-SELNAME, 
      'P'     TO SELTAB_WA-KIND,      " PARAMETER 
      'XX'    TO SELTAB_WA-LOW. 
APPEND SELTAB_WA TO SELTAB. 


SUBMIT REPORT00 
       USING SELECTION-SET 'VARIANT1' 
       WITH  ARBGB CP 'A*' 
       WITH  SELECTION-TABLE SELTAB 
       AND RETURN.&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;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2006 16:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-execute-a-report-from-inside-a-function-module/m-p/1252559#M145380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-03T16:24:42Z</dc:date>
    </item>
  </channel>
</rss>

