This website is not affiliated with, sponsored by, or approved by SAP AG.

BAPI_ACC_DOCUMENT_CHECK error F5 873

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

BAPI_ACC_DOCUMENT_CHECK error F5 873

Postby rdrury » Tue Sep 23, 2014 10:54 am

I'm getting the error F5 873 "Enter a payment currency different to USD" when I call BAPI_ACC_DOCUMENT_CHECK.

I do fill the currency table with the USD currency:
Code: Select all
          t_curramt-itemno_acc  = t_index.
          t_curramt-currency    = t_curramt-currency_iso = header-waers.
          t_curramt-amt_doccur  = t_accntpay-pymt_amt.
          APPEND t_curramt.
As well as the GL table and the AP table.
Code: Select all
      CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
        EXPORTING
          documentheader = t_dochdr
        TABLES
          accountgl      = t_accntgl
          accountpayable = t_accntpay
          currencyamount = t_curramt
          return         = t_return.
Any ideas?
rdrury
 
Posts: 17
Joined: Tue Apr 28, 2009 9:31 am

Re: BAPI_ACC_DOCUMENT_CHECK error F5 873

Postby Gothmog » Wed Sep 24, 2014 4:24 am

Well, the message does say it wants a different payment currency than the document currency.
As for the functional reason for this, I can't tell.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1941
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home


Return to ABAP

Who is online

Users browsing this forum: No registered users and 7 guests



cron


loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.