ARApplyReceipttoInvoice

F03B14 Apply Receipt to Invoice

Major Business Rule

Object Name: B03B0012

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose

Apply Receipt to Invoice Function handles the creating or updating for the application of payment 

amount, discount, adjustments, chargeback, or deduction to the open amount of a invoice. It will also 

handle the creating and updating for standalone transaction.


This function can perform the following receipt transactions:

10 Simple Invoice Match

11 Match with Auto Chargeback of the Discount

15 Match with Auto Write-Off

16 Match with Auto Chargeback

17 Match with Auto Deduction

25 Standalone Write-Off

26 Standalone Chargeback

27 Standalone Deductions


If any of the above operations leaves an amount open on the invoice and the transaction does not have 

a adjusting amount entered by the user. The function will check the open amount to the user defined 

automatic write-off limits. If the open amount is less then the automatic write-off limits the function 

will perform an automatic write-off to close the invoice.


When operating in a multi-currency environment, and a receipt is captured in foreign mode, this 

function will determine if a currency gain or loss has occurred. Function will also check if receipt is in 

a alternate currency and dermine any alternate gain or loss.


This function will update the following tables:


Customer Ledger (F03B11) Table 

The open amount  will be updated with the applied amount plus write-off plus discount taken plus 
chargeback amount plus deduction amount for the requested invoice.  Any discount will also be recorded 

in the discount taken column on the invoice. Function will also write any RU- Unapplied Cash, 

RB-Chargeback or R5-Deduction Invoices that the transaction creates.


Receipt Header (F03B13) Table

The unapplied amount on the receipt header will be reduced by the Transaction Payment Amount 
entered.


Receipt Detail (F03B14) Table

The receipt transaction will be recorded in this table, along with any currency and alternate 
currency gains or losses.


This function will also allow changes to any receipt transactions it created. When changing an amount 

on a transaction, this function expects only the net change amount be passed into it, not the entire 

new amount. This is true for all amounts such as payment amount, discount taken, chargeback, and 

deduction in both foreign and domestic currencies. 


Setup Notes and Prerequisites

None.


Special Logic

None.


Technical Specification


Parameters

ItemDescriptionI/OReq?Notes
ACTNcAddOrUpdateFlagIY'A' to add record. 'U' to update a record.

PYIDmnPaymentidIYPayment ID of Receipt Header.

RC5mnFilelineidentifier50IYLine Number of the transaction with in a Payment ID 

group. Required for Updates. Must zero on Adds.

KCOszCompanykeyIYDocument Key Company of Invoice being applied. 

Required if transaction is a Invoice match.

DOCmnDocvoucherinvoiceeIYDocument Number of Invoice being applied. Required if 

transaction is a Invoice match.

DCTszDocumenttypeIYDocument Type of Invoice being applied. Required if 

transaction is a Invoice match.

SFXszDocumentpayitemIYPay Item of Invoice being applied. Required if 

transaction is a Invoice match.

ICUTszBatchtypeIYBatch Type for the batch. This is the ICUT in F03B14.

ICUmnBatchnumberIYBatch Number for the batch. This is the ICU in 

F03B14.

DICJjdDatebatchjulianIYBatch Date of Transaction. This is the DICJ in 

F03B14.

FAPmnForeignAmountAppliedIYAmount in foreign currency to be applied to the 

Invoice. Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function 

will calculate the foreign amount and pass it back to the calling function

CDSAmnForeigndiscounttakenIYDiscount amount in foreign currency to be applied to 

the Invoice. Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The 

function will calculate the foreign amount and pass it back to the calling function.


RSCOszReasoncodeINReason code for the writeoff. Required if write-off 

amount is not zero.

TYINcCashreceipttrancodeIYReceipt Type code (10,11,15,16,17,25,26 or 27).

RMKszNameremarkINRemark.

MCU2szCostcenter2INBusiness Unit 2.

AAmnMaxAutoDRWriteOffAmtIYMax amount that can be automatically written  off. 

Debit amount.

ARszAutoDRWriteOffReasonCodeIYReason code to be used for a automatic write off. 

Debit amount.

AAmnMaxAutoCRWriteOffAmtIYMax amount that can be automatically written  off. 

Credit amount must be passed in with - sign.

ARszAutoCRWriteOffReasonCodeIYReason code to be used for a automatic write off. 

Credit amount.

EV01cAllowPayHeldInvIYEnter a 1 to not allow payment of invoices at status 

not equal to "A".

CRCDszReceiptBaseCurrencycodeIYBase currency of the receipt.

EV02cErrorFlagO '1' if errors were found.

AAPmnDomAmountAppliedIYAmount in domestic currency to be applied to Invoice. 

Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will 

calculate the domestic amount and pass it back to the calling function

ADSAmnDomDiscTakenIYDiscount Amount in domestic currency to be applied to 

Invoice. Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The 

function will calculate the domestic amount and pass it back to the calling function

PSTcDDDefaultPaystscodeIYDefault pay status to use on on invoice if not closed 

Open amount NEQ Zero.

EV01cSkipAutoWriteOffINSet to '1' to bypass automatic write-off processing.

AAmnMaxManDRWriteOffAmtIYMax amount that can be manually written off. Debit 

amount.

AAmnMaxManCRwriteOffAmtIYMax amount that can be manually written  off. Credit 

amount must be passed in with - sign.

