CreateInvAdjRecord

F03B112 Create Invoice Revision

Major Business Rule

Object Name: B03B0021

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose

This business function will update an existing record or insert a new record to the F03B112 file for 
adjustments/revisions made to a  posted invoice pay item. 


The purpose of this business function is to write a new record to the F03B112 when 

adjustments/revisions are made to a posted pay item on an invoice.

The document number will be the same as the invoice, and the pay item suffix will be assigned by the 

system.

The new F03B112 record will include all the fields that the post program needs to post the invoice 

pay item.  Additionally, the amounts on this new record will be the difference between the original and 

new amounts of the invoice.


Setup Notes and Prerequisites

None.


Special Logic

None.



Technical Specification




Parameters

ItemDescriptionI/OReq?Notes

KCO    szCompanykeyIYPart of key to F03B112
DOC    mnDocumentNumberIYPart of key to F03B112

DCT    szDocumentTypeIYPart of key to F03B112

SFX    szPayItemIYPart of key to F03B112

SFXE   mnPayitemextensionnumberIYPart of key to F03B112

OKCO   szCompanyKeyOriginalIN

ODOC   mnOriginalDocNumIN

ODCT   szOriginalDocumentTypeIN

OSFX   szOriginaldocpayitemIN

FY     mnFiscalYearIN

CTRY   mnCenturyIN

PN     mnPeriodNumGeneralLedgeIN

CO     szCompanyIN

DGJ    jdDateforGLandVoucherJuliaIN

DIVJ   jdDateInvoicejIN

ICUT   szBatchTypeIN

ICU    mnBatchNumberIN

DICJ   jdDateBatchJulianIN

AN8    mnAddressnumberIN

PA8    mnAddressNumberParentIN

POST   cGLPostedCodeIN

PST    cPayStatusCodeIN

AG     mnAmountGrossIN

AAP    mnAmountOpenIN

ADSC   mnAmtDiscountavailableIN

ADSA   mnAmountDiscountTakenIN

ATXA   mnAmountTaxableIN

ATXN   mnAmountTaxExemptIN

STAM   mnAmtTax2IN

DMCD   cDomesticEntrywMultCurrencyIN

CRRM   cCurrencyModeIN

CRCD   szCurrencyCodeFromIN

CRR    mnCurrencyConverRateovIN

ACR    mnAmountCurrencyIN

FAP    mnAmountForeignOpenIN

CDS    mnForeignDiscountAvailIN

CDSA   mnForeignDiscountTakenIN

CTXA   mnForeignTaxableAmountIN

CTXN   mnForeignTaxExemptIN

CTAM   mnForeignTaxAmountIN

TXA1   szTaxArea1IN

PTC    szPaymentTermsCodeIN

DDJ    jdDateDueIN

DDNJ   jdDateDiscountDueJulianIN

USER   szUserIdIN

UPMJ   jdDateUpdatedIN

UPMT   mnTimeLastUpdatedIN

JOBN   szWorkStationIdIN

RMK    szNameRemarkIN

GLC    szGLOffsetIN

EXR1   szTaxExplanationCode1IN

DSVJ   jdDateServiceTaxIN

ITM    mnIdentifierShortItemIN

MCU    szBusinessUnitIN

ODDJ   jdOriginalDateNetDueIN

OAG    mnAmountOriginalGrossIN

ARE    szAdjustmentReasonCodeIN

BCRC   szCurrencyCodeBaseIN


Related Tables 
F03B112A/R Adjustment Ledger

Related Business Functions

None.

Processing 

1. Open file.
2. Determine if record exists in F03B112.

3. If record exists, update record.

4. If new, add  the record to the F03B112 table.

5. Close file. 


^

Data Structure

D03B0021 - F03B112 Create Invoice Revisions

Parameter NameData ItemData TypeReq/OptI/O/Both
szCompanykeyKCOcharNONENONE

A number that, with the document number, document type and G/L date, uniquely identifies an original document, such as invoice, voucher, 
or journal entry. If you use the Next Numbers by Company/Fiscal Year feature, the Automatic Next Numbers program (X0010) uses the 
document company to retrieve the correct next number for that company. If two or more original documents have the same document number and 
document type, you can use the document company to locate the desired document.

mnDocumentNumberDOCMATH_NUMERICNONENONE

A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document 
number or let the system assign it using the Next Numbers program (P0002). Matching document numbers (DOCM) identify related documents 
in the Accounts Receivable and Accounts Payable systems. Examples of original and matching documents are: Accounts Payable     o 
Original document - voucher     o Matching document - payment  Accounts Receivable     o Original document - invoice     o Matching document - 
receipt  Note: In the Accounts Receivable system, the following transactions simultaneously generate original and matching documents: 
deductions, unapplied receipts, chargebacks, and drafts.

