Skip to Content
0
Former Member
Dec 15, 2011 at 12:57 PM

BAPI_ACC_DOCUMENT_POST not calculating TAX

1473 Views

Hi,

I am using BAPI_ACC_DOCUMENT_POST for posting the FI document for RC type. I tried posting it normally and it posted correctly. But when i give some ACCOUNT TAX information, it is not calculating.

Here is how I am filling the details.

Header:

BUS_ACT = RFBU.

USERNAME = SY_UNAME.

HEADER_TEXT = TEXT.

COMP_CODE = BUKRS.

DOC_DATE = 12/12/2011

PSTNG_DATE = 12/05/2011.

FIS_PERIOD = 00

REF_DOC_NO = 9700000036.

AC_DOC_NO = 9700000036.

Account GL Table:.

ITEMNO_ACC = 10.

GL_ACCOUNT = 412010.

DOC_TYPE = RC.

COMP_CODE = RECN.

FIS_PERIOD = 00.

PSTNG_DATE = 12/05/2011

TAX_CODE = TN

TAXJURCODE = TN3707600

COST CENTER = 107

Account Receivable:

ITEMNO_ACC = 20.

CUSTOMER = 1126045

COMP_CODE = RECN

BLINE_DATE = 12/12/2011.

PYMT_METH = B

CURRENCY AMOUNT : 2 LINE ITEMS

1ST LINE ITEM

ITEMNO_ACC = 10

CURRENCY = USD

AMT_DOCCUR = 500.00-

DISC_BASE = 500.00-.

2ND LINE ITEM

ITEMNO_ACC = 20

CURRENCY = USD

AMT_DOCCUR = 500.00

AMT_BASE = 500.00.

I did not enter the account tax table as I am not sure how to enter the date. But I know that the tax rate is 9.25% and for 500 the tax would be 42.33. I need to make sure that the BAPI posts the document as it posts from FB01 when we check the check box 'calculate tax'. Right now, with these details it is posting the data but not calculating the tax.

Please help.

Regards

Guru

Edited by: GuruCharan on Dec 15, 2011 6:28 PM