UpdateGLCardexandCostCT

LC - Update GL, Cardex and Cost Difference CT - BRA - 43

Minor Business Rule

Object Name: B7602080

Parent DLL: CLOC

Location: Client/Server

Language: C

Data Structure

D7602080 - LC - Update GL, Cardex and Cost CT - Brazil           - 43B

Parameter

Item        Data Structure DescriptionI/ORequiredNotes

BNNFmnNotaFiscalNumberMerchIFrom selected merchandise NF

BSERszNotaFiscalSeriesMerchIYFrom selected merchandise NF

DCTszDocumentTypeNFIYFrom selected merchandise NF

N001mnNextNumber          IYFrom selected merchandise NF

UKIDmnUniqueKeyId                IYFrom selected merchandise NF

BNNFmnNotaFiscalNumberFreightIYFrom freight NF

BSERszNotaFiscalSeriesFreightIYFrom freight NF

DCTszDocumentTypeNFIYFrom freight NF

KCOOszOrderCompany                IYFrom F7611B

COszCompany                IYFrom F7611B

MCUszBusinessUnit                IYFrom F7611B

ITMmnItemNumber                IYFrom F7611B

LITMszSecondItemNumberIYFrom F7611B

AITMszThirdItemNumber                IYFrom F7611B

UOMszUnitOfMeasurePrimaryIYFrom F7611B

UOM3szUnitOfMeasurePO                IYFrom F7611B

LOTLot                                IYFrom F7611B

LOCLocation                                IYFrom F7611B

EV01cCurrencyConversionFlagIYIf Multi-Currency on

CRRmnConversionRate                IYIf Multi-Currency on. From current date.

CRCDszCurrencyCodeFrom

CRYRcCurrencyConverYNARIYCurrency Conv. Flag (Y, Z, N)

USERszUserId              IYFrom Audit Information

PIDszProgramId       IYFrom Audit Information

TDAYmnTimeOfDay       IYFrom Audit Information

UPMJjdDateUpdated       IYFrom Audit Information

JOBNszWorkStationId       IYFrom Audit Information

EV01cReturnError                OYif 0, no error; 1, error

ICUmnBatchNumber       I/OYDisplay in screen

GLCszGlClassVendor       IYFrom Supplier Master; for GL Entries, AAI Table 4390

GLCszGlClassFreight       IYFrom GetLineTypeConstants, key =:Line Type from OP

GLCszGlClassInsurance       IYFrom GetLineTypeConstants, key =:Line Type from OP

GLCszGlClassExpenses       IYFrom GetLineTypeConstants, key =:Line Type from OP

IVIcInvInterfaceFreightIYFrom GetLineTypeConstants, key =:Line Type from OP

IVIcInvInterfaceInsuranceIYFrom GetLineTypeConstants, key =:Line Type from OP

IVIcInvInterfaceExpensesIYFrom GetLineTypeConstants, key =:Line Type from OP

GLIcGLInterfaceFreight       IYFrom GetLineTypeConstants, key =:Line Type from OP

GLIcGLInterfaceInsuranceIYFrom GetLineTypeConstants, key =:Line Type from OP

GLIcGLInterfaceExpensesIYFrom GetLineTypeConstants, key =:Line Type from OP

DCTszDocTypeCadexReg_LCIYFrom Proc. Options; regular situation.

UNCSmnUnitCostFreight                IYCalculated in calling application

UNCSmnUnitCostInsuranceIYCalculated in calling application

UNCSmnUnitCostExpensesIYCalculated in calling application

UORGmnTransactionQty    IYFrom Nota Fiscal Item quantity



^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnNotaFiscalNumberMercBNNFMATH_NUMERICOPTINPUT

A six-character number that identifies a nota fiscal. The number consists of the nota fiscal number and the nota fiscal series.  

szNotaFiscalSeriesMercBSERcharOPTINPUT

A two-character number that along with the nota fiscal number, identifies a nota fiscal. The Nota Fiscal Series field is the second key that the 
system uses to access a specific nota fiscal.

szDocumentTypeNFMercDCTcharOPTINPUT

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 

mnNextNumber001MercN001MATH_NUMERICOPTINPUT

