<?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 return message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610309#M869644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken Sanghvi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xkomv table has only filled in condition types. If any mandatory condition type not filled in, then it is not coming in xkomv. How do I check whether all the mandatory condition types are filled in and if not get the condition type to display in the error message?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me some more detailed information. I don't have good experience with Pricing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swetha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2008 16:14:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-03T16:14:47Z</dc:date>
    <item>
      <title>BAPI return message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610301#M869636</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 trying to use 'BAPI_INQUIRY_CREATEFROMDATA2' to create Inquiries. It is creating successfully. But if there any pricing errors like 'Pricing error: Mandatory condition SRP5 is missing', it is not giving this return message but instead giving generic return message saying 'The sales document is not yet complete: Edit data'.&lt;/P&gt;&lt;P&gt;If we use BDC to create the Inquiry, if the same problem happens, it does gives the specific return message ('Pricing error: Mandatory condition SRP5 is missing').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get this specific return message from the BAPI as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swetha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 12:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610301#M869636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T12:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI return message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610302#M869637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can retrieve and display the bapi messages with fm´s:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL FUNCTION 'MESSAGES_INITIALIZE'. 

LOOP AT it_return_bapi. 
    CALL FUNCTION 'MESSAGE_STORE' 
         EXPORTING 
              arbgb                   = it_return_bapi-id 
              exception_if_not_active = ' ' 
              msgty                   = it_return_bapi-type 
              msgv1                   = it_return_bapi-message_v1 
              msgv2                   = it_return_bapi-message_v2 
              msgv3                   = it_return_bapi-message_v3 
              msgv4                   = it_return_bapi-message_v4 
              txtnr                   = it_return_bapi-number 
              zeile                   = ' ' 
         EXCEPTIONS 
              message_type_not_valid  = 1 
              not_active              = 2 
              OTHERS                  = 3. 
  ENDLOOP.

CALL FUNCTION 'MESSAGES_STOP' 
       EXCEPTIONS 
            a_message = 04 
            e_message = 03 
            i_message = 02 
            w_message = 01. 

 IF NOT sy-subrc IS INITIAL. 
    CALL FUNCTION 'MESSAGES_SHOW' 
         EXPORTING 
              i_use_grid         = 'X' 
              i_amodal_window    = i_amod_window 
         EXCEPTIONS 
              inconsistent_range = 1 
              no_messages        = 2 
              OTHERS             = 3. 
  ENDIF. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 13:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610302#M869637</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2008-04-02T13:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI return message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610303#M869638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pablo casamayor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help. But I don't understand fully. Could you kindly give me some more explaination on it.                 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swetha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 13:45:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610303#M869638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T13:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI return message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610304#M869639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This BAPI does not return back pricing messages like the one you list (V1 801) back in the RETURN table.  This message is issued directly to the screen and not captured during BAPI processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that during online and BDC processing, this message (V1 801) is issued as a success message not an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way to get this message could be to issue an error message ('E') message during USEREXIT_SAVE_DOCUMENT of SAPMV45A when XVBUV (Incompletion log ) has mandatory pricing missing i.e. XVBUV-TBNAM = 'VBAP' &amp;amp; XVBUV-FDNAM = 'PRSOK'.  An error message issued during this userexit will be returned back via the BAPI.  If you want, you can limit when this message is issued in the userexit to only when called from the BAPI i.e. when variable CALL_BAPI = 'X' in the userexit. If you want to limit this message only for inquiry documents then check for VBAK-VBTYP = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ken Sanghvi on Apr 2, 2008 10:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 13:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610304#M869639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T13:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI return message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610305#M869640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the code included is just a simple way to retrieve and display the messages arising during the bapi call.&lt;/P&gt;&lt;P&gt;Someone´s answered in this thread that the message does not appear during the bapi call. If this is the case the code i´ve sent you is of no use.&lt;/P&gt;&lt;P&gt;But make sure and check it anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 14:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610305#M869640</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2008-04-02T14:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI return message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610306#M869641</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;There can be many errors encountered and BAPI may not give proper error explaination, since bapi updates tables and encounters errors when it cannot update, there is inconsistency or mandatory parameter missing, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when you work with BDC, it processes screen after screen, and so BDC can pull out exact data encountered in a screen itself and stops further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, with BAPI you have to stick to the error messages it throws &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Tapas&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 3, 2008 4:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 18:12:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610306#M869641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T18:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI return message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610307#M869642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken Sanghvi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the info. COuld you please let me know when we issue the error message, is it possible to check and send the condition type as well? To send a message exactly like 'Pricing error: Mandatory condition SRP5 is missing'? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swetha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 21:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610307#M869642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T21:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI return message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610308#M869643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to checking for XVBUV, you could also loop through XKOMV where FXMSG is populated. FXMSG should have the message (801) populated for the condition type. Also make sure you check for XKOMV-KINAK = ' ' i.e. active condition only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 13:13:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610308#M869643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T13:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI return message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610309#M869644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken Sanghvi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xkomv table has only filled in condition types. If any mandatory condition type not filled in, then it is not coming in xkomv. How do I check whether all the mandatory condition types are filled in and if not get the condition type to display in the error message?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me some more detailed information. I don't have good experience with Pricing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swetha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 16:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610309#M869644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T16:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI return message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610310#M869645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another possible way is to read the pricing procedure configuration to determine if a mandatory condition type is missing in XKOMV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following select statement should get you back the required condition types for that pricing procedure:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

select * from T683S where KVEWE = 'A'
                                 and KAPPL  = 'V'
                                 and KALSM  = VBAK-KALSM
                                 and KOBLI = 'X'.   "Required condition

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 20:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610310#M869645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T20:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI return message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610311#M869646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did this work for you?  Just curious.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2008 14:55:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610311#M869646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-07T14:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI return message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610312#M869647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ken for all your help &amp;amp; replies..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like you mentioned, I finally read the pricing procedure configuration to determine if a mandatory condition type is missing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 02:11:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-message/m-p/3610312#M869647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T02:11:20Z</dc:date>
    </item>
  </channel>
</rss>