DGJjdGLDateIYG/L date of the transaction.

ARszAdjustmentReasonCodeIYReason code to be used for the manual write off. 

Required if there is a adjustment amount.

PIDszProgramidINProgram ID to update transaction audit infor. If not 

passed, business function source name will be used.

AAmnChargebackDomesticAmtIYChargeback Amount in domestic currency to be applied 

to Invoice. Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The 

function will calculate the domestic amount and pass it back to the calling function

AAmnChargebackForeignAmtIYChargeback Amount in foreign currency to be applied 

to Invoice. Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The 

function will calculate the foreign amount and pass it back to the calling function

RMKszChargebackRemarkINRemark to output to chargeback. Required for 

Chargeback transactions only.

CRCDszChargebackCcyINCurrency code of the Chargeback transaction. Required 

for Chargeback transactions only.

CRRmnChargebackExchRateINExchange rate. Required for Chargeback transactions 

only.

COszChargebackCoINCompany number to use in creation of RB-chargeback or 

R5- deduction invoices. Also used for account number of the writeoffs. Required for writeoff, 

chargeback and deduction transactions only.

GLCszChargebackGLOffsetING/L Offset for Chargeback. Used in creation of RB- 

chargeback invoices. Required for Chargeback transactions only.

MCUszChargebackMCUINBusiness Unit. Used in creation of RB- chargeback 

invoices. Required for Chargeback transactions only.

PSTcChargebackDefaultPaystsINDefault Pay Status for the Chargeback. Used in 

creation of RB- chargeback invoices. If BLANK Data Dictionary will default.

AAAJmnDomAmountAdjustmentsIYDomestic write-off amount. Can be left BLANK if 

Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the domestic 

amount and pass it back to the calling function

FCHGmnForAmountAdjustmentsINForeign write-off amount. Can be left BLANK if 

Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the foreign 

amount and pass it back to the calling function

ECBRszChargebackreasoncodeINReason code. Required for Chargeback transactions 

only.

DGJcChargebackDefaultDatesING/L Date. Required for Chargeback.

AN8mnAddressnumberIYCustomer number from F03B11 invoice.

DDAmnDeductionAmountIYDomestic Deduction amount. Can be left BLANK if 

Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the domestic 

amount and pass it back to the calling function


FDAmnForeignDeductionAmountIYForeign Deduction amount. Can be left BLANK if 

Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the foreign 

amount and pass it back to the calling function

DDEXszReasonCodeforDeductionINReason code for deduction. Required if deduction 

amount is not zero.

DAIDszDeductionAccountIDING/L short account ID for deduction. Required if 

deduction amount is not zero.

AIDDszDiscountAccountIDING/L short account ID for Discount. Required if 

discount taken is not zero.

AIDWszWriteOffAccountIDING/L short account ID for Write off. Required if 

write-off amount is not zero.

UTICszUserTypeInputCodeIYThe UDC code 03B/RE for the transaction.

AIDCszAccountIDGLChargebackING/L short account ID for Chargeback. Required if 

chargeback amount is not zero.

TAAPmnTransactionPaymntAmountINTransaction Amount to be applied to Invoice in 

transaction currency. Required if transaction is alternate currency. If field is BLANK then Foreign and 

Domestic payment amounts must be passed. If BLANK function will calculate transaction amounts based on 

receipt.

TADAmnTransactionDiscountAmountINTransaction Discount Amount to be applied to Invoice 

in transaction currency. Required if transaction is alternate currency. If field is BLANK then Foreign 

and Domestic discount amounts must be passed. If BLANK function will calculate transaction amounts 

based on receipt.

TAAJmnTransactionWriteOffAmountINTransaction Write off Amount to be applied to Invoice 

in transaction currency. Required if transaction is alternate currency. If field is BLANK then 

Foreign and Domestic write off amounts must be passed. If BLANK function will calculate transaction amounts 

based on receipt.

TCBAmnTransactionChargeBackAmountINTransaction Chargeback Amount to be applied to 

Invoice in transaction currency. Required if transaction is alternate currency. If field is BLANK then 

Foreign and Domestic chargeback amounts must be passed. If BLANK function will calculate transaction 

amounts based on receipt.

TDAmnTransactionDeductionAmountINTransaction Deduction Amount to be applied to Invoice 

in transaction currency. Required if transaction is alternate currency. If field is BLANK then 

Foreign and Domestic deduction amounts must be passed. If BLANK function will calculate transaction amounts 

based on receipt.

TCRCszTransactionCurrencyCodeINTransaction Currency code. Required if transaction is 

alternate currency.

ACRRmnAlternateCurrencyExchangeRINAlternate currency exchange rate. Exchange rate 

between receipt currency and the Invoice currency. Required if transaction is alternate currency.

ACR1mnAlternateCurrencyRateLeg1INAlternate currency exchange rate leg 1. Required if 

transaction is alternate currency.

ACR2mnAlternateCurrencyRateLeg2INAlternate currency exchange rate leg 2. Required if 

transaction is alternate currency.

ACRMcAltCurrencyConversionMethodINConversion method used for alternate currency 

transaction. Required if alternate currency.

EV01cCurrencyConvertYNIN1- function will calculate the Foreign and Domestic 

amounts based on the transaction amounts and Invoice being applied.

VR01szReference1INCustomer reference will be output to the F03B14 

