<?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: unable to capture error message while creating an SO using bapi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-capture-error-message-while-creating-an-so-using-bapi/m-p/1876047#M368387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shyam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my understanding is correct, you are performing BDC process within the customized BAPI...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you want to collect the messages from BDC to an internal table and pass to the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proceed as below:&lt;/P&gt;&lt;P&gt;1. While calling BDC, use CALL TRANSACTION .... with addition: &amp;lt;b&amp;gt;MESSAGES INTO itab&amp;lt;/b&amp;gt;. The structure of itab should be like &amp;lt;b&amp;gt;BDCMSGCOLL&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;2. Now the messages will be collected in ita.&lt;/P&gt;&lt;P&gt;3. Prepare the messages using FM: &amp;lt;b&amp;gt;FORMAT_MESSAGE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;4. Collect to the returning table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though i could not understand the reason of creating a BDC within BAPI, you can opt for loading orders via BAPI's like: BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2007 07:57:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-10T07:57:30Z</dc:date>
    <item>
      <title>unable to capture error message while creating an SO using bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-capture-error-message-while-creating-an-so-using-bapi/m-p/1876046#M368386</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;Can anybody suggest how to capture the error message while creating a SO using BAPI.&lt;/P&gt;&lt;P&gt;I have developed a customeized BAPI and using the BDC format to create the SO.&lt;/P&gt;&lt;P&gt;Note: i am using a call transaction method for the BDC.&lt;/P&gt;&lt;P&gt;I am sending the message into message1.&lt;/P&gt;&lt;P&gt;but i am unable to send the same into an internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 07:42:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-capture-error-message-while-creating-an-so-using-bapi/m-p/1876046#M368386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T07:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: unable to capture error message while creating an SO using bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-capture-error-message-while-creating-an-so-using-bapi/m-p/1876047#M368387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shyam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my understanding is correct, you are performing BDC process within the customized BAPI...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you want to collect the messages from BDC to an internal table and pass to the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proceed as below:&lt;/P&gt;&lt;P&gt;1. While calling BDC, use CALL TRANSACTION .... with addition: &amp;lt;b&amp;gt;MESSAGES INTO itab&amp;lt;/b&amp;gt;. The structure of itab should be like &amp;lt;b&amp;gt;BDCMSGCOLL&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;2. Now the messages will be collected in ita.&lt;/P&gt;&lt;P&gt;3. Prepare the messages using FM: &amp;lt;b&amp;gt;FORMAT_MESSAGE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;4. Collect to the returning table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though i could not understand the reason of creating a BDC within BAPI, you can opt for loading orders via BAPI's like: BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 07:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-capture-error-message-while-creating-an-so-using-bapi/m-p/1876047#M368387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T07:57:30Z</dc:date>
    </item>
  </channel>
</rss>