szDocumentTypeDCTcharNONENONE

A user defined code (00/DT) that identifies the origin and purpose of the transaction.  PeopleSoft reserves several prefixes for document 
types, such as, vouchers, invoices, receipts, and timesheets. The reserved document type prefixes for codes are: P Accounts payable 
documents R Accounts receivable documents  T Time and Pay documents I Inventory documents  O Purchase order documents  S Sales order 
documents 

szPayItemSFXcharNONENONE

A number that identifies the pay item for a voucher or an invoice. The system assigns the pay item number. If the voucher or invoice has 
multiple pay items, the numbers are sequential.

mnPayitemextensionnumberSFXEMATH_NUMERICNONENONE

A code to designate an adjusting entry to a pay item on a voucher or invoice. This field is required so that each record is unique.

szCompanyKeyOriginalOKCOcharNONENONE

A number that is used in conjunction with the values in the ODOC and ODCT fields to identify a transaction.

mnOriginalDocNumODOCMATH_NUMERICNONENONE

A number that is used in conjunction with the values in the ODCT and OKCO fields to identify a transaction.

szOriginalDocumentTypeODCTcharNONENONE

A user defined code (system 00, type DT) that identifies the origin and purpose of the original document.

szOriginaldocpayitemOSFXcharNONENONE

The number that identifies a specific pay item associated with the document.

mnFiscalYearFYMATH_NUMERICNONENONE

A number that identifies the fiscal year. Generally, you can either enter a number in this field or leave it blank to indicate the current fiscal 
year (as defined on the Company Setup form). Specify the year at the end of the first period rather than the year at the end of the fiscal period. 
For example, a fiscal year begins October 1, 1998 and ends September 30, 1999. The end of the first period is October 31, 1998. Specify the 
year 98 rather than 99.

mnCenturyCTRYMATH_NUMERICNONENONE

The calendar century associated with the year. Enter is the first two digits of the year. For example, 19 indicates any year beginning with 19 
(1998, 1999), 20 indicates any year beginning with 20 (2000, 2001), and so on.

mnPeriodNumGeneralLedgePNMATH_NUMERICNONENONE

A number indicating the current accounting period.  This number, used in conjunction with the Company Constants table (F0010) and the 
General Constants table (F0009), allows the user to define up to 14 accounting periods. See General Ledger Date.  The current period number 
is used to determine posted before and posted after cut off warning messages.  It is also used as the default accounting period in the 
preparation of financial reports.

szCompanyCOcharNONENONE

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

jdDateforGLandVoucherJuliaDGJJDEDATENONENONE

A date that identifies the financial period to which the transaction will be posted. You define financial periods for a date pattern code that you 
assign to the company record. The system compares the date that you enter on the transaction to the fiscal date pattern assigned to the 
company to retrieve the appropriate fiscal period number, as well as to perform date validations.

jdDateInvoicejDIVJJDEDATENONENONE

The date that either you or the system assigns to an invoice or voucher. This can be either the date of the supplier's invoice to you or the 
date of your invoice to the customer.

szBatchTypeICUTcharNONENONE

A code that specifies the system and type of transactions entered in a batch. The system assigns the value when you enter a transaction. 
Valid values are set up in user defined code table 98/IT. You cannot assign new values. All batch types are hard coded.

mnBatchNumberICUMATH_NUMERICNONENONE

A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either 
assign a batch number or let the system assign it using the Next Numbers program.

jdDateBatchJulianDICJJDEDATENONENONE

The date of the batch. If you leave this field blank, the system date is used.

mnAddressnumberAN8MATH_NUMERICNONENONE

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

mnAddressNumberParentPA8MATH_NUMERICNONENONE

The address book number of the parent company. The system uses this number to associate a particular address with a parent company 
or location. Any value that you enter in this field updates the Address Organizational Structure Master table (F0150) for the blank structure 
type. This address number must exist in the Address Book Master table (F0101) for validation purposes. Examples of address book records 
that would have a parent number include:   o  Subsidiaries with parent companies     o  Branches with a home office     o  Job sites with a general 
contractor 

cGLPostedCodePOSTcharNONENONE

A code the system uses to determine whether a transaction is available for the post process. Valid codes 
are: Blank Unposted. D Posted. P Posted or posting. Depending on the type of transaction, this code has different meanings. If the code is assigned to an Account Ledger 
record (F0911), it indicates a posted status. If the code is assigned to any other transaction, it indicates that the system attempted to post the 
record but failed, due to an error it encountered.    M Model. The transaciton is a model journal entry.     

cPayStatusCodePSTcharNONENONE