record created. If BLANK the F03B11 VR01 will be used if F03B11 KCO, DCT, DOC and SFX passed.

RIDCcReferenceIdCodeINDeduction reference ID code will be output to F03B14 

record.

POszPurchaseOrderDocNumberIN

PDCTszPurchaseOrderDocTypeIN

PKCOszPurchaseOrderDocCompanyIN

UNITszUnitNumberIN

AIDTszGainAccountIDINPass if creating a foreign or alternate currency 

receipt. If blank, will default from the 'RG' AAI.

AIDTszLossAccountIDINPass if creating a foreign or alternate currency 

receipt. If blank, will default from the 'RL' AAI.'1a'1a

Data Structure

D03B0012 - F03B14 Apply Receipt to Invoice

Parameters Item Description I/O Req? Notes ACTN cAddOrUpdateFlag I Y 'A' to add record. 'U' to update a 
record. PYID mnPaymentid I Y Payment ID of Receipt Header. RC5 mnFilelineidentifier50 I Y Line Number of the transaction with in a Payment ID group. Required for 
Updates. Must zero on Adds. KCO szCompanykey I Y Document Key Company of Invoice being applied. Required if transaction is a Invoice 
match. DOC mnDocvoucherinvoicee I Y Document Number of Invoice being applied. Required if transaction is a Invoice 
match. DCT szDocumenttype I Y Document Type of Invoice being applied. Required if transaction is a Invoice match. SFX szDocumentpayitem I Y Pay Item of 
Invoice being applied. Required if transaction is a Invoice match. ICUT szBatchtype I Y Batch Type for the batch. This is the ICUT in 
F03B14. ICU mnBatchnumber I Y Batch Number for the batch. This is the ICU in F03B14. DICJ jdDatebatchjulian I Y Batch Date of Transaction. This is 
the DICJ in F03B14. FAP mnForeignAmountApplied I Y Amount in foreign currency to be applied to the Invoice. Can be left BLANK if 
Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the foreign amount and pass it back to the calling 
function CDSA mnForeigndiscounttaken I Y Discount amount in foreign currency to be applied to the Invoice. Can be left BLANK if Transaction 
Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the foreign amount and pass it back to the calling 
function. RSCO szReasoncode I N Reason code for the writeoff. Required if write-off amount is not zero. TYIN cCashreceipttrancode I Y Receipt Type 
code (10,11,15,16,17,25,26 or 27). RMK szNameremark I N Remark. MCU2 szCostcenter2 I N Business Unit 
2. AA mnMaxAutoDRWriteOffAmt I Y Max amount that can be automatically written  off. Debit amount. AR szAutoDRWriteOffReasonCode I Y Reason code to be used for a 
automatic write off. Debit amount. AA mnMaxAutoCRWriteOffAmt I Y Max amount that can be automatically written  off. Credit amount must be 
passed in with - sign. AR szAutoCRWriteOffReasonCode I Y Reason code to be used for a automatic write off. Credit 
amount. EV01 cAllowPayHeldInv I Y Enter a 1 to not allow payment of invoices at status not equal to "A". CRCD szReceiptBaseCurrencycode I Y Base currency of the 
receipt. EV02 cErrorFlag O '1' if errors were found. AAP mnDomAmountApplied I Y Amount in domestic currency to be applied to Invoice. 
Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the domestic amount 
and pass it back to the calling function ADSA mnDomDiscTaken I Y Discount Amount in domestic currency to be applied to Invoice. Can be left 
BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the domestic amount and pass it 
back to the calling function PST cDDDefaultPaystscode I Y Default pay status to use on on invoice if not closed Open amount NEQ 
Zero. EV01 cSkipAutoWriteOff I N Set to '1' to bypass automatic write-off processing. AA mnMaxManDRWriteOffAmt I Y Max amount that can be 
manually written off. Debit amount. AA mnMaxManCRwriteOffAmt I Y Max amount that can be manually written  off. Credit amount must be passed in 
with - sign. DGJ jdGLDate I Y G/L date of the transaction. AR szAdjustmentReasonCode I Y Reason code to be used for the manual write 
off. Required if there is a adjustment amount. PID szProgramid I N Program ID to update transaction audit infor. If not passed, business 
function source name will be used. AA mnChargebackDomesticAmt I Y Chargeback Amount in domestic currency to be applied to Invoice. Can be 
left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the domestic amount and pass 
it back to the calling function AA mnChargebackForeignAmt I Y Chargeback Amount in foreign currency to be applied to Invoice. Can be left 
BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the foreign amount and pass it 
back to the calling function RMK szChargebackRemark I N Remark to output to chargeback. Required for Chargeback transactions 
only. CRCD szChargebackCcy I N Currency code of the Chargeback transaction. Required for Chargeback transactions 
only. CRR mnChargebackExchRate I N Exchange rate. Required for Chargeback transactions only. CO szChargebackCo I N Company number to use in creation of 
RB-chargeback or R5- deduction invoices. Also used for account number of the writeoffs. Required for writeoff, chargeback and deduction 
transactions only. GLC szChargebackGLOffset I N G/L Offset for Chargeback. Used in creation of RB- chargeback invoices. Required for 
Chargeback transactions only. MCU szChargebackMCU I N Business Unit. Used in creation of RB- chargeback invoices. Required for Chargeback 
transactions only. PST cChargebackDefaultPaysts I N Default Pay Status for the Chargeback. Used in creation of RB- chargeback invoices. If 
BLANK Data Dictionary will default. AAAJ mnDomAmountAdjustments I Y Domestic write-off amount. Can be left BLANK if Transaction 
Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the domestic amount and pass it back to the calling 
function FCHG mnForAmountAdjustments I N Foreign write-off amount. Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN 
is EQ 1. The function will calculate the foreign amount and pass it back to the calling function ECBR szChargebackreasoncode I N Reason 
code. Required for Chargeback transactions only. DGJ cChargebackDefaultDates I N IF 1- use invoice dates for RB invoice. Else use 
receipt date for RB invoice. Required for Chargeback. AN8 mnAddressnumber I Y Customer number from F03B11 
invoice. DDA mnDeductionAmount I Y Domestic Deduction amount. Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function 
will calculate the domestic amount and pass it back to the calling function FDA mnForeignDeductionAmount I Y Foreign Deduction amount. 
Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the foreign amount and 
pass it back to the calling function DDEX szReasonCodeforDeduction I N Reason code for deduction. Required if deduction amount is not 
zero. DAID szDeductionAccountID I N G/L short account ID for deduction. Required if deduction amount is not 
zero. AIDD szDiscountAccountID I N G/L short account ID for Discount. Required if discount taken is not zero. AIDW szWriteOffAccountID I N G/L short account ID for Write off. 
Required if write-off amount is not zero. UTIC szUserTypeInputCode I Y The UDC code 03B/RE for the 
transaction. AIDC szAccountIDGLChargeback I N G/L short account ID for Chargeback. Required if chargeback amount is not 
zero. TAAP mnTransactionPaymntAmount I N Transaction Amount to be applied to Invoice in transaction currency. Required if transaction is alternate currency. If field is BLANK then Foreign and 
Domestic payment amounts must be passed. If BLANK function will calculate transaction amounts based on 
receipt. TADA mnTransactionDiscountAmount I N Transaction Discount Amount to be applied to Invoice in transaction currency. Required if transaction is alternate 
currency. If field is BLANK then Foreign and Domestic discount amounts must be passed. If BLANK function will calculate transaction amounts based 
on receipt. TAAJ mnTransactionWriteOffAmount I N Transaction Write off Amount to be applied to Invoice in transaction currency. Required 
if transaction is alternate currency. If field is BLANK then Foreign and Domestic write off amounts must be passed. If BLANK function will 
calculate transaction amounts based on receipt. TCBA mnTransactionChargeBackAmount I N Transaction Chargeback Amount to be applied 
to Invoice in transaction currency. Required if transaction is alternate currency. If field is BLANK then Foreign and Domestic chargeback 
amounts must be passed. If BLANK function will calculate transaction amounts based on 
receipt. TDA mnTransactionDeductionAmount I N Transaction Deduction Amount to be applied to Invoice in transaction currency. Required if transaction is alternate currency. If field is BLANK then 
Foreign and Domestic deduction amounts must be passed. If BLANK function will calculate transaction amounts based on 
receipt. TCRC szTransactionCurrencyCode I N Transaction Currency code. Required if transaction is alternate 
currency. ACRR mnAlternateCurrencyExchangeR I N Alternate currency exchange rate. Exchange rate between receipt currency and the Invoice currency. Required if transaction is 
alternate currency. ACR1 mnAlternateCurrencyRateLeg1 I N Alternate currency exchange rate leg 1. Required if transaction is alternate 
currency. ACR2 mnAlternateCurrencyRateLeg2 I N Alternate currency exchange rate leg 2. Required if transaction is alternate 
currency. ACRM cAltCurrencyConversionMethod I N Conversion method used for alternate currency transaction. Required if alternate 
currency. EV01 cCurrencyConvertYN I N 1- function will calculate the Foreign and Domestic amounts based on the transaction amounts and Invoice being 
applied. VR01 szReference1 I N Customer reference will be output to the F03B14 record created. If BLANK the F03B11 VR01 will be used if F03B11 KCO, 
DCT, DOC and SFX passed. RIDC cReferenceIdCode I N Deduction reference ID code will be output to F03B14 record. ^

