GetActiveCAIRange

Purchasing Data Extractor AP - RG1361 - 04 - 76A

Minor Business Rule

Object Name: B76A0408

Parent DLL: CLOC

Location: Client/Server

Language: C

Data Structure

D76A0408F - Get Range of CAI                                      - 76A

Parameter NameData ItemData TypeReq/OptI/O/Both
mnAddressNumberAN8MATH_NUMERICOPTINPUT

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

szDGITransactionDocumentTyADGIcharOPTINPUT

It's the legal document type given by DGI for documents.

szIssuePlaceArgentinaACEMcharOPTINPUT

Place where the invoice or the shipment note is printed.

jdDateInvoiceJDIVJJDEDATEOPTINPUT

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.

szAutoprinterACAIcharOPTOUTPUT

This is a number assigned to a supplier by legal authorities in Argentina, as stated in General Resolution 100. It is a unique ID given to all 
the companies that are autoprinters (that is, companies that print their own invoices). These companies must be registered and authorized by 
legal authorities to print their invoices. Once they are registered and authorized, they are given a CAI (autoprinter inscription number), which 
they must print on every invoice.

jdDateEffectiveJulian1EFTJJDEDATEOPTOUTPUT

The date when a transaction, contract, obligation, preference, or policy rule becomes effective.

jdDateExpirJulian1EFDJJDEDATEOPTOUTPUT

The date when a transaction, contract, obligation, preference, or policy rule ceases to be in effect.

cSuppressErrorMessageEV01charOPTINPUT

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

szErrorCodeDTAIcharOPTOUTPUT

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cCAIFoundYNEV01charOPTOUTPUT

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

Related Functions

B0000047 Retrieve Company Address
B0000083 Convert Math Numeric to String with Left Zero Pad
B0100019 Get Address Effective Date
B0100033 Get Effective Address
B7600440 Address Book - Tax Id Edit - ARG - 01 - 04 - 76A
B8000002 Delete All Rows from Table
B9800100 Get Audit Information
B9800181 Environment List Business Functions
N76A0494 Purchasing Tape File - F76A0494 - ARG -04 - 76A

Related Tables

F0018 Taxes
F0101 Address Book Master
F0411 Accounts Payable Ledger
F760101A A/B Tag Table - ARG - 04 - 76A
F760411A A/P Ledger Tag Table - ARG - 04 - 76A
F764008A Aditionals Tax Areas - ARG - 04 - 76A
F76A043 A/P Tag Table - CAI Storage - ARG - 04 - 76A
F76A0494 Purchasing Flat File - ARG - 04 - 76A
F76A411H AP Header Tag File - ARG - 04 - 76A
F76A411T F760411A A/P Tag File - ARG - 04 - 76A
RG1361_AccumAmountsAP

RG1361_AccumAmountsAP

Purchasing Data Extractor AP - RG1361 - 04 - 76A

Minor Business Rule

Object Name: B76A0408

Parent DLL: CLOC

Location: Client/Server

Language: C

Data Structure

D76A0408C - RG1361 - Accumulate Amounts - AP - ARG - 04           - 76A

Parameter NameData ItemData TypeReq/OptI/O/Both
szCompanyKeyKCOcharOPTINPUT

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.

szDocumentTypeDCTcharOPTINPUT

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 

mnDocVoucherInvoiceDOCMATH_NUMERICOPTINPUT

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.

szDocumentPayItemSFXcharOPTINPUT

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.

szDocumentTypeAdjustingDCTAcharOPTINPUT

A code in the Accounts Payable Ledger table (F0411) to designate a change in the gross amount of a voucher.  Valid value: PE.

jdGLDateDGLJDEDATEOPTINPUT

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.

szTaxAreaTXA1charOPTINPUT

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.

szTaxExplanationCodeEXR1charOPTINPUT

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.

mnAmountGrossAGMATH_NUMERICOPTINPUT

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.

mnAmountNonTaxableATXNMATH_NUMERICOPTINPUT

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.

mnAmountTaxableATXAMATH_NUMERICOPTINPUT

The amount on which taxes are assessed.

mnAmountTaxSTAMMATH_NUMERICOPTINPUT

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

idDataPtrGENLNGIDOPTINPUT

General purpose ID variable.

szErrorMessageDTAIcharOPTOUTPUT

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cSuppressErrorEV01charOPTINPUT

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

mnPayItemExtensionNumberSFXEMATH_NUMERICOPTINPUT

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.

Related Functions

B0000047 Retrieve Company Address
B0000083 Convert Math Numeric to String with Left Zero Pad
B0100019 Get Address Effective Date
B0100033 Get Effective Address
B7600440 Address Book - Tax Id Edit - ARG - 01 - 04 - 76A
B8000002 Delete All Rows from Table
B9800100 Get Audit Information
B9800181 Environment List Business Functions
N76A0494 Purchasing Tape File - F76A0494 - ARG -04 - 76A

Related Tables

