RetrieveAmountsFunction

Retrieve Amounts Function (F4812)

Minor Business Rule

Object Name: N48S0601

Parent DLL: CCRIN

Location: Client/Server

Language: NER

Data Structure

D48S0601 - Retrieve Amounts Data Structure

Parameter NameData ItemData TypeReq/OptI/O/Both
cAmountSource_R04PR04PcharOPTINPUT

Use this parameter to enter a code that specifies the inclusion of various amounts within the invoice. You can access these amounts on any 
detail or total section. Note that these codes are currency-sensitive; you can print the foreign amounts and/or the domestic amounts on the 
same invoice, or let the currency mode setting determine the amount to print. Valid values are:    1   Units (Currency Mode 
Determined)    2   Unit Price (Currency Mode Determined)    3   Cost Amount (Currency Mode Determined)    4   Revenue Total Amount (Currency 
Mode Determined)    5   Invoice Total Amount (Currency Mode Determined)    6   Invoice Taxable Amount (Currency Mode Determined)    7   
Invoice Tax Amount (Currency Mode Determined)    8   Invoice Discount Available (Currency Mode Determined)    A Unit Price (Domestic)    B Cost 
Amount (Domestic)    C Revenue Total Amount (Domestic)    D Invoice Total Amount (Domestic)    E Invoice Taxable Amount (Domestic)    F 
Invoice Tax Amount (Domestic)    G Invoice Discount Available (Domestic)    H Unit Price (Foreign)    I Cost Amount (Foreign)    J Revenue Total 
Amount (Foreign)    K Invoice Total Amount (Foreign)    L Invoice Taxable Amount (Foreign)    M Invoice Tax Amount (Foreign)    N Invoice 
Discount Available (Foreign)

cPrintLaborOrBurden_R08PR08PcharOPTINPUT

If the amounts to be printed represent a summary of detail lines, use this value to print the labor or burden component contained within the 
total. Valid values are:    Blank Print the total billing amount.    1       Print only the part of the total which originated from labor costs.    2       Print 
only the part of the total which originated from burden costs.

szComponentCodeToRetrieve_R16PR16PcharOPTINPUT

A code that specifies whether to print amounts which are associated with specific Component Codes.  Values valid are:    Blank Print 
amounts associated with base billing transactions only.    Component Code Print amounts associated with the specified component code only.    
*ALL Print the amounts associated with both the base billing transaction and it's components.    *CMP Print the amounts for ALL components, 
excluding the base billing transaction.

mnAccumRegisterNumb_R25PR25PMATH_NUMERICOPTINPUT

A value used to identify a register for storing retrieval code information. You can set up to 99 user defined registers. You can define 
additional retrieval references to print, or calculate and print, the contents of the register. For example, you could use this field to calculate grand 
totals. Valid values are: 1-99

cCurrencyMode_CRRMCRRMcharOPTINPUT

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.

jdDtForGLAndVouch1_DGLDGLJDEDATEOPTINPUT

A date that identifies the financial period to which the transaction is to be posted.  The company constants specify the date range for each 
financial period. You can have as many as 14 periods. Generally, period 14 is used for audit adjustments. The system validates this field for 
PBCO (posted before cutoff), PYEB (prior year ending balance), PACO (post after cutoff), and WACO (post way after cutoff) messages.

mnParentSequenceNbr_PRSQPRSQMATH_NUMERICOPTINPUT

A number that provides an audit trail to the original transaction of a billing detail transaction. The system initially assigns 000 as the parent 
sequence number. The number remains 000 unless you split the transaction. In this case,the sequence number (SBSQ) of the original 
transaction becomes the parent sequence number (PRSQ) for the resulting transactions.

mnSequenceServiceBilling_SBSQSBSQMATH_NUMERICOPTINPUT

A number that provides an audit trail for the billing detail transactions related to the same billing control ID. The system initially assigns 001 
as the sequence number (SBSQ) of the original transaction. If you split a transaction, the system increments the number to the next available 
sequence numbers (SBSQ) for the resulting transactions.

mnSecondarySequence_SCSQSCSQMATH_NUMERICOPTINPUT

A number you can use to track the changes applied to a billing detail transaction. The system initially assigns 001 as the secondary 
sequence number (SCSQ). Each time you modify the billing detail transaction, the system increases the number by 1.

mnBillingControlId_BCIBCIMATH_NUMERICOPTINPUT

A unique number that the system assigns to each billing record. The system assigns the number from the Next Numbers - Automatic table 
(F0002) for system 15, line 2 (Billing Control).

mnSplitLink_SLNKSLNKMATH_NUMERICOPTINPUT

The split link field ties component records to their base record when a transaction split occurs.

mnComponentLink_CLNKCLNKMATH_NUMERICOPTINPUT

A code that attaches the component record to its base work file record.

szComponentCode_CCODCCODcharOPTINPUT

A component code identifies a provisional burden that is accounted for at the billing detail transaction level.

mnUnits_UUMATH_NUMERICOPTINPUT

