F03B14CreateF03B14RecordGL

F03B14 - Create F03B14 Record - GL Entry

Major Business Rule

Object Name: B03B0146

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose


This business function is to create the GL side of F03B14 record.  These records are used by the post 
program to make the GL entry.  This is used to write the draft (D type record).



Setup Notes and Prerequisites


This function is used in P03B602, R03B671, R03B672 and R03B680.

Special Logic




Technical Specification





Parameters:


Data ItemData Structure DescriptionI/OReqNotes
PYID mnPaymentIDIYESPart of key to F03B14 File.
CKNUszDraftNumberIYES Draft Number

DMTJjdDateMatchingChecOrIYESDraft Date

COszCompanyIYESCompany

DGJjdDateForGLandVoucherJULIAIYESDraft GL Date

ICUmnBatchNumberIYESBatch Number

ICUTszBatchTypeIYESBatch Type

DICJjdBatchJulian IYESBatch Date

AIDszFromAccountIdIYESAccount Id from

DDSTcfromDraftStatusIYESDraft Status from

AAmnFrom AmountIYESDraft Amount from

AIDszToAccountIdIYESAccount Id to

DDSTctoDraftStatusIYESDraft Status to

AAmnToAmountIYESDraft Amount To

MCUszCostCenterIYESCost Center

BCRCszCurrencyCodeBaseIYESBase Currency Code

AM2cCurrencyModeIYESCurrency Mode

PIDszProgram IdIYESProgram Id

TAAPmnTransactionPaymntAmountIYESTransaction Payment Amount

TCRCszTransactionCurrencyCodeIYESTransactionCurrencyCode

CRR1mnTriangulationLeg1IYESTriangulation Leg 1

CRR2mnTriangulationLeg2IYESTriangulation Leg 2

CRCMcCurrencyConversionMethodIYESCurrency Conversion Method

CRRmnCurrencyConverRateOvIYESCurrency Conversion Rate





Related Tables 


F03B14Receipts Detail File.

Related Business Functions


B03B0147F03B14GetNextFileLineIdentifier

B9800100Get Audit Information

X0903Fiscal Date Edits

B0000027Currency Conversion Foreign and Domestic



Processing 

Copy all the passed in parameters to the F03B14 file structure.
Retrieve fiscal period century and year.

Retrieve the audit information.

Get the Next File Line Identifier.

Populate the appropriate F03B14 fields.

Insert the F03B14 record.

If the from account id, from draft status and from amount are given create the reversing entry for 

the previous draft status.

If there is an error inserting records set an error and close table.

Close table.




Data Structure

D03B0146 - F03B014 - Create F03B14 Record - GL Entry

Parameters:

Data ItemData Structure DescriptionI/OReqNotes
PYID mnPaymentIDIYESPart of key to F03B14                           
                            File.

CKNUszDraftNumberIYES Draft Number

DMTJjdDateMatchingChecOrIYESDraft Date

COszCompanyIYESCompany

DGJjdDateForGLandVoucherJULIAIYESDraft GL Date

ICUmnBatchNumberIYESBatch Number

ICUTszBatchTypeIYESBatch Type

DICJjdBatchJulian IYESBatch Date

AIDszFromAccountIdIYESAccount Id from

DDSTcfromDraftStatusIYESDraft Status from

AAmnFrom AmountIYESDraft Amount from

AIDszToAccountIdIYESAccount Id to

DDSTctoDraftStatusIYESDraft Status to

AAmnToAmountIYESDraft Amount To

MCUszCostCenterIYESCost Center

BCRCszCurrencyCodeBaseIYESBase Currency Code

AM2cCurrencyModeIYESCurrency Mode

PIDszProgram IdIYESProgram Id

TAAPmnTransactionPaymntAmountIYESTransaction Payment                             

                          Amount

TCRCszTransactionCurrencyCodeIYESTransactionCurrencyCode

CRR1mnTriangulationLeg1IYESTriangulation Leg 1

CRR2mnTriangulationLeg2IYESTriangulation Leg 2