Parameter NameData ItemData TypeReq/OptI/O/Both
cAddOrUpdateFlagACTNcharOPTNONE

Parameters Item Description I/O Req? Notes ACTN cAddOrUpdateFlag I Y 'A' to add record. 'U' to update a record. ^

mnPaymentidPYIDMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes PYID mnPaymentid I Y Payment ID of Receipt Header. ^

mnFilelineidentifier50RC5MATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes RC5 mnFilelineidentifier50 I Y Line Number of the transaction with in a Payment ID group. 
Required for Updates. Must zero on Adds. ^

szCompanykeyKCOcharOPTNONE

Parameters Item Description I/O Req? Notes KCO szCompanykey I Y Document Key Company of Invoice being applied. Required if 
transaction is a Invoice match.^

mnDocvoucherinvoiceeDOCMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes DOC mnDocvoucherinvoicee I Y Document Number of Invoice being applied. Required if 
transaction is a Invoice match. ^

szDocumenttypeDCTcharOPTNONE

Parameters Item Description I/O Req? Notes DCT szDocumenttype I Y Document Type of Invoice being applied. Required if transaction is 
a Invoice match. ^

szDocumentpayitemSFXcharOPTNONE

Parameters Item Description I/O Req? Notes SFX szDocumentpayitem I Y Pay Item of Invoice being applied. Required if transaction is a 
Invoice match. ^

