Skip to Content
0
Former Member
Sep 14, 2006 at 04:18 AM

Making Down Payment Request using BAPI_ACC_DOCUMENT_POST

676 Views

Hi, all...

I faced a problem while I'm testing BAPI_ACC_DOCUMENT_POST to make down payment request(F-47), so I need some help.

I've found a bapiaccdocumentpost-in-down-payment about this topic and followed its parameter settings except for currency settings.

In that posting, the accountpayable-pymt_cur and currencyamount-currency are set different currency.

While I set the two fields with same currency(USD). Belows are my source codes.

DOCUMENTHEADER-OBJ_TYPE = 'IDOC'.

DOCUMENTHEADER-OBJ_KEY = '$'.

DOCUMENTHEADER-OBJ_SYS = 'D10CLNT200'.

DOCUMENTHEADER-BUS_ACT = 'RFBU'.

DOCUMENTHEADER-USERNAME = SY-UNAME.

DOCUMENTHEADER-HEADER_TXT = 'DOWN PAYMENT REQUEST'.

DOCUMENTHEADER-COMP_CODE = '1000'.

DOCUMENTHEADER-DOC_DATE = '2006.09.01'.

DOCUMENTHEADER-PSTNG_DATE = '2006.09.01'.

DOCUMENTHEADER-DOC_TYPE = 'KG'.

ACCOUNTPAYABLE-ITEMNO_ACC = '0000000001'.

ACCOUNTPAYABLE-VENDOR_NO = '0002314908'.

ACCOUNTPAYABLE-GL_ACCOUNT = '0091120100'.

ACCOUNTPAYABLE-COMP_CODE = '1000'.

ACCOUNTPAYABLE-PYMT_METH = 'L'.

ACCOUNTPAYABLE-PMNT_BLOCK = 'A'.

ACCOUNTPAYABLE-BUSINESSPLACE = '1001'.

ACCOUNTPAYABLE-PYMT_CUR = 'USD'.

ACCOUNTPAYABLE-PYMT_AMT = '123,438.0000'.

ACCOUNTPAYABLE-SP_GL_IND = '2'.

ACCOUNTPAYABLE-TAX_CODE = 'RR'.

CURRENCYAMOUNT-ITEMNO_ACC = '0000000001'.

CURRENCYAMOUNT-CURRENCY = 'USD'.

CURRENCYAMOUNT-AMT_DOCCUR = '123,438.0000'.

But the function returns an error:

'Enter a payment currency different to USD'

But if I would set with different currencies, it returns an error:

'Balance in transaction currency'

If the ACCOUNTPAYABLE-PYMT_CUR and ACCOUNTPAYABLE-PYMT_AMT were remained empty, it returns

'Balance in transaction currency'

What should I do about this currency setting.

Someone please let me know about doing this right way.

Thank you.

Message was edited by: Jong-woon Lee