F0018 Taxes
F0101 Address Book Master
F0411 Accounts Payable Ledger
F760101A A/B Tag Table - ARG - 04 - 76A
F760411A A/P Ledger Tag Table - ARG - 04 - 76A
F764008A Aditionals Tax Areas - ARG - 04 - 76A
F76A043 A/P Tag Table - CAI Storage - ARG - 04 - 76A
F76A0494 Purchasing Flat File - ARG - 04 - 76A
F76A411H AP Header Tag File - ARG - 04 - 76A
F76A411T F760411A A/P Tag File - ARG - 04 - 76A
RG1361_GenType1RecAP

RG1361_GenType1RecAP

Purchasing Data Extractor AP - RG1361 - 04 - 76A

Minor Business Rule

Object Name: B76A0408

Parent DLL: CLOC

Location: Client/Server

Language: C

Data Structure

D76A0408D - RG1361 - Generate Type 1 Rec - AP - 04                - 76A

Parameter NameData ItemData TypeReq/OptI/O/Both
szCompanyKeyKCOcharOPTINPUT

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.

szDocumentTypeDCTcharOPTINPUT

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 

mnDocVoucherInvoiceDOCMATH_NUMERICOPTINPUT

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.

idDataPtrGENLNGIDOPTINPUT

General purpose ID variable.

szErrorMessageDTAIcharOPTOUTPUT

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cSuppressErrorEV01charOPTINPUT

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

szRG1361PurchasingRecordARCPcharOPTNONE

RG 1361 Purchasing Record. 

nLineNumberINT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

Related Functions

B0000047 Retrieve Company Address
B0000083 Convert Math Numeric to String with Left Zero Pad
B0100019 Get Address Effective Date
B0100033 Get Effective Address
B7600440 Address Book - Tax Id Edit - ARG - 01 - 04 - 76A
B8000002 Delete All Rows from Table
B9800100 Get Audit Information
B9800181 Environment List Business Functions
N76A0494 Purchasing Tape File - F76A0494 - ARG -04 - 76A

Related Tables

F0018 Taxes
F0101 Address Book Master
F0411 Accounts Payable Ledger
F760101A A/B Tag Table - ARG - 04 - 76A
F760411A A/P Ledger Tag Table - ARG - 04 - 76A
F764008A Aditionals Tax Areas - ARG - 04 - 76A
F76A043 A/P Tag Table - CAI Storage - ARG - 04 - 76A
F76A0494 Purchasing Flat File - ARG - 04 - 76A
F76A411H AP Header Tag File - ARG - 04 - 76A
F76A411T F760411A A/P Tag File - ARG - 04 - 76A
RG1361_GenType2RecAP

RG1361_GenType2RecAP

Purchasing Data Extractor AP - RG1361 - 04 - 76A

Minor Business Rule

Object Name: B76A0408

Parent DLL: CLOC

Location: Client/Server

Language: C

Data Structure

D76A0408E - RG1361 - Generate Type 2 Rec - AP - ARG - 04          - 76A

Parameter NameData ItemData TypeReq/OptI/O/Both
idDataPtrGENLNGIDOPTINPUT

General purpose ID variable.

szErrorMessageDTAIcharOPTOUTPUT

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cSuppressErrorEV01charOPTINPUT

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

szRG1361PurchasingRecordARCPcharOPTOUTPUT

RG 1361 Purchasing Record. 

nLineNumberINT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

Related Functions

B0000047 Retrieve Company Address
B0000083 Convert Math Numeric to String with Left Zero Pad
B0100019 Get Address Effective Date
B0100033 Get Effective Address
B7600440 Address Book - Tax Id Edit - ARG - 01 - 04 - 76A
B8000002 Delete All Rows from Table
B9800100 Get Audit Information
B9800181 Environment List Business Functions
N76A0494 Purchasing Tape File - F76A0494 - ARG -04 - 76A

Related Tables

F0018 Taxes
F0101 Address Book Master
F0411 Accounts Payable Ledger
F760101A A/B Tag Table - ARG - 04 - 76A
F760411A A/P Ledger Tag Table - ARG - 04 - 76A
F764008A Aditionals Tax Areas - ARG - 04 - 76A
F76A043 A/P Tag Table - CAI Storage - ARG - 04 - 76A
F76A0494 Purchasing Flat File - ARG - 04 - 76A
F76A411H AP Header Tag File - ARG - 04 - 76A
F76A411T F760411A A/P Tag File - ARG - 04 - 76A
RG1361_InitProcessAP

RG1361_InitProcessAP

Purchasing Data Extractor AP - RG1361 - 04 - 76A

Minor Business Rule

Object Name: B76A0408

Parent DLL: CLOC

Location: Client/Server

Language: C

Data Structure

D76A0408A - RG1361 - Init Process - AP - ARG - 04                 - 76A

Parameter NameData ItemData TypeReq/OptI/O/Both
mnJobNumberJOBSMATH_NUMERICOPTBOTH

The job number (work station ID) which executed the particular job.