The quantity of something that is identified by a unit of measure. For example, it can be the number of barrels, boxes, cubic yards, gallons, 
hours, and so on.

mnUnitPricePerPrimary_PRICPRICMATH_NUMERICOPTINPUT

A base or default price that is used with multipliers from the pricing rules to develop discounted prices. If no formula applies to an item or no 
discounts apply to a customer, the system uses this price without adjustments.

mnUnitPricePerPrimaryFor_PRIFPRIFMATH_NUMERICOPTINPUT

This field represents the Foreign Unit price.

mnAmount_AAAAMATH_NUMERICOPTINPUT

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. 

mnAmoutForeign_AA2AA2MATH_NUMERICOPTINPUT

Amount.

mnTotalAmountInvoiced_ITOLITOLMATH_NUMERICOPTINPUT

The invoice amount for a billing detail transaction.

mnForeignInvoiceAmount_CITLCITLMATH_NUMERICOPTINPUT

The total amount of the invoice in foreign currency.

mnInvoiceTaxable_ITXAITXAMATH_NUMERICOPTINPUT

The portion of the invoice amount that is subject to tax.

mnInvoiceTaxableForeign_CITACITAMATH_NUMERICOPTINPUT

The portion of the foreign invoice amount that is subject to tax.

mnInvoiceTaxAmount_ITAMITAMMATH_NUMERICOPTINPUT

The tax amount in the invoice.  This can be either the sales, use or VAT tax.

mnInvoiceTaxForeign_CITXCITXMATH_NUMERICOPTINPUT

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

mnInvoiceDiscountAvail_IDSCIDSCMATH_NUMERICOPTINPUT

The amount of the discount available, as opposed to the amount of the discount actually taken.  The discount calculated is based on the 
invoice amount rather than the revenue amount.

mnInvoiceDiscountForeign_CIDSCIDSMATH_NUMERICOPTINPUT

The foreign currency amount of the discount available, as opposed to the amount of the discount actually taken.  The discount calculated is 
based on the foreign invoice amount.

mnTotalAmountBilled_BTOLBTOLMATH_NUMERICOPTINPUT

The revenue amount for a billing detail transaction.

mnTotalAmountBilledFor_FTOLFTOLMATH_NUMERICOPTINPUT

The total amount of the invoice or bill.  The total of the individual line items must match this amount.

mnAddressNumber_AN8AN8MATH_NUMERICOPTINPUT

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

mnPayrollTransactionNo_PRTRPRTRMATH_NUMERICOPTINPUT

A unique number that the system assigns to each timecard. You can use this field in the Time Entry By Job program to retrieve a specific 
timecard for display. This field is also used to tie a timecard to each Actual Burden audit record created for the timecard during the Actual 
Burden Journaling process.

cPrintedFlag_PRTFPRTFcharOPTINPUT

This code identifies whether a particular transaction has been printed. If the transaction has not been printed, this field will be blank. If it has 
been printed, this field will contain the Invoice Type value (for example, "D" for draft or "F" for final) of the Invoice Format on which the 
transaction was last printed.

szCurrencyCodeFrom_CRCDCRCDcharOPTINPUT

A code that identifies the currency of a transaction. 

szCurrencyCodeOrigin_CRCFCRCFcharOPTINPUT

The currency code of the insured amount.

cPrintForeignOrDomestic_PFODPFODcharOPTINPUT

A code that specifies which type of currency values are printed. Valid values are:    F Print the foreign currency values.    D Print the domestic 
currency values.    Blank Print foreign or domestic values based on the setting of the Currency Mode field.

mnNumericField_MATH01MATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

szErrorCode_ERNOERNOcharOPTOUTPUT

The error number assigned by the JDE edit/update programs designating the exact error that occured.

szDocumentType_DCTDCTcharOPTINPUT

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 

cFooterSection_FTSCFTSCcharOPTINPUT

A hidden flag, embedded in the Invoice Print with Smart Fields program (R48507), that indicates whether a section is a footer or non-footer 
section. These values are passed into the smart fields when you design a version of the Invoice Print with Smart Fields program to determine 
whether the logic should use the Business View field or Previous Business View field. Valid values are: Blank Non-footer section. 1 Footer 
section.

cPrevCurrencyMode_CRRMCRRMcharOPTINPUT

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.

jdPrevDtForGLAndVouch1_DGLDGLJDEDATEOPTINPUT

A date that identifies the financial period to which the transaction is to be posted.  The company constants specify the date range for each 
financial period. You can have as many as 14 periods. Generally, period 14 is used for audit adjustments. The system validates this field for 
PBCO (posted before cutoff), PYEB (prior year ending balance), PACO (post after cutoff), and WACO (post way after cutoff) messages.

mnPrevParentSequenceNbr_PRSQPRSQMATH_NUMERICOPTINPUT

A number that provides an audit trail to the original transaction of a billing detail transaction. The system initially assigns 000 as the parent 
sequence number. The number remains 000 unless you split the transaction. In this case,the sequence number (SBSQ) of the original 
transaction becomes the parent sequence number (PRSQ) for the resulting transactions.