szBatchtypeICUTcharOPTNONE

Parameters Item Description I/O Req? Notes ICUT szBatchtype I Y Batch Type for the batch. This is the ICUT in F03B14. ^

mnBatchnumberICUMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes ICU mnBatchnumber I Y Batch Number for the batch. This is the ICU in F03B14. ^

jdDatebatchjulianDICJJDEDATEOPTNONE

Parameters Item Description I/O Req? Notes DICJ jdDatebatchjulian I Y Batch Date of Transaction. This is the DICJ in F03B14. ^

mnForeignAmountAppliedFAPMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes FAP mnForeignAmountApplied I Y Amount in foreign currency to be applied to the Invoice. 
Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the foreign amount and 
pass it back to the calling function ^

mnForeigndiscounttakenCDSAMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes CDSA mnForeigndiscounttaken I Y Discount amount in foreign currency to be applied to the 
Invoice. Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the foreign 
amount and pass it back to the calling function. ^

szReasncodeRSCOcharOPTNONE

Parameters Item Description I/O Req? Notes RSCO szReasoncode I N Reason code for the writeoff. Required if write-off amount is not 
zero. ^

cCashreceipttrancodeTYINcharOPTNONE

Parameters Item Description I/O Req? Notes TYIN cCashreceipttrancode I Y Receipt Type code (10,11,15,16,17,25,26 or 27). ^

szNameremarkRMKcharOPTNONE

Parameters Item Description I/O Req? Notes RMK szNameremark I N Remark. ^

szBusinessUnit2MCU2charOPTNONE

Parameters Item Description I/O Req? Notes MCU2 szCostcenter2 I N Business Unit 2. ^

mnMaxAutoDRWriteOffAmtAAMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes AA mnMaxAutoDRWriteOffAmt I Y Max amount that can be automatically written  off. Debit 
amount. ^

szAutoDRWriteOffReasonCodeARcharOPTNONE

Parameters Item Description I/O Req? Notes AR szAutoDRWriteOffReasonCode I Y Reason code to be used for a automatic write off. 
Debit amount. ^

mnMaxAutoCRWriteOffAmtAAMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes AA mnMaxAutoCRWriteOffAmt I Y Max amount that can be automatically written  off. Credit 
amount must be passed in with - sign. ^

szAutoCRWriteOffReasonCodeARcharOPTNONE

Parameters Item Description I/O Req? Notes AR szAutoCRWriteOffReasonCode I Y Reason code to be used for a automatic write off. 
Credit amount. ^

cAllowPayHeldInvEV01charOPTNONE

Parameters Item Description I/O Req? Notes EV01 cAllowPayHeldInv I Y Enter a 1 to not allow payment of invoices at status not equal to 
"A". ^

szReceiptBaseCurrencycodeCRCDcharOPTNONE

Parameters Item Description I/O Req? Notes CRCD szReceiptBaseCurrencycode I Y Base currency of the receipt. ^

cErrorFlagEV02charOPTNONE

Parameters Item Description I/O Req? Notes EV02 cErrorFlag O '1' if errors were found. ^

mnDomAmountAppliedAAPMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes AAP mnDomAmountApplied I Y Amount in domestic currency to be applied to Invoice. Can 
be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the domestic amount and 
pass it back to the calling function ^

mnDomDiscTakenADSAMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes ADSA mnDomDiscTaken I Y Discount Amount in domestic currency to be applied to Invoice. 
Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the domestic amount 
and pass it back to the calling function ^

cDDDefaultPaystscodePSTcharOPTNONE

Parameters Item Description I/O Req? Notes PST cDDDefaultPaystscode I Y Default pay status to use on on invoice if not closed Open 
amount NEQ Zero. ^

cSkipAutoWriteOffEV01charOPTNONE

Parameters Item Description I/O Req? Notes EV01 cSkipAutoWriteOff I N Set to '1' to bypass automatic write-off processing. ^

mnMaxManDRWriteOffAmtAAMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes AA mnMaxManDRWriteOffAmt I Y Max amount that can be manually written off. Debit 
amount. ^

mnMaxManCRwriteOffAmtAAMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes AA mnMaxManCRwriteOffAmt I Y Max amount that can be manually written  off. Credit amount 
must be passed in with - sign. ^

jdGLDateDGJJDEDATEOPTNONE

Parameters Item Description I/O Req? Notes DGJ jdGLDate I Y G/L date of the transaction. ^

szAdjustmentReasonCodeARcharOPTNONE

Parameters Item Description I/O Req? Notes AR szAdjustmentReasonCode I Y Reason code to be used for the manual write off. Required 
if there is a adjustment amount. ^

szProgramidPIDcharOPTNONE

Parameters Item Description I/O Req? Notes PID szProgramid I N Program ID to update transaction audit infor. If not passed, business 
function source name will be used. ^

mnChargebackDomesticAmtAAMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes AA mnChargebackDomesticAmt I Y Chargeback Amount in domestic currency to be applied 
to Invoice. Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the domestic 
amount and pass it back to the calling function ^

mnChargebackForeignAmtAAMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes AA mnChargebackForeignAmt I Y Chargeback Amount in foreign currency to be applied to 
Invoice. Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the foreign 
amount and pass it back to the calling function ^

szChargebackRemarkRMKcharOPTNONE

Parameters Item Description I/O Req? Notes RMK szChargebackRemark I N Remark to output to chargeback. Required for Chargeback 
transactions only. ^

szChargebackCcyCRCDcharOPTNONE

Parameters Item Description I/O Req? Notes CRCD szChargebackCcy I N Currency code of the Chargeback transaction. Required for 
Chargeback transactions only. ^

mnChargebackExchRateCRRMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes CRR mnChargebackExchRate I N Exchange rate. Required for Chargeback transactions 
only. ^

szChargebackCoCOcharOPTNONE

Parameters Item Description I/O Req? Notes CO szChargebackCo I N Company number to use in creation of RB-chargeback or R5- 
deduction invoices. Also used for account number of the writeoffs. Required for writeoff, chargeback and deduction transactions only. ^

szChargebackGLOffsetGLCcharOPTNONE

Parameters Item Description I/O Req? Notes GLC szChargebackGLOffset I N G/L Offset for Chargeback. Used in creation of RB- 
chargeback invoices. Required for Chargeback transactions only. ^

szChargebackMCUMCUcharOPTNONE

Parameters Item Description I/O Req? Notes MCU szChargebackMCU I N Business Unit. Used in creation of RB- chargeback invoices. 
Required for Chargeback transactions only. ^

cChargebackDefaultPaystsPSTcharOPTNONE

Parameters Item Description I/O Req? Notes PST cChargebackDefaultPaysts I N Default Pay Status for the Chargeback. Used in creation 
of RB- chargeback invoices. If BLANK Data Dictionary will default. ^

mnDomAmountAdjustmentsAAAJMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes AAAJ mnDomAmountAdjustments I Y Domestic write-off amount. Can be left BLANK if 
Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the domestic amount and pass it back to the calling 
function ^

mnForAmountAdjustmentsFCHGMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes FCHG mnForAmountAdjustments I N Foreign write-off amount. Can be left BLANK if 
Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the foreign amount and pass it back to the calling 
function ^

szChargebackreasoncodeECBRcharOPTNONE

Parameters Item Description I/O Req? Notes ECBR szChargebackreasoncode I N Reason code. Required for Chargeback transactions 
only. ^

cChargebackDefaultDatesEV03charOPTNONE

Parameters Item Description I/O Req? Notes EV03 cChargebackDefaultDates I N IF 1 use invoice date for RB invoice. Else use receipt 
dates for RB invoice. Required for Chargeback. ^

mnAddressnumberAN8MATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes AN8 mnAddressnumber I Y Customer number from F03B11 invoice. ^

mnDeductionAmountDDAMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes DDA mnDeductionAmount I Y Domestic Deduction amount. Can be left BLANK if Transaction 
Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the domestic amount and pass it back to the calling 
function ^

mnForeignDeductionAmountFDAMATH_NUMERICOPTNONE

Parameters Item Description I/O Req? Notes FDA mnForeignDeductionAmount I Y Foreign Deduction amount. Can be left BLANK if 
Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the foreign amount and pass it back to the calling 
function ^

szReasonCodeforDeductionDDEXcharOPTNONE

Parameters Item Description I/O Req? Notes DDEX szReasonCodeforDeduction I N Reason code for deduction. Required if deduction 
amount is not zero. ^

szDeductionAccountIdDAIDcharOPTNONE

Parameters Item Description I/O Req? Notes DAID szDeductionAccountID I N G/L short account ID for deduction. Required if deduction 
amount is not zero. ^

szDiscountAccountIDAIDDcharOPTNONE

Parameters Item Description I/O Req? Notes AIDD szDiscountAccountID I N G/L short account ID for Discount. Required if discount taken 
is not zero. ^

szWriteOffAccountIDAIDWcharOPTNONE

Parameters Item Description I/O Req? Notes AIDW szWriteOffAccountID I N G/L short account ID for Write off. Required if write-off amount 
is not zero. ^

szUserTypeInputCodeUTICcharOPTNONE

Parameters Item Description I/O Req? Notes UTIC szUserTypeInputCode I Y The UDC code 03B/RE for the transaction. ^

szAccountIDGLChargebackAIDCcharOPTNONE

Parameters Item Description I/O Req? Notes AIDC szAccountIDGLChargeback I N G/L short account ID for Chargeback. Required if 
chargeback amount is not zero. ^

mnTransactionPaymntAmountTAAPMATH_NUMERICOPTBOTH

Parameters Item Description I/O Req? Notes TAAP mnTransactionPaymntAmount I N Transaction Amount to be applied to Invoice in 
transaction currency. Required if transaction is alternate currency. If field is BLANK then Foreign and Domestic payment amounts must be 
passed. If BLANK function will calculate transaction amounts based on receipt. ^

mnTransactionDiscountAmountTADAMATH_NUMERICOPTBOTH

Parameters Item Description I/O Req? Notes TADA mnTransactionDiscountAmount I N Transaction Discount Amount to be applied to 
Invoice in transaction currency. Required if transaction is alternate currency. If field is BLANK then Foreign and Domestic discount amounts must 
be passed. If BLANK function will calculate transaction amounts based on receipt. ^

mnTransactionWriteOffAmountTAAJMATH_NUMERICOPTBOTH

