RFC_CALCULATE_TAXES_DOC

RFC_CALCULATE_TAXES_DOC is used to perform tax calculations and pass tax information back to SAP without recording transactions to the Global Tax Determination audit tables. RFC_CALCULATE_TAXES_DOC processes negative amounts, returning (+/-) sign.

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

 

RFC Field GTD 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 Adapter will use matnr instead (if it is not null).
MATNR LnItm.goodSrv Default to the prod_code, but if that is null, the Adapter 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 Adapter will default all of these values to the TXJCD_ST value. However, the ZZTWE values below will take precedence if they are populated.
TXJCD_SF LnItm.shipFrom, LnItm.LOA, LnItm.LOR The Adapter will default all of these values to the TXJCD_SF value. However, the ZZTWE values below 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 overAMOUNT if it is not null.
GROSS_AMOUNT LnItm.grossAmt GROSS_AMOUNT takes precedence overAMOUNT 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.