Tax Determination

RFC_CALCULATE_TAXES_DOC

This call is used to perform tax calculations and pass tax information back to SAP without recording transactions in the Tax Determination audit tables.

RFC_CALCULATE_TAXES_DOC processes negative amounts, returning a (+) or (-) sign.

The following table lists the mappings of SAP fields to Tax Determination table fields in RFC_CALCULATE_TAXES_DOC:

RFC Field Tax Determination Request Field Notes
ITEM_PO LnItm.lnItmId
POS_NO LnItm.LnItmNm
GROUP_ID N/A
COUNTRY N/A
DIVISION N/A
PROD_CODE Default to the prod_code, but if that is null, the connector will use matnr instead (if it is not null).
MATNR LnItm.goodSrv Default to the prod_code, but if that is null, the connector will use matnr instead (if it is not null).
GROUP_PROD_CODE N/A
QUANTITY LnItm.qnty
UNIT LnItm.qntyUMCd
APAR_IND LnItm.trnTp APAR_IND: 'V' = AP ; 'A' = ARIf APAR_IND is AR, then trnTp is set to "SALE". If APAR_IND is AP, then trnTp is set to "PURCHASE". If TAX_TYPE is 3, then APAR_IND is either: RENTAL_NO_OPTION_OWN_AR or RENTAL_NO_OPTION_OWN_AP.
TAX_TYPE LnItm.trnTp
EXEMP_IND N/A
TAX_DATE Doc.docDt
TXJCD_ST LnItm.shipTo, LnItm,billTo, LnItm.LSP, LnItm.LU

The connector will default all of these values to the TXJCD_ST value.

However, the ZZTWE values will take precedence if they are populated.

TXJCD_SF LnItm.shipFrom, LnItm.LOA, LnItm.LOR

The connector will default all of these values to the TXJCD_SF value.

However, the ZZTWE values will take precedence if they are populated.

TXJCD_POA LnItm.LOA Takes precedence over TXJCD_SF.
TXJCD_POO LnItm.LOR Takes precedence over TXJCD_SF.
AMOUNT LnItm.grossAmt GROSS_AMOUNT takes precedence over AMOUNT if it is not null.
GROSS_AMOUNT LnItm.grossAmt GROSS_AMOUNT takes precedence over AMOUNT if it is not null.
FREIGHT_AM LnItm.grossAmt If FREIGHT_AM is not null, GROSS_AMOUNT or AMOUNT will be modified.
EXEMPT_AMT N/A
ACCNT_NO LnItm.custrVend
ACCNT_CLS N/A
COST_OBJECT LnItm.specRulesCd s
PTP_IND LnItm.mtDlvrCd
EXCERTIF N/A
EXREASON N/A
USER_DATA N/A
ENTITY_USE LnItm.myEntUseCd
LOC_CODE LnItm.shipFrom Takes precedence over TXJCD_SF.
TXJCD_LSP LnItm.LSP Takes precedence over TXJCD_ST.