<?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 while using BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651004#M1573128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been searching around here and google, and didn't found a answer for my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Problem is: When I execute the function BAPI_ACC_DOCUMENT_POST, it returns the error: "No currency information transferred into Accounting". Can somebody help me solving this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 5,000 character maximum when posting. Post only the relevant portions of code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Feb 23, 2011 1:58 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Feb 2011 18:51:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-23T18:51:09Z</dc:date>
    <item>
      <title>Error while using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651004#M1573128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been searching around here and google, and didn't found a answer for my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Problem is: When I execute the function BAPI_ACC_DOCUMENT_POST, it returns the error: "No currency information transferred into Accounting". Can somebody help me solving this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 5,000 character maximum when posting. Post only the relevant portions of code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Feb 23, 2011 1:58 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 18:51:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651004#M1573128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-23T18:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651005#M1573129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;Moderator message - Welcome to SCN

Please read [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/Rules&lt;EM&gt;of&lt;/EM&gt;Engagement], &lt;SPAN __jive_macro_name="thread" id="1170968"&gt;&lt;/SPAN&gt; and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 19:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651005#M1573129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-23T19:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651006#M1573130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

MOVE: sy-uname      TO w_doc_header-username,
            w_xbsis-bukrs TO w_doc_header-comp_code,
            sy-datum      TO w_doc_header-doc_date,
            sy-datum      TO w_doc_header-pstng_date,
            sy-datum      TO w_doc_header-trans_date,
            'SA'          TO w_doc_header-doc_type,
            w_xbsis-xblnr TO w_doc_header-ref_doc_no.

      "Use the first line of each document number
      MOVE: '1'                TO w_accgl-itemno_acc,
            p_acc              TO w_accgl-gl_account,
            w_xbsis-gsber      TO w_accgl-bus_area,
            w_xbsis-oid_extbol TO w_accgl-alloc_nmbr,
            w_xbsis-sgtxt      TO w_accgl-item_text,
            w_xbsis-prctr      TO w_accgl-profit_ctr,
            w_xbsis-kostl      TO w_accgl-costcenter,
            '1'                TO w_curamount-itemno_acc,
            w_xbsis-waers      TO w_curamount-currency.
            w_curamount-amt_doccur = ( -1 ) * w_xbsis-wrbtr.

MOVE: l_index               TO w_accounttax-itemno_acc,
                  p_acc                 TO  w_accounttax-gl_account,
                  w_tax_info-ktosl      TO w_accounttax-acct_key,
                  w_tax_info-kschl      TO w_accounttax-cond_key ,
                  w_bseg-mwskz          TO w_accounttax-tax_code,
                  w_tax_info-txjcd      TO w_accounttax-taxjurcode,
                  w_tax_info-txjcd_deep TO w_accounttax-taxjurcode_deep,
                  w_tax_info-txjlv      TO w_accounttax-taxjurcode_level.
                  w_curamount-amt_base  = w_tax_info-KAWRT.

MOVE:  l_index               TO w_accgl-itemno_acc,
                   w_del_data-hkont      TO w_accgl-gl_account,
                   w_xbsis-gsber         TO w_accgl-bus_area,
                   w_xbsis-oid_extbol    TO w_accgl-alloc_nmbr,
                   w_del_data-sgtxt      TO w_accgl-item_text,
                   w_del_data-prctr      TO w_accgl-profit_ctr,
                   w_del_data-kostl      TO w_accgl-costcenter,
                   w_del_data-matnr      TO w_accgl-material,
                   w_del_data-werks      TO w_accgl-plant,
                   l_index               TO w_curamount-itemno_acc,
                   w_xbsis-waers         TO w_curamount-currency,
                   w_del_data-wrbtr      TO w_curamount-amt_doccur.

MOVE: l_index          TO w_accounttax-itemno_acc,
                      p_acc            TO  w_accounttax-gl_account,
                      w_tax_info-ktosl TO w_accounttax-acct_key,
                      w_tax_info-kschl TO w_accounttax-cond_key ,
                      w_bseg-mwskz     TO w_accounttax-tax_code,
                      w_tax_info-txjcd TO w_accounttax-taxjurcode,
                      w_tax_info-txjcd_deep TO w_accounttax-taxjurcode_deep,
                      w_tax_info-txjlv TO w_accounttax-taxjurcode_level.
                      w_curamount-amt_base = w_tax_info-KAWRT.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 19:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651006#M1573130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-23T19:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651007#M1573131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the message number and ID of the error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 19:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651007#M1573131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-23T19:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651008#M1573132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE: E            &lt;/P&gt;&lt;P&gt;ID: RW                  &lt;/P&gt;&lt;P&gt;NUMBER: 003        &lt;/P&gt;&lt;P&gt;MESSAGE: No currency information transferred into Accounting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 19:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651008#M1573132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-23T19:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651009#M1573133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't look as if you are passing a table to the table parameter CURRENCYAMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 20:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651009#M1573133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-23T20:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651010#M1573134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;Yes, I'm using a table on this parameters.&lt;/P&gt;&lt;P&gt;This is the other part of my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

loop...

APPEND: w_accgl TO it_accgl,
               w_curamount TO it_curamount,
               w_accounttax TO it_accounttax.
endloop.

CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
          EXPORTING
            documentheader = w_doc_header
          TABLES
            accountgl      = it_accgl
            currencyamount = it_curamount
            accounttax     = it_accounttax
            return         = it_return.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 11:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651010#M1573134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-24T11:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651011#M1573135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried BAPI_ACC_DOCUMENT_CHECK before posting? It may give you more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 11:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651011#M1573135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-24T11:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651012#M1573136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Rob mentioned it is the problem related to parameter CURRENCYAMOUNT.  See line number 2151 to 2199 of include LACC9F20. You can find the reason for this error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 12:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651012#M1573136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-24T12:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651013#M1573137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using the field CURRENCY of structure CURRENCYAMOUNT (BAPIACCR09)? If you are using a valid currency code in this field, for each record, the error should not occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, BAPI_ACC_DOCUMENT_CHECK gives the same errors (messages in general) as BAPI_ACC_DOCUMENT_POST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Mário Espinheira&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 17:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651013#M1573137</guid>
      <dc:creator>mrio_espinheira</dc:creator>
      <dc:date>2011-02-24T17:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651014#M1573138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I'm passing the correct values from my itab currency field to the currency structure on BAPI.&lt;/P&gt;&lt;P&gt;I noticed that the include LACC9F20 deletes all data from the currency table, and it doesn't populate the main currency table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 18:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651014#M1573138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-24T18:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651015#M1573139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I'm passing the correct values from my itab currency field to the currency structure on BAPI.&lt;/P&gt;&lt;P&gt;I noticed that the include LACC9F20 deletes all data from the currency table, and it doesn't populate the main currency table.&lt;/P&gt;&lt;P&gt;Becouse of that, it gives me the message with error 003. Anyone knows why, and how can I solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 18:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651015#M1573139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-24T18:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651016#M1573140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nicolas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code looks reasonable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check in debug mode the consistency of &lt;STRONG&gt;all&lt;/STRONG&gt; records of the tables passed to the bapi?&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>Thu, 24 Feb 2011 20:30:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651016#M1573140</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-02-24T20:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651017#M1573141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are passing multiple currencies to a single line item ,then pass currency type field (CURR_TYPE) also to BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Vishnu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 22:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651017#M1573141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-24T22:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651018#M1573142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the document type from SA to IF and it solved my calculation tax problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 18:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-acc-document-post/m-p/7651018#M1573142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-28T18:33:38Z</dc:date>
    </item>
  </channel>
</rss>