A user defined code (00/PS) that indicates the current payment status for a voucher or an invoice. Examples of codes include: A Approved 
for payment but not yet paid   H Held pending approval   P Paid   Note: Some of the payment status codes are hard coded; the system assigns 
the code.

mnAmountGrossAGMATH_NUMERICNONENONE

A value that specifies the total amount of the invoice or voucher pay item. The gross amount might include the tax amount, depending on 
the tax explanation code. The system does not decrease the gross amount when payments are applied. When you void a transaction, the 
system clears the gross amount field.

mnAmountOpenAAPMATH_NUMERICNONENONE

The amount of an invoice or voucher pay item that is unpaid.

mnAmtDiscountavailableADSCMATH_NUMERICNONENONE

The amount of the invoice or voucher pay item that is eligible to be subtracted from the gross amount when the transaction is paid. The 
system calculates discount amounts based on the payment term entered on the transaction.  Note: If the system calculates the discount, verify 
that it applies to the pay item specified. Usually, freight, sales tax, and labor charges that are included in the gross amount do not qualify for 
discounts.

mnAmountDiscountTakenADSAMATH_NUMERICNONENONE

The amount by which an invoice or voucher is reduced if paid by a specific date. The discount taken does not have to be the same as the 
discount available.

mnAmountTaxableATXAMATH_NUMERICNONENONE

The amount on which taxes are assessed.

mnAmountTaxExemptATXNMATH_NUMERICNONENONE

The amount upon which taxes are not assessed. This is the portion of the transaction not subject to sales, use, or VAT taxes because the 
products are tax-exempt or zero-rated.

mnAmtTax2STAMMATH_NUMERICNONENONE

The amount assessed and payable to tax authorities. It is the total of the VAT, use, and sales taxes (PST).

cDomesticEntrywMultCurrencyDMCDcharNONENONE

An entry in this field indicates a domestic voucher or invoice was entered with a multi-currency distribution.

cCurrencyModeCRRMcharNONENONE

An option that specifies whether the system displays amounts in the domestic or foreign currency. On  The system displays amounts in the 
foreign currency of the transaction. Off  The system displays amounts in the domestic currency of the transaction.

szCurrencyCodeFromCRCDcharNONENONE

A code that identifies the currency of a transaction. 

mnCurrencyConverRateovCRRMATH_NUMERICNONENONE

A number (exchange rate) that a foreign currency amount is multiplied by to calculate a domestic currency amount.  The number in this field 
can have a maximum of seven decimal positions. If more are entered, the system adjusts to the nearest seven decimal positions. 

mnAmountCurrencyACRMATH_NUMERICNONENONE

The foreign currency amount entered on the transaction. If the Multi-Currency Conversion option on the General Accounting constants is set 
to Y, the foreign amount is multiplied by the exchange rate to arrive at the domestic amount. If the Multi-Currency Conversion option is set to Z, 
the foreign amount is divided by the exchange rate.

mnAmountForeignOpenFAPMATH_NUMERICNONENONE

The unpaid foreign amount of a transaction.

mnForeignDiscountAvailCDSMATH_NUMERICNONENONE

The foreign amount of the discount available as opposed to the amount of the discount actually taken.

mnForeignDiscountTakenCDSAMATH_NUMERICNONENONE

The amount of the discount, expressed in the foreign currency of the transaction, that was taken or granted during the application of a 
payment to an open invoice or voucher.

mnForeignTaxableAmountCTXAMATH_NUMERICNONENONE

That portion of the sale that is subject to tax in foreign currency.

mnForeignTaxExemptCTXNMATH_NUMERICNONENONE

The foreign amount associated with this document which is not subject to sales, use or value-added tax due to the nature of the transaction 
and not due to the nature of the parties to the transaction (as in tax exemption).

mnForeignTaxAmountCTAMMATH_NUMERICNONENONE

The tax amount in foreign currency.  This can be the sales, use, or VAT tax. 

szTaxArea1TXA1charNONENONE

A code that identifies a tax or geographic area that has common tax rates and tax authorities. The system validates the code you enter 
against the Tax Areas table (F4008). The system uses the tax rate area in conjunction with the tax explanation code and tax rules to calculate tax 
and G/L distribution amounts when you create an invoice or voucher.

szPaymentTermsCodePTCcharNONENONE

A code that specifies the terms of payment, including the percentage of discount available if the invoice is paid by the discount due date. 
Use a blank code to indicate the most frequently-used payment term. You define each type of payment term on the Payment Terms Revisions 
form. Examples of payment terms include: Blank Net 15 001      1/10 net 30 002      2/10 net 30 003      Due on the 10th day of every month 006     
Due upon receipt  This code prints on customer invoices.

jdDateDueDDJJDEDATENONENONE

