<?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 a report into a function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-into-a-function-module/m-p/2511804#M568088</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 your fm has a table parameter in order to transfer the sales documents, in your fm:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RANGES: R_VBELN FOR VBAK-VBELN.

REFRESH R_VBELN.

LOOP AT T_SALES_DOC.
  R_VBELN(3) = 'IEQ'.
  R_VBELN-LOW = T_SALES_DOC-VBELN.
  APPEND R_VBELN.
ENDLOOP.
IF SY-SUBRC = 0.
  SUBMIT &amp;lt;REPORT&amp;gt; WITH SO_VBELN IN R_VBELN AND RETURN.
ENDIF.&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>Mon, 09 Jul 2007 16:24:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-09T16:24:59Z</dc:date>
    <item>
      <title>calling a report into a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-into-a-function-module/m-p/2511803#M568087</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 am giving the requirement,please help me in solving the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am having a functionmodule.we have to give the sales document as the input to the function module.&lt;/P&gt;&lt;P&gt;we have to call a report in which selection screen contains a parameter where we have to give the input as the sales document from the function module.&lt;/P&gt;&lt;P&gt;Please provide with me the required solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is very urgent.....................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 16:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-into-a-function-module/m-p/2511803#M568087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T16:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: calling a report into a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-into-a-function-module/m-p/2511804#M568088</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 your fm has a table parameter in order to transfer the sales documents, in your fm:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RANGES: R_VBELN FOR VBAK-VBELN.

REFRESH R_VBELN.

LOOP AT T_SALES_DOC.
  R_VBELN(3) = 'IEQ'.
  R_VBELN-LOW = T_SALES_DOC-VBELN.
  APPEND R_VBELN.
ENDLOOP.
IF SY-SUBRC = 0.
  SUBMIT &amp;lt;REPORT&amp;gt; WITH SO_VBELN IN R_VBELN AND RETURN.
ENDIF.&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>Mon, 09 Jul 2007 16:24:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-into-a-function-module/m-p/2511804#M568088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T16:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: calling a report into a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-into-a-function-module/m-p/2511805#M568089</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;Here is the   Function Module   for  sales  ducoment display based on the sales  document  number as  input to the function module ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just  go to  se37      in  import   give &lt;/P&gt;&lt;P&gt;R_VBELN TYPE  VBAK-VBELN   and in the  source code    as  below  lines ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION ZTEST_SALE.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(R_VBELN) TYPE  VBAK-VBELN
*"----------------------------------------------------------------------



SET PARAMETER ID 'BES' FIELD R_VBELN .

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN  .

ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;the same   quesry as report   line &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zasra.

parameter : R_VBELN like VBAK-VBELN.


SET PARAMETER ID 'BES' FIELD R_VBELN .

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN  .&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>Tue, 10 Jul 2007 05:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-into-a-function-module/m-p/2511805#M568089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T05:22:27Z</dc:date>
    </item>
  </channel>
</rss>