Parameters Item Description I/O Req? Notes TAAJ mnTransactionWriteOffAmount I N Transaction Write off Amount to be applied to 
Invoice in transaction currency. Required if transaction is alternate currency. If field is BLANK then Foreign and Domestic write off amounts must be 
passed. If BLANK function will calculate transaction amounts based on receipt. ^

mnTransactionChargeBackAmountTCBAMATH_NUMERICOPTBOTH

Parameters Item Description I/O Req? Notes TCBA mnTransactionChargeBackAmount I N Transaction Chargeback Amount to be 
applied to Invoice in transaction currency. Required if transaction is alternate currency. If field is BLANK then Foreign and Domestic chargeback 
amounts must be passed. If BLANK function will calculate transaction amounts based on receipt. ^

mnTransactionDeductionAmountTDAMATH_NUMERICOPTBOTH

Parameters Item Description I/O Req? Notes TDA mnTransactionDeductionAmount I N Transaction Deduction Amount to be applied to 
Invoice in transaction currency. Required if transaction is alternate currency. If field is BLANK then Foreign and Domestic deduction amounts 
must be passed. If BLANK function will calculate transaction amounts based on receipt. ^

szTransactionCurrencyCodeTCRCcharOPTBOTH

Parameters Item Description I/O Req? Notes TCRC szTransactionCurrencyCode I N Transaction Currency code. Required if transaction is 
alternate currency. ^

mnAlternateCurrencyExchangeRatACRRMATH_NUMERICOPTBOTH

Parameters Item Description I/O Req? Notes ACRR mnAlternateCurrencyExchangeR I N Alternate currency exchange rate. Exchange rate 
between receipt currency and the Invoice currency. Required if transaction is alternate currency. ^

mnAlternateCurrencyRateLeg1ACR1MATH_NUMERICOPTBOTH

Parameters Item Description I/O Req? Notes ACR1 mnAlternateCurrencyRateLeg1 I N Alternate currency exchange rate leg 1. Required if 
transaction is alternate currency. ^

mnAlternateCurrencyRateLeg2ACR2MATH_NUMERICOPTBOTH

Parameters Item Description I/O Req? Notes ACR2 mnAlternateCurrencyRateLeg2 I N Alternate currency exchange rate leg 2. Required if 
transaction is alternate currency. ^

cAltCurrencyConversionMethodACRMcharOPTBOTH

Parameters Item Description I/O Req? Notes ACRM cAltCurrencyConversionMethod I N Conversion method used for alternate currency 
transaction. Required if alternate currency. ^

cCurrencyConvertYNEV01charOPTBOTH

Parameters Item Description I/O Req? Notes EV01 cCurrencyConvertYN I N 1- function will calculate the Foreign and Domestic amounts 
based on the transaction amounts and Invoice being applied. ^

szReference1VR01charOPTNONE

Parameters Item Description I/O Req? Notes VR01 szReference1 I N Customer reference will be output to the F03B14 record created. If 
BLANK the F03B11 VR01 will be used if F03B11 KCO, DCT, DOC and SFX passed. ^

cReferenceIdCodeRIDCcharOPTNONE

Parameters Item Description I/O Req? Notes RIDC cReferenceIdCode I N Deduction reference ID code will be output to F03B14 record. ^

szPurchaseOrderDocNumberPOcharOPTINPUT

A document that authorizes the delivery of specified merchandise or the rendering of certain services.

szPurchaseOrderDocTypePDCTcharOPTINPUT

A value that is hard-coded in the originating programs and passed to the Accounts Payable system. In Accounts Receivable, the document 
type on the purchase order issued by the customer can be entered directly into the Accounts Receivable Ledger (F03B11)

szPurchaseOrderDocCompanyPKCOcharOPTINPUT

For purchase orders, a code that differentiates a record from another with the same document number, document type, and G/L date.  If you 
are using the Next Numbers by Company/Fiscal Year feature of the software, the Next Numbers program (X0010) uses the document 
company to retrieve the next number. If two or more original documents have the same document number and type, you can use the document 
company to locate the correct record.

szUnitNumberUNITcharOPTINPUT

The number that identifies the actual space within a building that is or can be leased, such as an apartment, office, retail space, parking 
space, and so on.

szGainAccountIDAIDTcharOPTINPUT

A unique identification number that contains account information for the foreign currency gain or loss account that the system uses when you 
apply a foreign currency receipt to an invoice. 

szLossAccountIDAIDTcharOPTINPUT

A unique identification number that contains account information for the foreign currency gain or loss account that the system uses when you 
apply a foreign currency receipt to an invoice. 

szAltCurrGainAccountIDAIDAcharOPTINPUT

A unique identification number that contains account information for the alternate currency gain or loss account that the system uses when it 
applies an alternate currency receipt to an invoice. 

szAltCurrLossAccountIDAIDAcharOPTINPUT

A unique identification number that contains account information for the alternate currency gain or loss account that the system uses when it 
applies an alternate currency receipt to an invoice. 

szDiscountReasonCodeDRCOcharOPTNONE

A code that specifies the reason that a discount is given.

mnNetTransactionIDNETTCIDMATH_NUMERICOPTNONE

A number that identifies a netting transaction. The system assigns it using the Next Numbers program (P0002). A netting transaction could 
contain one or more netting documents.

