<?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: BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1611501#M274113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'BAPI_BCONTACT_CREATEFROMDATA' will have the return parameter ( RETURN LIKE  BAPIRETURN1 STRUCTURE  BAPIRETURN1 ). Check what it is returing when the contract is not created. Pass that to the custom function module parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this in ur custom FM assign a export parameter return like BAPIRETURN1. Pass the value which is coming from BAPI to this return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Oct 2006 12:25:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-10T12:25:28Z</dc:date>
    <item>
      <title>BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1611500#M274112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have developed a custom Function Module which in turn calls the BAPI Function Module 'BAPI_BCONTACT_CREATEFROMDATA'.&lt;/P&gt;&lt;P&gt;The import parameters of the function module are passed to the BAPI function module. &lt;/P&gt;&lt;P&gt;If the BAPI is called successfully then the Customer Contact is created. But if the BAPI is not called successfully then i need to pass back the reason code to the Custom Function Module's export parameter.&lt;/P&gt;&lt;P&gt;I am not able to crack this issue.&lt;/P&gt;&lt;P&gt;Can anyone please help me with this?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rakesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 12:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1611500#M274112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T12:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1611501#M274113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'BAPI_BCONTACT_CREATEFROMDATA' will have the return parameter ( RETURN LIKE  BAPIRETURN1 STRUCTURE  BAPIRETURN1 ). Check what it is returing when the contract is not created. Pass that to the custom function module parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this in ur custom FM assign a export parameter return like BAPIRETURN1. Pass the value which is coming from BAPI to this return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 12:25:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1611501#M274113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T12:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1611502#M274114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;'BAPI_BCONTACT_CREATEFROMDATA' returns two export parameter 'RETURN' and 'CONTACT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ur Contact will not be created then posiible error msgs will be stroed in RETURN parameter,This u need to pass to ur custom FM.U can check CONTACT field whetehre its initial after firing BAPI.If BAPI succesfully executed then this field will have value otherwise not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To pass the RETURN value declare one export parameter&lt;/P&gt;&lt;P&gt;RETURN like BAPIRETURN1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then collect the msgs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If helpful&lt;/P&gt;&lt;P&gt;Then reward me points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs&lt;/P&gt;&lt;P&gt;Manas Ranjan Panda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 13:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1611502#M274114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T13:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1611503#M274115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; 'BAPI_BCONTACT_CREATEFROMDATA' will have the return&lt;/P&gt;&lt;P&gt;&amp;gt; parameter ( RETURN LIKE  BAPIRETURN1 STRUCTURE&lt;/P&gt;&lt;P&gt;&amp;gt; BAPIRETURN1 ). Check what it is returing when the&lt;/P&gt;&lt;P&gt;&amp;gt; e contract is not created. Pass that to the custom&lt;/P&gt;&lt;P&gt;&amp;gt; function module parameter.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; For this in ur custom FM assign a export parameter&lt;/P&gt;&lt;P&gt;&amp;gt; return like BAPIRETURN1. Pass the value which is&lt;/P&gt;&lt;P&gt;&amp;gt; coming from BAPI to this return.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ya that is fine i have one export parameter in my custom function module that gets its value from the RETURN export parameter of the BAPI. But what i want really is i need to get the reason codes like 'o1','o2','o3','o4','o5','o6'. So how can i get that.coz i need to get the specific error and not a generalised one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 08:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1611503#M274115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T08:02:00Z</dc:date>
    </item>
  </channel>
</rss>

