PaymentTermsRetrievalFunction

Retrieve Payment Terms Information Function (F0014)

Minor Business Rule

Object Name: N48S0609

Parent DLL: CCRIN

Location: Client/Server

Language: NER

Data Structure

D48S0609 - Retrieve Payment Terms Information Data Structure

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocumentOrderAlt_DOCZDOCZMATH_NUMERICOPTINPUT

The original document number.  This can be a voucher, an invoice, unapplied cash, a journal entry number, etc.  Matching document 
numbers are also used to identify related documents in the Accounts Receivable and Accounts Payable systems.  See matching document 
(DOCM).  This document number (DOCO) is always the original document number, and the matching document number (DOCM) is the check, 
adjustment, or credit to be applied against the original document. For example: A/P Automated/Manual Payment: Original (DOCO) - Voucher; 
Matching Document (DOCM) - Payment  A/R Original Invoice: Original (DOCO) - Invoice  Receipt Application: Original (DOCO) - Invoice; Matching 
Document (DOCM) - Receipt Credit Memo/Adjustment: Original (DOCO) - Invoice; Matching Document (DOCM) -Credit Memo  Unapplied 
Case: Original (DOCO) - Receipt

szDocTypeInvoiceOnly_DCTIDCTIcharOPTINPUT

A user defined (00/DI) document type for invoice entry. Any document type set up for invoice-only entry should begin with the letter R 
(receivables). The default is RI, RR, or RM. Reserved document types have been defined for vouchers, invoices, receipts, and time sheets. The 
reserved document types are: P_ Accounts Payable Documents R_Accounts Receivable Documents T_ Payroll Documents I_Inventory 
Documents O_ Order Processing Documents  Note: Verify that the default document type for invoices is set up in both UDC 00/DT and UDC 00/DI.

szDocumentCompanyInvoice_KCOIKCOIcharOPTINPUT

Invoice Document Company.

szDocumentPayItem_SFXSFXcharOPTINPUT

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.

mnNumericField_MATH01MATH01MATH_NUMERICOPTOUTPUT

- - - Good Performance Low Value. 

cCharacterField_A101A101charOPTOUTPUT

A code that identifies whether a document originates in the Engineering Project Management system.

jdDateField_DTEDTEJDEDATEOPTOUTPUT

You can enter a date with or without slashes (/) or dashes (-) as separators. If you leave a date entry field blank, the system supplies the 
current date.

szAlphaField_DS01DS01charOPTOUTPUT

A free-form, 80-character text field.

szErrorCode_ERNOERNOcharOPTOUTPUT

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

szPayTermsDataAlias_R01PPTR01PPTcharOPTINPUT

Use this parameter to retrieve information from the Payment Terms table (F0014). Each piece of information is associated with a unique 
field name. A one to eight character "Data Alias" identifies the field name. Enter the Data Alias (in upper case characters) which is associated 
with the information you want to retrieve from the table. Select Data Aliases from the group associated with the Smart Field you are using. (Only 
use Alpha fields if using an Alpha Smart Field, Character fields if using a Character Smart Field, etc.)  The following Data Aliases are 
available in this table: Alpha Fields    PTD (Description)    USER (User ID)    PID (Program ID)    JOBN (Work Station ID) Date Fields    DDJ (Due Date)    
UPMJ (Date Updated) Numeric Fields    DCP (Discount %)    DCD (Discount Days)    NDTP (Net Days to Pay)    NSP (No. of Split Payments)    
DTPA (Days to Pay Aging)    EIR (Effective Interest Rate)    PXDM(Prox Date Month)    PXDD (Prox Date Day)    UPMT (Time Last Updated)

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

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.

mnPrevDocumentOrderAlt_DOCZDOCZMATH_NUMERICOPTINPUT

The original document number.  This can be a voucher, an invoice, unapplied cash, a journal entry number, etc.  Matching document 
numbers are also used to identify related documents in the Accounts Receivable and Accounts Payable systems.  See matching document 
(DOCM).  This document number (DOCO) is always the original document number, and the matching document number (DOCM) is the check, 
adjustment, or credit to be applied against the original document. For example: A/P Automated/Manual Payment: Original (DOCO) - Voucher; 
Matching Document (DOCM) - Payment  A/R Original Invoice: Original (DOCO) - Invoice  Receipt Application: Original (DOCO) - Invoice; Matching 
Document (DOCM) - Receipt Credit Memo/Adjustment: Original (DOCO) - Invoice; Matching Document (DOCM) -Credit Memo  Unapplied 
Case: Original (DOCO) - Receipt

szPrevDocTypeInvoiceOnly_DCTIDCTIcharOPTINPUT

A user defined (00/DI) document type for invoice entry. Any document type set up for invoice-only entry should begin with the letter R 
(receivables). The default is RI, RR, or RM. Reserved document types have been defined for vouchers, invoices, receipts, and time sheets. The 
reserved document types are: P_ Accounts Payable Documents R_Accounts Receivable Documents T_ Payroll Documents I_Inventory 
Documents O_ Order Processing Documents  Note: Verify that the default document type for invoices is set up in both UDC 00/DT and UDC 00/DI.

szPrevDocCompanyInvoice_KCOIKCOIcharOPTINPUT

Invoice Document Company.

szPrevDocumentPayItem_SFXSFXcharOPTINPUT

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.

Related Functions

None

Related Tables

None