In Accounts Receivable, the date that the net payment is due. In Accounts Payable, the date that the payment is due to receive a discount 
or, if no discount is offered, the net due date. The system calculates the due date based on the payment term entered, or you can enter it 
manually. If you enter a negative voucher or invoice (debit or credit memo), the system might use the G/L date as the due date regardless of the 
payment term entered. A processing option in the master business function (P0400047 for vouchers and P03B0011 for invoices) controls how 
the system calculates the due date for debit and credit memos.

jdDateDiscountDueJulianDDNJJDEDATENONENONE

In the Accounts Receivable system, the date that the invoice must be paid to receive the discount. The system calculates the discount due 
date based on the payment term. If the payment term does not specify a discount, the system completes this field with the net due date. In the 
Accounts Payable system, the date that the voucher is due.

szUserIdUSERcharNONENONE

The code that identifies a user profile.

jdDateUpdatedUPMJJDEDATENONENONE

The date that specifies the last update to the file record.

mnTimeLastUpdatedUPMTMATH_NUMERICNONENONE

The time that specifies when the program executed the last update to this record.

szWorkStationIdJOBNcharNONENONE

The code that identifies the work station ID that executed a particular job.

szNameRemarkRMKcharNONENONE

A generic field that you use for a remark, description, name, or address.

szGLOffsetGLCcharNONENONE

A code that determines the trade account that the system uses as the offset when you post invoices or vouchers. The system concatenates 
the value that you enter to the AAI item RC (for Accounts Receivable) or PC (for Accounts Payable) to locate the trade account. For 
example, if you enter TRAD, the system searches for the AAI item RCTRAD (for receivables) or PCTRAD (for payables).  You can assign up to four 
alphanumeric characters to represent the G/L offset or you can assign the three-character currency code (if you enter transactions in a 
multicurrency environment). You must, however, set up the corresponding AAI item for the system to use; otherwise, the system ignores the G/L 
offset and uses the account that is set up for PC or RC for the company specified.  If you set up a default value in the G/L Offset field of the 
customer or supplier record, the system uses the value during transaction entry unless you override it.  Note: Do not use code 9999. It is reserved for 
the post program and indicates that offsets should not be created.

szTaxExplanationCode1EXR1charNONENONE

A hard-coded user defined code (00/EX) that controls the algorithm that the system uses to calculate tax and G/L distribution amounts. The 
system uses the tax explanation code in conjunction with the tax rate area and tax rules to determine how the tax is calculated. Each 
transaction pay item can be defined with a different tax explanation code.

jdDateServiceTaxDSVJJDEDATENONENONE

A date that indicates when you purchased goods or services, or when you incurred a tax liability. 

mnIdentifierShortItemITMMATH_NUMERICNONENONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

szBusinessUnitMCUcharNONENONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

jdOriginalDateNetDueODDJJDEDATENONENONE

On a posted invoice, when the due date is changed, a F03B112 record will be written to store and track the original due date for cash 
management.

mnAmountOriginalGrossOAGMATH_NUMERICNONENONE

When an adjustment is made to an invoice, the gross amount of the pay item before the adjustment.  The original gross amount is stored in 
the F03B112.

szAdjustmentReasonCodeAREcharNONENONE

A code that identifies the reason that an invoice pay item was voided.

szCurrencyCodeBaseBCRCcharOPTNONE

A code that represents the currency of the company for a transaction. For a foreign currency transaction, this is the currency code of the 
domestic side of the transaction.

cARPostToCashManagementISTCcharOPTNONE

A code that specifies whether the transaction is included in the the A/R Statistical History table (F03B16). Valid values are: Blank The 
transaction is not included in the A/R Statistical History table.   1 The transaction is included in the A/R Statistical History table.

mnNonRecoverableTaxAmtNRTAMATH_NUMERICOPTNONE

The portion of the tax amount for which you cannot take a credit.

mnForeignNonRecoverableTaxFNRTMATH_NUMERICOPTNONE

The portion of the foreign tax amount for which you cannot take a credit. 

mnAmountToDistributeATADMATH_NUMERICOPTNONE

The amount of the transaction that must be posted to the general ledger for the transaction to balance. Depending on the tax information 
provided, the value of this field might be different from the gross or taxable amount of the transaction.  For example, if you enter a voucher for the 
taxable amount of 1000 CAD using tax explanation C (sales plus VAT), and the tax rate area is set up for 7% VAT and 3% Sales, the system 
calculates the amount to distribute as 1, 030 CAD (1000 + 30).

mnForeignAmtToDistributeCTADMATH_NUMERICOPTNONE

For a journal entry with VAT, this represents the amount to be expensed in foreign currency.

Related Functions

None

Related Tables

F03B112 Invoice Revisions