mnNetDocNumberNETDOCMATH_NUMERICOPTNONE

A number that the system uses to cross reference netting source documents from which netting transfer and netting result documents are 
generated. The system assigns it using the Next Numbers program (P0002). Examples of  netting source documents are: Accounts Payable    o 
Voucher   o Debit Memo    Accounts Receivable    o Invoice    o Credit Memo  o Chargeback  o Unapplied Cash

mnNetLineIDNETRC5MATH_NUMERICOPTNONE

A number that identifies the pay item for a netting source document (voucher or invoice). The system assigns this number. If the voucher or 
invoice has multiple pay items, the numbers are sequential.

cBatchModeEV01charOPTNONE

An option that specifies the type of processing for an event.

idF03B11HandleGENLNGIDOPTNONE

General purpose ID variable.

idF03B11Z2HandleGENLNGIDOPTNONE

General purpose ID variable.

idF03B13HandleGENLNGIDOPTNONE

General purpose ID variable.

idF03B13Z2HandleGENLNGIDOPTNONE

General purpose ID variable.

idF03B14HandleGENLNGIDOPTNONE

General purpose ID variable.

idF03B14Z2HandleGENLNGIDOPTNONE

General purpose ID variable.

Related Functions

B0000027 CurrencyConvForAndDom
B0000033 Get Exchange Rate
B0000055 ValidateAAICompletely
B03B0069 F03B14 Maintain Unapplied Cash
B03B0174 Get Invoice Exchange Rate For Euro
B9800100 Get Audit Information
N0100041 Address Book MBF
N03B0185 F03012 Get Customer Master
X0903 Fiscal Date Edits +
XX0901 Validate Account Number

Related Tables

F03B11 Customer Ledger
F03B13 Receipts Header
F03B14 Receipts Detail
le="position: absolute; left: 0.500000in">Base currency of the receipt.

EV02cErrorFlagO '1' if errors were found.

AAPmnDomAmountAppliedIYAmount in domestic currency to be applied to Invoice. 

Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will 

calculate the domestic amount and pass it back to the calling function

ADSAmnDomDiscTakenIYDiscount Amount in domestic currency to be applied to 

Invoice. Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The 

function will calculate the domestic amount and pass it back to the calling function

PSTcDDDefaultPaystscodeIYDefault pay status to use on on invoice if not closed 

Open amount NEQ Zero.

EV01cSkipAutoWriteOffINSet to '1' to bypass automatic write-off processing.

AAmnMaxManDRWriteOffAmtIYMax amount that can be manually written off. Debit 

amount.

AAmnMaxManCRwriteOffAmtIYMax amount that can be manually written  off. Credit 

amount must be passed in with - sign.

DGJjdGLDateIYG/L date of the transaction.

ARszAdjustmentReasonCodeIYReason code to be used for the manual write off. 

Required if there is a adjustment amount.

PIDszProgramidINProgram ID to update transaction audit infor. If not 

passed, business function source name will be used.

AAmnChargebackDomesticAmtIYChargeback Amount in domestic currency to be applied 

to Invoice. Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The 

function will calculate the domestic amount and pass it back to the calling function

AAmnChargebackForeignAmtIYChargeback Amount in foreign currency to be applied 

to Invoice. Can be left BLANK if Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The 

function will calculate the foreign amount and pass it back to the calling function

RMKszChargebackRemarkINRemark to output to chargeback. Required for 

Chargeback transactions only.

CRCDszChargebackCcyINCurrency code of the Chargeback transaction. Required 

for Chargeback transactions only.

CRRmnChargebackExchRateINExchange rate. Required for Chargeback transactions 

only.

COszChargebackCoINCompany number to use in creation of RB-chargeback or 

R5- deduction invoices. Also used for account number of the writeoffs. Required for writeoff, 

chargeback and deduction transactions only.

GLCszChargebackGLOffsetING/L Offset for Chargeback. Used in creation of RB- 

chargeback invoices. Required for Chargeback transactions only.

MCUszChargebackMCUINBusiness Unit. Used in creation of RB- chargeback 

invoices. Required for Chargeback transactions only.

PSTcChargebackDefaultPaystsINDefault Pay Status for the Chargeback. Used in 

creation of RB- chargeback invoices. If BLANK Data Dictionary will default.

AAAJmnDomAmountAdjustmentsIYDomestic write-off amount. Can be left BLANK if 

Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the domestic 

amount and pass it back to the calling function

FCHGmnForAmountAdjustmentsINForeign write-off amount. Can be left BLANK if 

Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the foreign 

amount and pass it back to the calling function

ECBRszChargebackreasoncodeINReason code. Required for Chargeback transactions 

only.

DGJcChargebackDefaultDatesING/L Date. Required for Chargeback.

AN8mnAddressnumberIYCustomer number from F03B11 invoice.

DDAmnDeductionAmountIYDomestic Deduction amount. Can be left BLANK if 

Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the domestic 

amount and pass it back to the calling function


FDAmnForeignDeductionAmountIYForeign Deduction amount. Can be left BLANK if 

Transaction Amounts are passed and cCurrencyConvertYN is EQ 1. The function will calculate the foreign 

amount and pass it back to the calling function

DDEXszReasonCodeforDeductionINReason code for deduction. Required if deduction 

amount is not zero.

DAIDszDeductionAccountIDING/L short account ID