The number that the system will assign next. The system can use next numbers for voucher numbers, invoice numbers, journal entry 
numbers, employee numbers, address numbers, contract numbers, and sequential W-2s. You must use the next number types already 
established unless you provide custom programming.

mnUniqueKeyIDInternalUKIDMATH_NUMERICOPTINPUT

This field is a unique number used to identify a record in a file.

mnNotaFiscalNumberFrtBNNFMATH_NUMERICOPTINPUT

A six-character number that identifies a nota fiscal. The number consists of the nota fiscal number and the nota fiscal series.  

szNotaFiscalSeriesFrtBSERcharOPTINPUT

A two-character number that along with the nota fiscal number, identifies a nota fiscal. The Nota Fiscal Series field is the second key that the 
system uses to access a specific nota fiscal.

szDocumentTypeFrtDCTcharOPTINPUT

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 

szCompanyCOcharOPTINPUT

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.

szCostCenterMCUcharOPTINPUT

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.

mnIdentifierShortItemITMMATH_NUMERICOPTINPUT

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

cCurrencyConversionFlagEV01charOPTINPUT

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

mnCurrencyConverRateOvCRRMATH_NUMERICOPTINPUT

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. 

szCurrencyCodeFromCRCDcharOPTINPUT

A code that identifies the currency of a transaction. 

cCurrencyConverYNARCRYRcharOPTINPUT

A code that specifies whether to use multi-currency accounting, and the method of multi-currency accounting to use: Codes are:    N Do not 
use multi-currency accounting. Use if you enter transactions in only one currency for all companies. The multi-currency fields will not appear 
on forms. The system supplies a value of N if you do not enter a value.    Y Activate multi-currency accounting and use multipliers to convert 
currency. The system multiplies the foreign amount by the exchange rate to calculate the domestic amount.    Z Activate multi-currency 
accounting and use divisors to convert currency. The system divides the foreign amount by the exchange rate to calculate the domestic amount.

szUserIdUSERcharOPTINPUT

The code that identifies a user profile.

szProgramIdPIDcharOPTINPUT

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.

mnTimeOfDayTDAYMATH_NUMERICOPTINPUT

The computer clock in hours:minutes:seconds.

jdDateUpdatedUPMJJDEDATEOPTINPUT

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

szWorkStationIdJOBNcharOPTINPUT

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

cReturnErrorEV01charOPTOUTPUT

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

mnBatchNumberICUMATH_NUMERICOPTBOTH

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.

szGlClassVendorGLCcharOPTINPUT

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.

szGlClassFreightGLCcharOPTINPUT

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.

szGlClassInsuranceGLCcharOPTINPUT

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.

szGlClassExpensesGLCcharOPTINPUT

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.

cInvInterfaceFreightIVIcharOPTINPUT

A code that identifies the type of interface to the Inventory Management system. Valid values are:    Y The dollar or unit value of any activity 
containing this line type will be reflected in inventory. The system also edits the item that you enter to ensure that it is a valid item. Y is the 
default.    A The system recognizes the number that you enter as a G/L account number. The system uses this code in purchasing only.    B The 
system performs edits when using format 4 in purchase order entry.        The system retrieves price data from the inventory tables, but does not 
update the quantity on the purchase order. This code is valid only when you have set the G/L Interface field to Y (yes). Budget checking is 
fully functional when you use this interface code.    D The item in this line is an inventory item that will not affect availability or quantities.    N The 
item is not an inventory item. To verify whether the item exists in the Item Master file, use Inventory Interface N in conjunction with the flag, Edit 
the Item Master for Non-Stock Items.

cInvInterfaceInsuranceIVIcharOPTINPUT

A code that identifies the type of interface to the Inventory Management system. Valid values are:    Y The dollar or unit value of any activity 
containing this line type will be reflected in inventory. The system also edits the item that you enter to ensure that it is a valid item. Y is the 
default.    A The system recognizes the number that you enter as a G/L account number. The system uses this code in purchasing only.    B The 
system performs edits when using format 4 in purchase order entry.        The system retrieves price data from the inventory tables, but does not 
update the quantity on the purchase order. This code is valid only when you have set the G/L Interface field to Y (yes). Budget checking is 
fully functional when you use this interface code.    D The item in this line is an inventory item that will not affect availability or quantities.    N The 
item is not an inventory item. To verify whether the item exists in the Item Master file, use Inventory Interface N in conjunction with the flag, Edit 
the Item Master for Non-Stock Items.