szComputerIDCTIDcharOPTBOTH

cFinalModeEV01charOPTINPUT

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

szInformantCompanyCOcharOPTINPUT

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.

mnCatCodeACCNMATH_NUMERICOPTINPUT

Entity associated with an Address Book number.

cIncludeAdditionalInfoEV01charOPTINPUT

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

jdPeriodDATE01JDEDATEOPTINPUT

Event point for JDE Date.

idDataPtrGENLNGIDOPTBOTH

General purpose ID variable.

szErrorMessageDTAIcharOPTOUTPUT

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cSuppressErrorEV01charOPTINPUT

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

jdDateFromDTFRJDEDATEOPTINPUT

The beginning date for which the transaction or code is applicable.

jdDateToDTDOJDEDATEOPTINPUT

The date that the system prints on the document.

Related Functions

B0000047 Retrieve Company Address
B0000083 Convert Math Numeric to String with Left Zero Pad
B0100019 Get Address Effective Date
B0100033 Get Effective Address
B7600440 Address Book - Tax Id Edit - ARG - 01 - 04 - 76A
B8000002 Delete All Rows from Table
B9800100 Get Audit Information
B9800181 Environment List Business Functions
N76A0494 Purchasing Tape File - F76A0494 - ARG -04 - 76A

Related Tables

F0018 Taxes
F0101 Address Book Master
F0411 Accounts Payable Ledger
F760101A A/B Tag Table - ARG - 04 - 76A
F760411A A/P Ledger Tag Table - ARG - 04 - 76A
F764008A Aditionals Tax Areas - ARG - 04 - 76A
F76A043 A/P Tag Table - CAI Storage - ARG - 04 - 76A
F76A0494 Purchasing Flat File - ARG - 04 - 76A
F76A411H AP Header Tag File - ARG - 04 - 76A
F76A411T F760411A A/P Tag File - ARG - 04 - 76A
RG1361_InitVoucherAP

RG1361_InitVoucherAP

Purchasing Data Extractor AP - RG1361 - 04 - 76A

Minor Business Rule

Object Name: B76A0408

Parent DLL: CLOC

Location: Client/Server

Language: C

Data Structure

D76A0408B - RG1361 - Init Voucher - AP - ARG - 04                 - 76A

Parameter NameData ItemData TypeReq/OptI/O/Both
szCompanyKeyKCOcharOPTINPUT

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.

szDocumentTypeDCTcharOPTINPUT

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 

mnDocVoucherInvoiceDOCMATH_NUMERICOPTINPUT

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.

jdDateInvoiceDIVJJDEDATEOPTINPUT

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.

szVendorInvoiceNumberVINVcharOPTINPUT

The supplier's invoice number that is used for voucher entry. Voucher entry allows only one invoice per voucher number. If multiple invoice 
numbers exist on a voucher, you must set them up as multiple vouchers or combine the invoices and enter them as one voucher. Depending 
on how you have your accounts payable constants set, the system can do one of the following:   o  Accept a duplicate invoice number 
without warning or error   o  Generate a warning message in which the duplicate invoice number can still be accepted   o  Generate an error 
message Blank values are treated in the same manner as any other invoice number. Two blank invoice numbers are treated as duplicates. To test 
for duplicate invoice numbers that might have been entered in error, run the Suspected Duplicate Payments report (R04601). Note: The 
duplicate invoice number validation is not run for vouchers with document type NO. These vouchers are created by the Generate Reimbursements 
program (R03B610).

szCurrencyCodeCRCDcharOPTINPUT

A code that identifies the currency of a transaction. 

mnCurrencyConverRateCRRMATH_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. 

mnAddressNumberAN8MATH_NUMERICOPTINPUT

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

idDataPtrGENLNGIDOPTINPUT

General purpose ID variable.

szErrrorMessageDTAIcharOPTOUTPUT

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cSuppressErrorEV01charOPTINPUT

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

Related Functions

B0000047 Retrieve Company Address
B0000083 Convert Math Numeric to String with Left Zero Pad
B0100019 Get Address Effective Date
B0100033 Get Effective Address
B7600440 Address Book - Tax Id Edit - ARG - 01 - 04 - 76A
B8000002 Delete All Rows from Table
B9800100 Get Audit Information
B9800181 Environment List Business Functions
N76A0494 Purchasing Tape File - F76A0494 - ARG -04 - 76A

Related Tables

F0018 Taxes
F0101 Address Book Master
F0411 Accounts Payable Ledger
F760101A A/B Tag Table - ARG - 04 - 76A
F760411A A/P Ledger Tag Table - ARG - 04 - 76A
F764008A Aditionals Tax Areas - ARG - 04 - 76A
F76A043 A/P Tag Table - CAI Storage - ARG - 04 - 76A
F76A0494 Purchasing Flat File - ARG - 04 - 76A
F76A411H AP Header Tag File - ARG - 04 - 76A
F76A411T F760411A A/P Tag File - ARG - 04 - 76A