<?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: Calling report in a Function module. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-in-a-function-module/m-p/3875568#M931557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, get rid of the quotes around the parameter names and the program name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;submit TAW10_BASICS_CALL_FUNCTION
 with  pa_carr = wa_flight-carrid
         pa_occ = wa_flight-seatsocc
         pa_paysu = wa_flight-paymentsum 
         pa_curr = wa_flight-currency
            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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2008 17:37:44 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2008-05-20T17:37:44Z</dc:date>
    <item>
      <title>Calling report in a Function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-in-a-function-module/m-p/3875567#M931556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to call an executable ABAP report within a FM using SUBMIT as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data: wa_flight type zabapreport .

loop at itab_flight into wa_flight .
submit "TAW10_BASICS_CALL_FUNCTION"
 with  "pa_carr" eq wa_flight-carrid 'I'
       "pa_occ" eq wa_flight-seatsocc 'I'
       "pa_paysu" eq wa_flight-paymentsum 'I'
       "pa_curr" eq wa_flight-currency 'I'
       and return .
   endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i try to test the FM by passing values to itab_flight ie import parameter i get the following error..&lt;/P&gt;&lt;P&gt;On account of a branch in the program&lt;/P&gt;&lt;P&gt;(CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)&lt;/P&gt;&lt;P&gt;or a transaction call, another ABAP/4 program&lt;/P&gt;&lt;P&gt;is to be loaded, namely "WITH".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, program "WITH" does not exist in the library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible reasons:&lt;/P&gt;&lt;P&gt;a) Wrong program name specified in an external PERFORM or&lt;/P&gt;&lt;P&gt;   SUBMIT or, when defining a new transaction, a new&lt;/P&gt;&lt;P&gt;   dialog module or a new function module.&lt;/P&gt;&lt;P&gt;b) Transport error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what am i doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anubhav.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 17:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-in-a-function-module/m-p/3875567#M931556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T17:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calling report in a Function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-in-a-function-module/m-p/3875568#M931557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, get rid of the quotes around the parameter names and the program name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;submit TAW10_BASICS_CALL_FUNCTION
 with  pa_carr = wa_flight-carrid
         pa_occ = wa_flight-seatsocc
         pa_paysu = wa_flight-paymentsum 
         pa_curr = wa_flight-currency
            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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 17:37:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-in-a-function-module/m-p/3875568#M931557</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-05-20T17:37:44Z</dc:date>
    </item>
  </channel>
</rss>

