<?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: capture an error while creating a purchase requisition (BAPI_PR_CREATE) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-an-error-while-creating-a-purchase-requisition-bapi-pr-create/m-p/5930056#M1332903</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;To get the error messages after the BAPI_PR_CREATE is called,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at the return table which will contain the system messages and call the following FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          ID        = LS_MESSAGES-MSGID
          LANG      = '-D'
          NO        = LS_MESSAGES-MSGNR
          V1        = LS_MESSAGES-MSGV1
          V2        = LS_MESSAGES-MSGV2
          V3        = LS_MESSAGES-MSGV3
          V4        = LS_MESSAGES-MSGV4
        IMPORTING
          MSG       = LV_MESSAGE
        EXCEPTIONS
          NOT_FOUND = 1
          OTHERS    = 2.
      IF SY-SUBRC  0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2009 04:27:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-30T04:27:18Z</dc:date>
    <item>
      <title>capture an error while creating a purchase requisition (BAPI_PR_CREATE)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-an-error-while-creating-a-purchase-requisition-bapi-pr-create/m-p/5930054#M1332901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I am using FM BAPI_PR_CREATE to create purchase requesition, Now my problem is that i have various items for single material now i wan to capture the error if any item has ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to do so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ruchi Tiwari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 04:09:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capture-an-error-while-creating-a-purchase-requisition-bapi-pr-create/m-p/5930054#M1332901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T04:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: capture an error while creating a purchase requisition (BAPI_PR_CREATE)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-an-error-while-creating-a-purchase-requisition-bapi-pr-create/m-p/5930055#M1332902</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;Use parameter RETURN in BAPI which Contains all system messages issued during processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you report is running in background then uplad a Error log file in application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;ShreeMohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 04:19:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capture-an-error-while-creating-a-purchase-requisition-bapi-pr-create/m-p/5930055#M1332902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T04:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: capture an error while creating a purchase requisition (BAPI_PR_CREATE)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-an-error-while-creating-a-purchase-requisition-bapi-pr-create/m-p/5930056#M1332903</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;To get the error messages after the BAPI_PR_CREATE is called,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at the return table which will contain the system messages and call the following FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          ID        = LS_MESSAGES-MSGID
          LANG      = '-D'
          NO        = LS_MESSAGES-MSGNR
          V1        = LS_MESSAGES-MSGV1
          V2        = LS_MESSAGES-MSGV2
          V3        = LS_MESSAGES-MSGV3
          V4        = LS_MESSAGES-MSGV4
        IMPORTING
          MSG       = LV_MESSAGE
        EXCEPTIONS
          NOT_FOUND = 1
          OTHERS    = 2.
      IF SY-SUBRC  0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 04:27:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capture-an-error-while-creating-a-purchase-requisition-bapi-pr-create/m-p/5930056#M1332903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T04:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: capture an error while creating a purchase requisition (BAPI_PR_CREATE)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-an-error-while-creating-a-purchase-requisition-bapi-pr-create/m-p/5930057#M1332904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;self solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 04:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capture-an-error-while-creating-a-purchase-requisition-bapi-pr-create/m-p/5930057#M1332904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T04:39:02Z</dc:date>
    </item>
  </channel>
</rss>

