SetF4211DataSelectionOverF42119

Set F4211 Data Selection over F42119

Minor Business Rule

Object Name: B1600240

Parent DLL: CFIN

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

This function will retrieve the data selection from the R4211DC, set the same data selection over the 

F42119 and return F42119 records to the R4211DC.


1.2Setup Notes and Prerequisites

This function has been hard coded to retrieve the data selection from R4211DC only.  It must be 
called from the Sales Order Detail (V4211B) init section of R4211DC in mode '1' in order to retrieve the 

data selection.

 

1.3Special Logic


2.Technical Specifications


2.1Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes
ERRCError CodeON'0'  No error '1'  Fetch failed or other error

VERSVersionINReport Version to retrieve data selection from

EV01ModeIY

PIDProgram IDIYName of calling report

GENLNGPointerI/OYTable handle for sequential fetches

KCOOKey CompanyONKey to F42119

DOCODocument NumberONKey to F42119

DCTOOrder TypeONKey to F42119

LNIDLine NumberONKey to F42119

DTAIError Message IDN

UOMUnit of MeasureON

MCUBusiness UnitON

ITMShort Item NumberON

CRCDCurrency CodeON

MATH01Section IDINIdentifies the section from which to retrieve 

data selection

DTFRDate FromINData selection appended to select records with 

Dates greater than or equal to From Date

DTTODate ThruINData selection appended to select records with 

Dates less than or equal to Thru Date

DT17Date Data ItemINThe type of date to use to append data 

selection


2.2Related Tables 

Table Table Description
F4211Sales Order Detail

F42119Sales Order History



2.3Related Business Functions

None



2.4Processing 


Error Code = '0'

If Mode = '1'

Retrieve data selection (K2GetDataSelection)

If successful

Open F42119

If successful

For number of select structures returned by K2GetDataSelection

Select structure table  = "F42119"

End For

If From Date and Thru Date are not blank

If Date Data Item is blank

Date Data Item = "DRQJ"

End If

Append data selection using From Date, Thru Date and Date Data Item
End If
Set Selection over F42119

If successful

Select Keyed using blank Key 1 for F42119

If successful

Pointer = jdeStoreDataPtr

End If

End If

Free memory

End If
End If

End If


If Mode = '2'

If Pointer is not zero

JdeRetrieveDataPtr

F42119 Fetch

If successful

Load data structure

End If

End If

End If


If error or Mode = '3'

If Pointer is not zero

jdeRemoveDataPtr

Pointer = '0'

Close F42119

End If

End If


If error

Error Code = '1'

End If


^

Data Structure

D1600240 - Set F4211 Data Selection for F42119

Parameter NameData ItemData TypeReq/OptI/O/Both
cErrorCodeERRCcharOPTNONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

szVersionVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

cModeEV01charOPTNONE

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

szProgramIdPIDcharOPTNONE

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.

idPointerGENLNGIDOPTNONE

General purpose ID variable.

szKeyCompanyKCOOcharOPTNONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

mnDocumentNumberDOCOMATH_NUMERICOPTNONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szOrderTypeDCTOcharOPTNONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

mnLineNumberLNIDMATH_NUMERICOPTNONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

szErrorMessageIDDTAIcharOPTNONE

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.

szUnitOfMeasureUOMcharOPTNONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

szBusinessUnitMCUcharOPTNONE

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.

mnShortItemNumberITMMATH_NUMERICOPTNONE

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

szCurrencyCodeFromCRCDcharOPTNONE

A code that identifies the currency of a transaction. 

mnSectionIDMATH01MATH_NUMERICOPTNONE

- - - Good Performance Low Value. 

jdDateFromDTFRJDEDATEOPTNONE

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

jdDateThruDTTOJDEDATEOPTNONE

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

szDateDataItemDTI7charOPTNONE

The name of a data item. In driver calculations, the field must be completed with a data item that represents a date.

Related Functions

None

Related Tables

F4211 Sales Order Detail File
F42119 Sales Order History File