cInvInterfaceExpensesIVIcharOPTINPUT

A code that identifies the type of interface to the Inventory Management system. Valid values are:    Y The dollar or unit value of any activity 
containing this line type will be reflected in inventory. The system also edits the item that you enter to ensure that it is a valid item. Y is the 
default.    A The system recognizes the number that you enter as a G/L account number. The system uses this code in purchasing only.    B The 
system performs edits when using format 4 in purchase order entry.        The system retrieves price data from the inventory tables, but does not 
update the quantity on the purchase order. This code is valid only when you have set the G/L Interface field to Y (yes). Budget checking is 
fully functional when you use this interface code.    D The item in this line is an inventory item that will not affect availability or quantities.    N The 
item is not an inventory item. To verify whether the item exists in the Item Master file, use Inventory Interface N in conjunction with the flag, Edit 
the Item Master for Non-Stock Items.

cGlInterfaceFreightGLIcharOPTINPUT

A code that indicates whether the system reflects the monetary amount or unit value of any activity containing this order line type in the 
general ledger. For World, valid values are:    Y The system reflects the monetary amount or unit value in the general ledger.    N The system does 
not reflect the monetary amount or unit value in the general ledger. For OneWorld, a checkmark indicates that the system reflects the 
monetary amount or unit value of any activity containing this order line type in the general ledger.

cGlInterfaceInsuranceGLIcharOPTINPUT

A code that indicates whether the system reflects the monetary amount or unit value of any activity containing this order line type in the 
general ledger. For World, valid values are:    Y The system reflects the monetary amount or unit value in the general ledger.    N The system does 
not reflect the monetary amount or unit value in the general ledger. For OneWorld, a checkmark indicates that the system reflects the 
monetary amount or unit value of any activity containing this order line type in the general ledger.

cGlInterfaceExpensesGLIcharOPTINPUT

A code that indicates whether the system reflects the monetary amount or unit value of any activity containing this order line type in the 
general ledger. For World, valid values are:    Y The system reflects the monetary amount or unit value in the general ledger.    N The system does 
not reflect the monetary amount or unit value in the general ledger. For OneWorld, a checkmark indicates that the system reflects the 
monetary amount or unit value of any activity containing this order line type in the general ledger.

szDocTypeCardexRegularDCTcharOPTINPUT

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 

mnAmtUnitCostFreightUNCSMATH_NUMERICOPTINPUT

The amount per unit, derived by dividing the total cost by the unit quantity.

mnAmtUnitCostInsuranceUNCSMATH_NUMERICOPTINPUT

The amount per unit, derived by dividing the total cost by the unit quantity.

mnAmtUnitCostExpensesUNCSMATH_NUMERICOPTINPUT

The amount per unit, derived by dividing the total cost by the unit quantity.

mnUnitsTransactionQtyUORGMATH_NUMERICOPTINPUT

The quantity of units affected by this transaction.

szAcctNoInputModeANIcharOPTINPUT

A value that identifies an account in the general ledger. Use one of the following formats to enter account numbers:   o  Standard account 
number (business unit.object.subsidiary or flex format).   o  Third G/L number (maximum of 25 digits).   o  Account ID number. The number is eight 
digits long.       o  Speed code, which is a two-character code that you concatenate to the AAI item SP. You can then enter the code instead of 
an account number. The first character of the account number indicates its format. You define the account format in the General Accounting 
constants. 

szLotLOTNcharOPTINPUT

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

szLocationLOCNcharOPTINPUT

The storage location from which goods will be moved.

mnAddNoVendorAN8VMATH_NUMERICOPTNONE

The address book number of the supplier or subcontractor.

cIsDifferenceEV02charOPTNONE

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

mnAmtUnitCostICMSFrtUNCSMATH_NUMERICOPTNONE

The amount per unit, derived by dividing the total cost by the unit quantity.

Related Functions

None

Related Tables

None