mnPrevSeqNbrSrvcBilling_SBSQSBSQMATH_NUMERICOPTINPUT

A number that provides an audit trail for the billing detail transactions related to the same billing control ID. The system initially assigns 001 
as the sequence number (SBSQ) of the original transaction. If you split a transaction, the system increments the number to the next available 
sequence numbers (SBSQ) for the resulting transactions.

mnPrevSecondarySequence_SCSQSCSQMATH_NUMERICOPTINPUT

A number you can use to track the changes applied to a billing detail transaction. The system initially assigns 001 as the secondary 
sequence number (SCSQ). Each time you modify the billing detail transaction, the system increases the number by 1.

mnPrevBillingControlId_BCIBCIMATH_NUMERICOPTINPUT

A unique number that the system assigns to each billing record. The system assigns the number from the Next Numbers - Automatic table 
(F0002) for system 15, line 2 (Billing Control).

mnPrevSplitLink_SLNKSLNKMATH_NUMERICOPTINPUT

The split link field ties component records to their base record when a transaction split occurs.

mnPrevComponentLink_CLNKCLNKMATH_NUMERICOPTINPUT

A code that attaches the component record to its base work file record.

szPrevComponentCode_CCODCCODcharOPTINPUT

A component code identifies a provisional burden that is accounted for at the billing detail transaction level.

mnPrevUnits_UUMATH_NUMERICOPTINPUT

The quantity of something that is identified by a unit of measure. For example, it can be the number of barrels, boxes, cubic yards, gallons, 
hours, and so on.

mnPrevUnitPricePerPrimary_PRICPRICMATH_NUMERICOPTINPUT

A base or default price that is used with multipliers from the pricing rules to develop discounted prices. If no formula applies to an item or no 
discounts apply to a customer, the system uses this price without adjustments.

mnPrevUnitPricePerPrimFor_PRIFPRIFMATH_NUMERICOPTINPUT

This field represents the Foreign Unit price.

mnPrevAmountField_AAAAMATH_NUMERICOPTINPUT

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. 

mnPrevAmountAa2_AA2AA2MATH_NUMERICOPTINPUT

Amount.

mnPrevTotalAmountInvoiced_ITOLITOLMATH_NUMERICOPTINPUT

The invoice amount for a billing detail transaction.

mnPrevForInvoiceAmount_CITLCITLMATH_NUMERICOPTINPUT

The total amount of the invoice in foreign currency.

mnPrevInvoiceTaxable_ITXAITXAMATH_NUMERICOPTINPUT

The portion of the invoice amount that is subject to tax.

mnPrevInvoiceTaxableFor_CITACITAMATH_NUMERICOPTINPUT

The portion of the foreign invoice amount that is subject to tax.

mnPrevInvoiceTaxAmount_ITAMITAMMATH_NUMERICOPTINPUT

The tax amount in the invoice.  This can be either the sales, use or VAT tax.

mnPrevInvoiceTaxForeign_CITXCITXMATH_NUMERICOPTINPUT

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

mnPrevInvDiscountAvail_IDSCIDSCMATH_NUMERICOPTINPUT

The amount of the discount available, as opposed to the amount of the discount actually taken.  The discount calculated is based on the 
invoice amount rather than the revenue amount.

mnPrevInvDiscountForeign_CIDSCIDSMATH_NUMERICOPTINPUT

The foreign currency amount of the discount available, as opposed to the amount of the discount actually taken.  The discount calculated is 
based on the foreign invoice amount.

mnPrevTotalAmtBilled_BTOLBTOLMATH_NUMERICOPTINPUT

The revenue amount for a billing detail transaction.

mnPrevTotalAmtBilledFor_FTOLFTOLMATH_NUMERICOPTINPUT

The total amount of the invoice or bill.  The total of the individual line items must match this amount.

mnPrevAddressNumber_AN8AN8MATH_NUMERICOPTINPUT

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

mnPrevPayrollTransNo_PRTRPRTRMATH_NUMERICOPTINPUT

A unique number that the system assigns to each timecard. You can use this field in the Time Entry By Job program to retrieve a specific 
timecard for display. This field is also used to tie a timecard to each Actual Burden audit record created for the timecard during the Actual 
Burden Journaling process.

cPrevPrintedFlag_PRTFPRTFcharOPTINPUT

This code identifies whether a particular transaction has been printed. If the transaction has not been printed, this field will be blank. If it has 
been printed, this field will contain the Invoice Type value (for example, "D" for draft or "F" for final) of the Invoice Format on which the 
transaction was last printed.

szPrevCurrencyCodeFrom_CRCDCRCDcharOPTINPUT

A code that identifies the currency of a transaction. 

szPrevCurrencyCodeOrigin_CRCFCRCFcharOPTINPUT

The currency code of the insured amount.

szPrevDocumentType_DCTDCTcharOPTINPUT

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 

Related Functions

None

Related Tables

None