CRCMcCurrencyConversionMethodIYESCurrency Conversion                             

                                                                                Method

CRRmnCurrencyConverRateOvIYESCurrency Conversion                             

                          Rate



^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnPaymentIDPYIDMATH_NUMERICNONENONE

A number that the system assigns from Next Numbers to identify and track payment records.

szDraftNumberCKNUcharNONENONE

For Auto Bank Statement, this code identifies the payment/receipt or reference number.  NOTE:   Bank Statement Detail section:  The 
payment/receipt number was originally stored in the DOCM field of F09617.  Due to size limitations of DOCM, it is now also stored in CKNU.  For 
display purposes, the data item used for payment/receipt number on this grid is CKNU. Account Ledger section:  This reference number was 
originally stored in the R1 field of F0911.  Due to size limitations, it is now also stored in CKNU. For display purposes, the data item used for 
Reference1 on this grid is CKNU. 

jdDateMatchingCheckOrDMTJJDEDATENONENONE

The date on a payment or the date on which a receipt was entered.  In Accounts Payable, the manual payment date and the general ledger 
date that the system uses when it posts payments. The system also uses this date to retrieve the exchange rate for foreign payments from 
the Currency Exchange Rates table (F0015).  In Accounts Receivable, the date on the check or the date that you enter the receipt into the 
system. The receipt date is used for information and reporting purposes only.

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.

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.

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.

jdDateBatchJulianDICJJDEDATENONENONE

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

szFromAccountIdAIDcharNONENONE

A number that the system assigns to each general ledger account in the Account Master table (F0901) to uniquely identify it. 

cFromDraftStatusDDSTcharNONENONE

A code that the system assigns to draft records (F03B13 and F03B14) to indicate their progress during the collection process. Valid values 
are: 4 Accepted 3 Remitted - Cash or Discount 2 Remitted - Contingent 0  Collected

mnFromAmountAAMATH_NUMERICNONENONE

A number that identifies the amount that the system will add to the account balance of the associated account number.  Enter credits with a 
minus sign (-) either before or after the amount. 

szToAccountIdAIDcharNONENONE

A number that the system assigns to each general ledger account in the Account Master table (F0901) to uniquely identify it. 

cToDraftStatusDDSTcharNONENONE

A code that the system assigns to draft records (F03B13 and F03B14) to indicate their progress during the collection process. Valid values 
are: 4 Accepted 3 Remitted - Cash or Discount 2 Remitted - Contingent 0  Collected

mnToAmountAAMATH_NUMERICNONENONE

A number that identifies the amount that the system will add to the account balance of the associated account number.  Enter credits with a 
minus sign (-) either before or after the amount. 

szCostCenterMCUcharNONENONE

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.

szCurrencyCodeBaseBCRCcharNONENONE

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.

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.

szProgramIdPIDcharNONENONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

mnTransactionPaymntAmountTAAPMATH_NUMERICOPTNONE

The amount of the receipt expressed in the transaction (foreign) currency.

szTransactionCurrencyCodeTCRCcharOPTNONE

A code that represents the currency of a receipt when it is different from the base currency of the company for which the receipt was entered.

mnTriangulationLeg1CRR1MATH_NUMERICOPTNONE

The exchange rate from the foreign currency of the invoice to the triangulation currency (leg 1). This rate applies when you use triangulation 
to calculate the exchange rate for a receipt.

mnTriangulationLeg2CRR2MATH_NUMERICOPTNONE

The exchange rate from the triangulation currency to the domestic currency (leg 2). This rate applies when you use triangulation to calculate 
the exchange rate for a receipt.

cCurrencyConversionMethodCRCMcharOPTNONE

A value that specifies which method to use when converting from one currency to another. Valid values are:  Y  Multiplier method. The 
system multiplies the foreign amount by the multiplier exchange rate to calculate the domestic amount. Z Divisor method. The system divides the 
foreign amount by the divisor exchange rate to calculate the domestic amount.

mnCurrencyConverRateOvCRRMATH_NUMERICOPTNONE

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. 

Related Functions

B0000027 CurrencyConvForAndDom

Related Tables

None