<?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 message in BAPI_ACC_DOCUMENT_CHECK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-bapi-acc-document-check/m-p/4512966#M1067199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im having an error while exceuting the BAPI BAPI_ACC_DOCUMENT_CHECK , 'FI/CO interface: Currency item entered several times'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; clear l_amount.&lt;/P&gt;&lt;P&gt;  l_wrbtr = gw_accpostline-wrbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gw_currency_amount-itemno_acc = l_itemno.&lt;/P&gt;&lt;P&gt;  gw_currency_amount-currency = gw_accpost-waers.&lt;/P&gt;&lt;P&gt;  IF gw_accpostline-newbs = '40' OR gw_accpostline-newbs = '21' OR gw_accpostline-newbs = '29'.&lt;/P&gt;&lt;P&gt;    MOVE gw_accpostline-wrbtr TO l_amount.&lt;/P&gt;&lt;P&gt;    CONCATENATE '-' l_amount INTO l_amount.&lt;/P&gt;&lt;P&gt;    MOVE l_amount TO gw_currency_amount-amt_doccur.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF gw_accpostline-newbs = '31' OR gw_accpostline-newbs = '39' OR gw_accpostline-newbs = '50'.&lt;/P&gt;&lt;P&gt;*calculate the sum of the credit&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    gw_currency_amount-amt_doccur = gw_accpostline-wrbtr.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND gw_currency_amount TO gi_currency_amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF gw_accpostline-dmbtr IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;   gw_currency_amount-itemno_acc = l_itemno.&lt;/P&gt;&lt;P&gt;   gw_currency_amount-CURR_TYPE = '10'.&lt;/P&gt;&lt;P&gt;  gw_currency_amount-currency = gw_accpost-waers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF gw_accpostline-newbs = '40' OR gw_accpostline-newbs = '21' OR gw_accpostline-newbs = '29'.&lt;/P&gt;&lt;P&gt;    MOVE gw_accpostline-dmbtr TO l_amount.&lt;/P&gt;&lt;P&gt;    CONCATENATE '-' l_amount INTO l_amount.&lt;/P&gt;&lt;P&gt;    MOVE l_amount TO gw_currency_amount-amt_doccur.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF gw_accpostline-newbs = '31' OR gw_accpostline-newbs = '39' OR gw_accpostline-newbs = '50'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    gw_currency_amount-amt_doccur = gw_accpostline-dmbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND gw_currency_amount TO gi_currency_amount.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2008 13:59:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-07T13:59:36Z</dc:date>
    <item>
      <title>error message in BAPI_ACC_DOCUMENT_CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-bapi-acc-document-check/m-p/4512966#M1067199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im having an error while exceuting the BAPI BAPI_ACC_DOCUMENT_CHECK , 'FI/CO interface: Currency item entered several times'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; clear l_amount.&lt;/P&gt;&lt;P&gt;  l_wrbtr = gw_accpostline-wrbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gw_currency_amount-itemno_acc = l_itemno.&lt;/P&gt;&lt;P&gt;  gw_currency_amount-currency = gw_accpost-waers.&lt;/P&gt;&lt;P&gt;  IF gw_accpostline-newbs = '40' OR gw_accpostline-newbs = '21' OR gw_accpostline-newbs = '29'.&lt;/P&gt;&lt;P&gt;    MOVE gw_accpostline-wrbtr TO l_amount.&lt;/P&gt;&lt;P&gt;    CONCATENATE '-' l_amount INTO l_amount.&lt;/P&gt;&lt;P&gt;    MOVE l_amount TO gw_currency_amount-amt_doccur.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF gw_accpostline-newbs = '31' OR gw_accpostline-newbs = '39' OR gw_accpostline-newbs = '50'.&lt;/P&gt;&lt;P&gt;*calculate the sum of the credit&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    gw_currency_amount-amt_doccur = gw_accpostline-wrbtr.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND gw_currency_amount TO gi_currency_amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF gw_accpostline-dmbtr IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;   gw_currency_amount-itemno_acc = l_itemno.&lt;/P&gt;&lt;P&gt;   gw_currency_amount-CURR_TYPE = '10'.&lt;/P&gt;&lt;P&gt;  gw_currency_amount-currency = gw_accpost-waers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF gw_accpostline-newbs = '40' OR gw_accpostline-newbs = '21' OR gw_accpostline-newbs = '29'.&lt;/P&gt;&lt;P&gt;    MOVE gw_accpostline-dmbtr TO l_amount.&lt;/P&gt;&lt;P&gt;    CONCATENATE '-' l_amount INTO l_amount.&lt;/P&gt;&lt;P&gt;    MOVE l_amount TO gw_currency_amount-amt_doccur.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF gw_accpostline-newbs = '31' OR gw_accpostline-newbs = '39' OR gw_accpostline-newbs = '50'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    gw_currency_amount-amt_doccur = gw_accpostline-dmbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND gw_currency_amount TO gi_currency_amount.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 13:59:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-bapi-acc-document-check/m-p/4512966#M1067199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T13:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: error message in BAPI_ACC_DOCUMENT_CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-bapi-acc-document-check/m-p/4512967#M1067200</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;U're transfering the amount in document currency twice, the currency type 10 means internal currency, so the currency of company code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR l_amount.
l_wrbtr = gw_accpostline-wrbtr.

gw_currency_amount-CURR_TYPE  = '00'. "&amp;lt;----- Document currency
gw_currency_amount-itemno_acc = l_itemno.
gw_currency_amount-CURRENCY   = gw_accpost-waers.

MOVE gw_accpostline-wrbtr to gw_currency_amount-amt_doccur.

IF gw_accpostline-newbs = '40' OR gw_accpostline-newbs = '21' OR gw_accpostline-newbs = '29'.
  gw_currency_amount-amt_doccur = - gw_currency_amount-amt_doccur.
ENDIF.

APPEND gw_currency_amount TO gi_currency_amount.

IF not gw_accpostline-dmbtr IS INITIAL.
  gw_currency_amount-itemno_acc = l_itemno.
  gw_currency_amount-CURR_TYPE = '10'.
*  gw_currency_amount-CURRENCY = gw_accpost-waers. &amp;lt;----- Company currency
  gw_currency_amount-CURRENCY = t001-waers. "&amp;lt;----------- Company currency
  MOVE gw_accpostline-dmbtr TO gw_currency_amount-amt_doccur.

  IF gw_accpostline-newbs = '40' OR gw_accpostline-newbs = '21' OR gw_accpostline-newbs = '29'.
    gw_currency_amount-amt_doccur = - gw_currency_amount-amt_doccur.
  ENDIF.
  APPEND gw_currency_amount TO gi_currency_amount.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 14:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-bapi-acc-document-check/m-p/4512967#M1067200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T14:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: error message in BAPI_ACC_DOCUMENT_CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-bapi-acc-document-check/m-p/4512968#M1067201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot, its working now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 07:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-bapi-acc-document-check/m-p/4512968#M1067201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T07:28:31Z</dc:date>
    </item>
  </channel>
</rss>

