<?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 Error handling in BAPI  BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bapi-bapi-acc-document-post/m-p/1807382#M346463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this BAPI to post accounting docs. I want to catch all errors the first time ie. if within a single doc the GL line item has incorrect GL a/c and AP line item has incorrect vendor no., the return table should fill both these errors with appropriate texts &amp;amp; values. At the moment I can get this BAPI only to fill one error at a time ie. in above scenario it will only report the incorrect GL a/c the first time....when this is corrected it will then report incorrect vendor a/c and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to get this BAPI to report all errors in the document that its trying to post the first time its called?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Dec 2006 05:41:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-14T05:41:09Z</dc:date>
    <item>
      <title>Error handling in BAPI  BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bapi-bapi-acc-document-post/m-p/1807382#M346463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this BAPI to post accounting docs. I want to catch all errors the first time ie. if within a single doc the GL line item has incorrect GL a/c and AP line item has incorrect vendor no., the return table should fill both these errors with appropriate texts &amp;amp; values. At the moment I can get this BAPI only to fill one error at a time ie. in above scenario it will only report the incorrect GL a/c the first time....when this is corrected it will then report incorrect vendor a/c and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to get this BAPI to report all errors in the document that its trying to post the first time its called?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 05:41:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bapi-bapi-acc-document-post/m-p/1807382#M346463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T05:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in BAPI  BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bapi-bapi-acc-document-post/m-p/1807383#M346464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bondi,&lt;/P&gt;&lt;P&gt;              &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Please check this program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZASSET_CREATE&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zasset_create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   input parameters to the bapi&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    input_key       LIKE  bapi1022_key,&lt;/P&gt;&lt;P&gt;    gen_data        LIKE  bapi1022_feglg001,&lt;/P&gt;&lt;P&gt;    gen_datax       LIKE  bapi1022_feglg001x,&lt;/P&gt;&lt;P&gt;    posting_info    LIKE  bapi1022_feglg002,&lt;/P&gt;&lt;P&gt;    posting_infox   LIKE  bapi1022_feglg002x,&lt;/P&gt;&lt;P&gt;    posting_data    LIKE  bapifapo_gen_info,&lt;/P&gt;&lt;P&gt;    acquis_data     LIKE  bapifapo_acq,&lt;/P&gt;&lt;P&gt;    time_dep_data   LIKE  bapi1022_feglg003,&lt;/P&gt;&lt;P&gt;    time_dep_datax  LIKE  bapi1022_feglg003x,&lt;/P&gt;&lt;P&gt;    real_estate     LIKE  bapi1022_feglg007,&lt;/P&gt;&lt;P&gt;    real_estatex    LIKE  bapi1022_feglg007x,&lt;/P&gt;&lt;P&gt;    allocations     LIKE  bapi1022_feglg004,&lt;/P&gt;&lt;P&gt;    allocationsx    LIKE bapi1022_feglg004x,&lt;/P&gt;&lt;P&gt;    extensionin     TYPE TABLE OF bapiparex,&lt;/P&gt;&lt;P&gt;    origindata      LIKE bapi1022_feglg009,&lt;/P&gt;&lt;P&gt;    origindatax     LIKE bapi1022_feglg009x,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_depreciationareas TYPE TABLE OF bapi1022_dep_areas,&lt;/P&gt;&lt;P&gt;wa_depreciationareas TYPE bapi1022_dep_areas,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                 occurs 0 with header line,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;it_depreciationareasx TYPE TABLE OF bapi1022_dep_areasx,&lt;/P&gt;&lt;P&gt;wa_depreciationareasx TYPE bapi1022_dep_areasx,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                 occurs 0 with header line,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;it_investment_support TYPE TABLE OF bapi1022_inv_support,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                 occurs 0 with header line,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;output parameters from the bapi&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    asset_number    LIKE bapi1022_1-assetmaino,&lt;/P&gt;&lt;P&gt;    sub_number      LIKE bapi1022_1-assetsubno,&lt;/P&gt;&lt;P&gt;    out_return      LIKE bapiret2,&lt;/P&gt;&lt;P&gt;    out_return2     LIKE bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input_key-companycode = 'CAT1'.&lt;/P&gt;&lt;P&gt;gen_data-assetclass   = '00003000'.&lt;/P&gt;&lt;P&gt;gen_datax-assetclass = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gen_data-descript = 'Testing BAPI'.&lt;/P&gt;&lt;P&gt;gen_datax-descript   = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gen_data-serial_no    = '1111'.&lt;/P&gt;&lt;P&gt;gen_datax-serial_no  = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gen_data-base_uom     = 'KG'.&lt;/P&gt;&lt;P&gt;gen_datax-base_uom   = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Append the Depreciation keY VALUE EQUAL TO LINA to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_depreciationareas-area = '01'.&lt;/P&gt;&lt;P&gt;wa_depreciationareas-descript = 'Book deprec.'.&lt;/P&gt;&lt;P&gt;wa_depreciationareas-dep_key = 'LINA'.&lt;/P&gt;&lt;P&gt;wa_depreciationareas-ulife_yrs = '2'.&lt;/P&gt;&lt;P&gt;wa_depreciationareas-ulife_prds = '3'.&lt;/P&gt;&lt;P&gt;wa_depreciationareas-exp_ulife_yrs = '5'.&lt;/P&gt;&lt;P&gt;wa_depreciationareas-exp_ulife_prds = '3'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-EXP_ULIFE_SDEP_YRS&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-EXP_ULIFE_SDEP_PRDS&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-ORIG_ULIFE_YRS&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-ORIG_ULIFE_PRDS&lt;/P&gt;&lt;P&gt;wa_depreciationareas-change_yr = '3'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-dep_units = '3'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-odep_start_date = '01012005'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-sdep_start_date = '01012005'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-INTEREST_START_DATE&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-READINESS&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-INDEX&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;wa_depreciationareas-AGE_INDEX&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;wa_depreciationareas-var_dep_portion = '200'.&lt;/P&gt;&lt;P&gt;wa_depreciationareas-scrapvalue = '20'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-currency = 'USD'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-currency_iso = 'USD'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-NEG_VALUES&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-GRP_ASSET&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-GRP_ASSET_SUBNO&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-ACQ_YR&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-ACQ_PRD&lt;/P&gt;&lt;P&gt;*wa_depreciationareas-SCRAPVALUE_PRCTG&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_depreciationareas TO it_depreciationareas.&lt;/P&gt;&lt;P&gt;CLEAR: wa_depreciationareas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_depreciationareasx-area = '01'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-DESCRIPT = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-DEACTIVATE = 'X'.&lt;/P&gt;&lt;P&gt;wa_depreciationareasx-dep_key = 'X'.&lt;/P&gt;&lt;P&gt;wa_depreciationareasx-ulife_yrs  = 'X'.&lt;/P&gt;&lt;P&gt;wa_depreciationareasx-ulife_prds = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-EXP_ULIFE_YRS = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-EXP_ULIFE_PRDS = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-EXP_ULIFE_SDEP_YRS = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-EXP_ULIFE_SDEP_PRDS = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-ORIG_ULIFE_YRS = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-ORIG_ULIFE_PRDS = 'X'.&lt;/P&gt;&lt;P&gt;wa_depreciationareasx-change_yr = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasx-dep_units = 'X'.&lt;/P&gt;&lt;P&gt;wa_depreciationareasx-odep_start_date = 'X'.&lt;/P&gt;&lt;P&gt;wa_depreciationareasx-sdep_start_date = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-INTEREST_START_DATE = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-READINESS = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-INDEX = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-AGE_INDEX = 'X'.&lt;/P&gt;&lt;P&gt;wa_depreciationareasx-var_dep_portion = 'X'.&lt;/P&gt;&lt;P&gt;wa_depreciationareasx-scrapvalue = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasx-currency = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasx-currency_iso = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-NEG_VALUES = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-GRP_ASSET = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-GRP_ASSET_SUBNO = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-ACQ_YR = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-ACQ_PRD = 'X'.&lt;/P&gt;&lt;P&gt;*wa_depreciationareasX-SCRAPVALUE_PRCTG = 'X'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;APPEND wa_depreciationareasx TO it_depreciationareasx.&lt;/P&gt;&lt;P&gt;CLEAR wa_depreciationareasx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Append the Depreciation keY VALUE EQUAL TO LINb to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;break mukherar.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_FIXEDASSET_CREATE1'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    key                        = input_key&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REFERENCE                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CREATESUBNUMBER            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POSTCAP                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CREATEGROUPASSET           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TESTRUN                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   generaldata                = gen_data&lt;/P&gt;&lt;P&gt;   generaldatax               = gen_datax&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVENTORY                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVENTORYX                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POSTINGINFORMATION         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POSTINGINFORMATIONX        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TIMEDEPENDENTDATA          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TIMEDEPENDENTDATAX         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ALLOCATIONS                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ALLOCATIONSX               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORIGIN                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORIGINX                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVESTACCTASSIGNMNT        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVESTACCTASSIGNMNTX       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NETWORTHVALUATION          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NETWORTHVALUATIONX         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REALESTATE                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REALESTATEX                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INSURANCE                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INSURANCEX                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LEASING                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LEASINGX                   =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  COMPANYCODE                = company_code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   asset                      = asset_number&lt;/P&gt;&lt;P&gt;   subnumber                  = sub_number&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ASSETCREATED               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   return                     = out_return&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;   depreciationareas          = it_depreciationareas&lt;/P&gt;&lt;P&gt;   depreciationareasx         = it_depreciationareasx.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVESTMENT_SUPPORT         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTENSIONIN                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            WAIT          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            RETURN        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / 'Asset Number:',asset_number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please allocate the points to me.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 07:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bapi-bapi-acc-document-post/m-p/1807383#M346464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T07:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in BAPI  BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bapi-bapi-acc-document-post/m-p/1807384#M346465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you even read his question!??!!! What on earth Asset creation has to do with this issue?? &amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Please read before posting.&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bondi beach,&lt;/P&gt;&lt;P&gt;no, this is not possible with this BAPI till ECC6. It will produce one error at a time (unfortunately) and fill return table accordingly. It looks at the accounting document as a whole.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 10:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bapi-bapi-acc-document-post/m-p/1807384#M346465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T10:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in BAPI  BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bapi-bapi-acc-document-post/m-p/1807385#M346466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, anyone else got any comments/suggestions about this 'problem'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 22:24:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bapi-bapi-acc-document-post/m-p/1807385#M346466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T22:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in BAPI  BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bapi-bapi-acc-document-post/m-p/1807386#M346467</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;the BAPI processed until error occurs and then stops processing because it makes no sense to continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want those erros to be reported, the only way will be to do the necessary analysis in the program bfore the BAPI is called. Then you are free to report alll errors found and if there is none you can still call the BAPI to find the next one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 00:03:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bapi-bapi-acc-document-post/m-p/1807386#M346467</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-12-15T00:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in BAPI  BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bapi-bapi-acc-document-post/m-p/1807387#M346468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bondi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;quick one before the cricket starts this arv, I have used this BAPI but analysed the most common errors and looped through BAPI_ACC_DOCUMENT_CHECK until correct or corrected.  This was possible as I was using workflow for the update so I called a BO method to run BAPI_ACC_DOCUMENT_CHECK, and if any problems send to FI user, and if no errors then post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bit long winded but it has worked.  You could take a similar approach by throwing the check BAPI in a do loop, moving your data to temp itabs, and model changes to the data in the temp itabs each loop while keeping the messages to return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have fun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 00:22:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bapi-bapi-acc-document-post/m-p/1807387#M346468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T00:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in BAPI  BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bapi-bapi-acc-document-post/m-p/1807388#M346469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gareth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for that. But the problem with this is how do I know which error is for the header and which ones for the line items? Also, this BAPI does not return the line number (row no.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 02:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bapi-bapi-acc-document-post/m-p/1807388#M346469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T02:21:34Z</dc:date>
    </item>
  </channel>
</rss>

