<?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 retrieving the possible errors from bapi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509493#M1066540</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 have done a scenario in XI in which i am transfering the material number to SAP from windchill with Basic data and Storage data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this i am using BAPI_MATARIAL_SAVEDATA, so while creating a material i could able to see the response message as "The material has been created or extended". suppose if i want to see all the possible errors list how to see that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take an example of i didn't give a material type it throws an error with a 3 digit number stating material type is not maintained for some errors it is throwing just a number without error description, So,  how many possible errors are there at back end.. and how could i see that list..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2008 08:06:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-01T08:06:42Z</dc:date>
    <item>
      <title>retrieving the possible errors from bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509493#M1066540</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 have done a scenario in XI in which i am transfering the material number to SAP from windchill with Basic data and Storage data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this i am using BAPI_MATARIAL_SAVEDATA, so while creating a material i could able to see the response message as "The material has been created or extended". suppose if i want to see all the possible errors list how to see that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take an example of i didn't give a material type it throws an error with a 3 digit number stating material type is not maintained for some errors it is throwing just a number without error description, So,  how many possible errors are there at back end.. and how could i see that list..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 08:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509493#M1066540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T08:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the possible errors from bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509494#M1066541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the message classes this bapi uses are &lt;/P&gt;&lt;P&gt;1. M3&lt;/P&gt;&lt;P&gt;2. MG&lt;/P&gt;&lt;P&gt;3. MM&lt;/P&gt;&lt;P&gt;4. MH&lt;/P&gt;&lt;P&gt;5. MK&lt;/P&gt;&lt;P&gt;6. 8Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to reduces  this message list size try searching the bapi with &lt;/P&gt;&lt;P&gt;key words like &lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;MESSAGE&lt;/P&gt;&lt;P&gt;MSGTYP&lt;/P&gt;&lt;P&gt;MSGID&lt;/P&gt;&lt;P&gt;MSGNO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mrugesh phatak on Oct 1, 2008 10:19 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 08:18:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509494#M1066541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T08:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the possible errors from bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509495#M1066542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try calling the BAPI: BAPI_MESSAGE_GETDETAIL to get the message details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think you are missing something over here...BAPI_MATERIAL_SAVEDATA should return the text of the error messages also. Check the RETURN parameter correctly. The structure of the retun parameter is as below. Here the MESSAGE field will have the text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you will get all the possible error messages in this structure itself. This will have multiple entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPE
ID
NUMBER
MESSAGE  " Here you will have the text
LOG_NO
LOG_MSG_NO
MESSAGE_V1
MESSAGE_V2
MESSAGE_V3
MESSAGE_V4
PARAMETER
ROW
FIELD
SYSTEM
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sourav Bhaduri on Oct 1, 2008 1:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 08:19:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509495#M1066542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T08:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the possible errors from bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509496#M1066543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Its difficult to say how many errors are there. But if you simply take a look at the MESSAGE component of the return parameter of the BAPI, it will give you the entire message text. &lt;/P&gt;&lt;P&gt;And of course, there is the type, number and id also available in the return parameter of the bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 08:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509496#M1066543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T08:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the possible errors from bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509497#M1066544</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;While u execute the BAPI, Pass on an internal table to the return table with the declaration of the table same as that of return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then pass on a loop to that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use write statement to display the number of errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: it_ret type standard table of bapiret2,
        wa_ret type bapiret2.
call function 'BAPI_MATERIAL_SAVEDATA'



Return = it_ret.


loop at it_ret into wa_ret.

write: / wa_ret-message.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 08:22:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509497#M1066544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T08:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the possible errors from bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509498#M1066545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phatak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message classes which u have given is checked but unable to find which one will suit for the BAPI_MATERIAL_SAVEDATA, can u be elaborate, in other ways how can i see all these messages..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i see the MM, it is matching with 356 i.e sucessfule created or extended but when i execute without giving material number it is throwing 262 and the response message was Enter Material Number but where as in the MM i can see the error message for 262 is "The conversion type &amp;amp; does not exist."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 08:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509498#M1066545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T08:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the possible errors from bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509499#M1066546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as far as message 262 is concern &lt;/P&gt;&lt;P&gt;its from class M3 not "mm" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u get the message  in return parameter &lt;/P&gt;&lt;P&gt;use the combination of &lt;/P&gt;&lt;P&gt;ID &amp;amp; Number &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like in tcode se91 &lt;/P&gt;&lt;P&gt;give Message class           M3 &lt;/P&gt;&lt;P&gt;   &amp;amp; Number                      262 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you don't give number there u will get all the message for particular class you have given in field Message class&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 09:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509499#M1066546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T09:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the possible errors from bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509500#M1066547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phatak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In similar way can u give the Message classes for BAPI_BOM_UPLOAD_SAVE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the part level was clear and we need the error list for BOM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Kishore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 09:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509500#M1066547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T09:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the possible errors from bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509501#M1066548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one class is B1.&lt;/P&gt;&lt;P&gt;for others if there are any please search using the keyword I &amp;amp; others have mentioned&lt;/P&gt;&lt;P&gt;in tcode se37&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 09:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509501#M1066548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T09:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the possible errors from bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509502#M1066549</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Just a small hint to other fans: ES_RETURN structure above is case sensitive, ordered. Field ROW must be of Number type.&lt;/P&gt;&lt;P&gt;Regs.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 22:42:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-possible-errors-from-bapi/m-p/4509502#M1066549</guid>
      <dc:creator>janv7306</dc:creator>
      <dc:date>2022-02-08T22:42:10Z</dc:date>
    </item>
  </channel>
</rss>

