Skip to Content
author's profile photo Former Member
Former Member

Enter a different payment currency, BAPI_ACC_DOCUMENT_POST

I want to create an AR invoice. I got the error message ID F5 Number 873: Enter a payment currency different to SGD. Why do I have to change the payment currency ?

data:

docHeader TYPE BAPIACHE09,

currAmt_itab TYPE STANDARD TABLE OF BAPIACCR09,

wa_currAmt_itab TYPE BAPIACCR09,

AR_itab TYPE STANDARD TABLE OF BAPIACAR09,

wa_AR_itab TYPE BAPIACAR09,

GL_itab TYPE STANDARD TABLE OF BAPIACGL09,

wa_GL_itab TYPE BAPIACGL09,

returnPara_itab TYPE STANDARD TABLE OF BAPIRET2.

refresh:

currAmt_itab,

AR_itab,

GL_itab.

clear :

wa_currAmt_itab,

wa_AR_itab,

wa_currAmt_itab.

move:

'S001' to docHeader-comp_code,

'20081129' to docHeader-DOC_DATE,

'20081129' to docHeader-pstng_date,

'DR' to docHeader-doc_type,

'ac_dev29' to docHeader-USERNAME,

'1' to wa_GL_itab-itemno_acc, "to currAmt

'0000477000' to wa_GL_itab-gl_account,

'P3' to wa_GL_itab-tax_code,

'2' to wa_AR_itab-itemno_acc,

'0000000065' to wa_AR_itab-customer,

'SGD' to wa_AR_itab-pymt_cur, "to currAmt

'100' to wa_AR_itab-pymt_amt.

APPEND:

wa_GL_itab to GL_itab,

wa_AR_itab to AR_itab.

MOVE:

'1' to wa_currAmt_itab-itemno_acc,

'SGD' to wa_currAmt_itab-currency,

'100' to wa_currAmt_itab-amt_doccur.

append wa_currAmt_itab to currAmt_itab.

clear wa_currAmt_itab.

move: '2' to wa_currAmt_itab-itemno_acc,

'SGD' to wa_currAmt_itab-currency,

'100' to wa_currAmt_itab-amt_doccur.

append wa_currAmt_itab to currAmt_itab.

CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'

EXPORTING

DOCUMENTHEADER = docHeader

  • CUSTOMERCPD =

  • CONTRACTHEADER =

  • IMPORTING

  • OBJ_TYPE =

  • OBJ_KEY =

  • OBJ_SYS =

TABLES

ACCOUNTGL = GL_itab

ACCOUNTRECEIVABLE = AR_itab

  • ACCOUNTPAYABLE =

  • ACCOUNTTAX =

CURRENCYAMOUNT = currAmt_itab

  • CRITERIA =

  • VALUEFIELD =

  • EXTENSION1 =

RETURN = returnPara_itab

  • PAYMENTCARD =

  • CONTRACTITEM =

  • EXTENSION2 =

  • REALESTATE =

  • ACCOUNTWT =

.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  • EXPORTING

  • WAIT =

  • IMPORTING

  • RETURN =

.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2008 at 04:17 PM

    Hi,

    Can you check the currency for the customer 65 in the master data transaction. It might be having a different currency from SGD.

    Hope this clarifies your question.

    Regards,

    Hari

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 05, 2009 at 11:25 AM

    Hi heloOO,

    Even i am getting the same error, can you help me in case your error was solved.

    thanks in advance.

    Regards

    gowri

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2016 at 03:16 PM

    Same here. Let us know if you solved

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.