<?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: Call Multiple BAPI's at dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-multiple-bapi-s-at-dynamically/m-p/8503813#M1654256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Apart from my example you can view this link for sample code &lt;/P&gt;&lt;P&gt;[Calling function modules dynamically|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-9989fd650822#q-29]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2012 09:53:26 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2012-02-14T09:53:26Z</dc:date>
    <item>
      <title>Call Multiple BAPI's at dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-multiple-bapi-s-at-dynamically/m-p/8503810#M1654253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a requirement where, i will receive a file having a Bapi name, its required import parameters with name and values, its exporting parametres and return table parameters with fname and values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it can be any BAPI of the system in that file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked and searched very much, and got following way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create a BAPI Gateway Function object.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Find the Repository Services IFunction object for the function module you wish to call. You&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;do so by finding the specific IFunction object in the IFunctions collection of the Repository&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Services.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Use the CreateFromRepository method of the BAPI Gateway Function object to copy the&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;metadata of the Repository Services IFunction object into the BAPI Gateway Function object.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Use the Call method of the BAPI Gateway Function object to call function module.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. If no error occurred when calling the function module, get the data returned through the&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;export parameters of the function call.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You can use the AdviseRfcGuiSink method of the BAPI Gateway Function object before calling&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;the function. This invokes the SAPGUI, if it is installed, running the ABAP Debugger. It then hits a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;breakpoint at the next RFC call.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am unable to implement/understand these points, so can anybody help me in this or can suggest any other way of doing such..&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 06:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-multiple-bapi-s-at-dynamically/m-p/8503810#M1654253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T06:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Call Multiple BAPI's at dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-multiple-bapi-s-at-dynamically/m-p/8503811#M1654254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you need to call it in custom program itself ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bapi is also a function module. So the same applies for calling the function module dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example refer function module, you will find a line like below. Look at the function module PRICING_SUBSCREEN_SET_DATA and check how to populate p_tab &amp;amp; e_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL FUNCTION 'PRICING_SUBSCREEN_PBO' PARAMETER-TABLE p_tab
                                       EXCEPTION-TABLE e_tab.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if name is dynamic then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
lf_bapi_name = 'BAPI_ROUTING_CREATE'.
CALL FUNCTION lf_bapi_name PARAMETER-TABLE p_tab
                           EXCEPTION-TABLE e_tab.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 08:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-multiple-bapi-s-at-dynamically/m-p/8503811#M1654254</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-02-14T08:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Call Multiple BAPI's at dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-multiple-bapi-s-at-dynamically/m-p/8503812#M1654255</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;yes i have to create/call it in a custom program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i cant see any link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i ant to ask you that how to proceed if :&lt;/P&gt;&lt;P&gt;1. A Bapi to be called dynamically has 3 Importing Structures, 2 Importing Tables&lt;/P&gt;&lt;P&gt;                                                              3 exporting Structures, 3 exporting Tables&lt;/P&gt;&lt;P&gt;                                                              2 returning Structures, 2 returning Tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mean how to deal with all under the same PARA_TAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 09:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-multiple-bapi-s-at-dynamically/m-p/8503812#M1654255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T09:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Call Multiple BAPI's at dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-multiple-bapi-s-at-dynamically/m-p/8503813#M1654256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Apart from my example you can view this link for sample code &lt;/P&gt;&lt;P&gt;[Calling function modules dynamically|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-9989fd650822#q-29]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 09:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-multiple-bapi-s-at-dynamically/m-p/8503813#M1654256</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-02-14T09:53:26Z</dc:date>
    </item>
  </channel>
</rss>

