GetECOPartsListSequentially

Get ECO Parts List Sequentially

Major Business Rule

Object Name: B3000780

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description
This business function will get all the ECO Parts List Records from the F3013 table for a given 
Index/Key number combination. This BSFN will provide records by either full key or partial key.


The first time the function is called, pass a '1' in the Type parameter so the Request is not 

released.

To get the next value in the table, pass a '2' in the Type parameter. To release the request, pass a 

'3' in the Type parameter.


Index:  Pass in the number that identifies the index used to fetch the record.

   Keys:   Pass the number of key elements used to fetch the record.    

Suppress Error Message: 1=Suppress runtime error message handling, 0=Allow runtime error  

                               message handling.


1Purpose

This business function will get the next ECO Parts List Record by Index/Key number combination and 
have capability to provide records by either Full key or Partial Key, It will have capability to provide 

user with field values of every record.


1.2Setup Notes and Prerequisites

• Set on "Suppress Error Messages" to suppress the runtime error message handling. Otherwise, if an 
error occurs the error message will be displayed on the message line and the appropriate field (if any) 

will be highlighted.

• The user passes to the business function the number of the index they want to use, the number of key 
fields within that index that will be used and key values (full or partial).


List of Indexes:


1 = ECPR, KIT, MMCU, TBM, BQTY, SRV  (6 Keys)

2 = ECPR, ITM, MMCU, TBM, BQTY, TRV (6 Keys)

3 = ITM, DOCO (2 Keys)

4 = DOCO, PSQ, RSQ (3 Keys)

5 = DOCO, DCTO (2 Keys)


• Return Field values.



1.3Special Logic
None.

2.Technical Specifications


2.4Processing 

1. If the Input Request Type = '3', Release the Request and exit the Business function.
2. If the Input Request Type is '1', Get the Part List Table row (F3013) using Index/Key/Key Values
    combination.

3. If the Request Type = '2', read the next F3013 row using above keys.

4. If row is found

Load the Output fields.

Save the Current Unique Keys.

Exit

    Else

Release the request and exit the business function.

    Endif

5. If any errors, Release the request and exit the function.   



Retrievals:
 1.  ECO Parts List Detail Table (F3013).

Returns:

1.  If fetch fails, return Error Message ID '0002' (Record Invalid).
2.  If fetch is successful, and the memory allocation is successful, return the field values if 

required.

3.  If EOF reached, return '1' in End of File parameter, otherwise return 0 


Checklist:


Business Function SVR(The Business Function SVR document can be found on 
in the shared folder NTSERV2.xls)

______Business Function Name

______Source file Name

______Description of what the function does

______Which programs use the function

______Authors name


    Object Librarian Check:

______Verify Related Functions List against header file
______Verify Related Tables List against header file

______Verify Business Function Data Structure in the header file against Business Function   

   Parameter List

______"Check In" All the Business Function Parameter Lists


   All Business Functions must be run through Bounds Checker before checking them  in.

______Bounds Checker


Note:
Make sure to highlight the line and click on either 'Parameters' or 'Notes' button to get 
Function ID



^

Data Structure

D3000780 - Get ECO Parts List Sequentially

Parameter NameData ItemData TypeReq/OptI/O/Both
mnOrderNumberDOCOMATH_NUMERICNONENONE

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.

mnPrimarySequencePSQMATH_NUMERICNONENONE

mnRelatedSequenceRSQMATH_NUMERICNONENONE

cParentChildInclusionECPRcharNONENONE

A code that indicates whether the item is a parent or component. Using this value, the system selects items for you on the Related Items 
window when you perform a where-used inquiry for components or a single-level or multilevel inquiry for parent items. The Engineering Change 
Population program uses this value to determine the requested change. Valid values are:    P The item is a parent.    C The item is a 
component.

mnItemNumberShortITMMATH_NUMERICNONENONE

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

szBranchMMCUcharNONENONE

A code that represents a high-level business unit. Use this code to refer to a branch or plant that might have departments or jobs, which 
represent lower-level business units, subordinate to it. For example:     o Branch/Plant (MMCU)     o Dept A (MCU)     o Dept B (MCU)     o Job 123 
(MCU) Business unit security is based on the higher-level business unit.

szTypeOfBillTBMcharNONENONE

A user defined code (40/TB) that designates the type of bill of material. You can define different types of bills of material for different uses. 
For example:    M     Standard manufacturing bill    RWK   Rework bill    SPR   Spare parts bill  The system enters bill type M in the work order 
header when you create a work order, unless you specify another bill type. The system reads the bill type code on the work order header to 
know which bill of material to use to create the work order parts list. MRP uses the bill type code to identify the bill of material to use when it 
attaches MRP messages. Batch bills of material must be type M for shop floor management, product costing, and MRP processing.

mnSwapToItemKITMATH_NUMERICNONENONE

The system provides for three separate item numbers.    1.   Item Number (short) - An eight-digit, computer assigned, completely 
non-significant item number.    2.   2nd Item Number - The 25-digit, free form, user defined alphanumeric item number.    3.   3rd Item Number - Another 
25-digit, free form, user defined alphanumeric item number.

mnBatchQuantityBQTYMATH_NUMERICNONENONE

The quantity of finished units that you expect this bill of material or routing to produce. You can specify varying quantities of components 
based on the amount of finished goods produced. For example, 1 ounce of solvent is required per unit up to 100 units of finished product. 
However, if 200 units of finished product is produced, 2 ounces of solvent are required per finished unit. In this example, you would set up batch 
quantities for 100 and 200 units of finished product, specifying the proper amount of solvent per unit.

szToRevisionLevelTRVcharNONENONE

The revision level for the part that is reported next. This might not be the next sequential revision.

szOrderTypeDCTOcharNONENONE

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

szSwapToRevisionLevelSRVcharNONENONE

The revision level of the "Swap-to item" whenever an engineering change order is swapping out one item for another. The swap-to revision 
becomes the next revision level for the item only when the ECO is created in "Swap To" mode.

cRequestTypeEV01charNONENONE

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

szErrorMessageIDDTAIcharNONENONE

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.

szIndexDTAIcharNONENONE

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.

szKeysDTAIcharNONENONE

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.

cTypeOfItemChangeTICcharNONENONE

A code that describes the type of item change. This value is used by the Related Items window to determine the number and nature of 
related items allowed. The value is also used during Engineering Change Population to determine the changes. Valid values are:    N Add a new 
component or bill    S Swap or replace one item with another    C Change an existing component or bill    R Remove an existing component or 
bill 

szComponentBranchCMCUcharNONENONE

A secondary or lower-level business unit. The system uses the value that you enter to indicate that a branch or plant contains several 
subordinate departments or jobs. For example, assume that the component branch is named MMCU. The structure of MMCU might be as follows:    
Branch/Plant - (MMCU)       Dept A - (MCU)       Dept B - (MCU)       Job 123 - (MCU)

szBatchQtyUOMUOMcharNONENONE

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

mnOperationSequenceNoOPSQMATH_NUMERICNONENONE

A number used to indicate an order of succession. In routing instructions, a number that sequences the fabrication or assembly steps in the 
manufacture of an item. You can track costs and charge time by operation. In bills of material, a number that designates the routing step in the 
fabrication or assembly process that requires a specified component part. You define the operation sequence after you create the routing 
instructions for the item. The Shop Floor Management system uses this number in the backflush/preflush by operation process. In engineering 
change orders, a number that sequences the assembly steps for the engineering change. For repetitive manufacturing, a number that 
identifies the sequence in which an item is scheduled to be produced. Skip To fields allow you to enter an operation sequence that you want to begin 
the display of information. You can use decimals to add steps between existing steps. For example, use 12.5 to add a step between steps 
12 and 13.

mnQuantityRequiredQNTYMATH_NUMERICNONENONE

The number of units that the system applies to the transaction.

cFixedVariableQuantityFORQcharNONENONE

A code that indicates if the quantity per assembly for an item on the bill of material varies according to the quantity of the parent item 
produced or is fixed regardless of the parent quantity. This value also determines if the component quantity is a percent of the parent quantity. Valid 
values are:    F Fixed Quantity    V Variable Quantity (default)    %   Quantities are expressed as a percentage and must total 100%For 
fixed-quantity components, the Work Order and Material Requirements Planning systems do not extend the component's quantity per assembly 
value by the order quantity.

szUnitOfMeasureUMcharNONENONE

A user defined code (00/UM) that identifies the unit of measurement for an amount or quantity. For example, it can represent a barrel, box, 
cubic meter, liter, hour, and so on.

szFromRevisionLevelFRVcharNONENONE

The revision level for the part that was previously reported. This might be the previous sequential revision.

szLastRevisionNoRVNOcharNONENONE

A subset to the drawing number. It provides an additional description of the drawing and is useful if the system uses an engineering drawing 
as a reference for this item.

jdEffectiveFromDateEFFFJDEDATENONENONE

A date that indicates one of the following:     o When a component part goes into effect on a bill of material     o When a routing step goes into 
effect as a sequence on the routing for an item     o When a rate schedule is in effect The default is the current system date. You can enter 
future effective dates so that the system plans for upcoming changes. Items that are no longer effective in the future can still be recorded and 
recognized in Product Costing, Shop Floor Management, and Capacity Requirements Planning. The Material Requirements Planning system 
determines valid components by effectivity dates, not by the bill of material revision level. Some forms display data based on the effectivity 
dates you enter.

jdEffectiveThruDateEFFTJDEDATENONENONE

A date that indicates one of the following:     o When a component part is no longer in effect on a bill of material     o When a routing step is no 
longer in effect as a sequence on the routing for an item     o When a rate schedule is no longer active The default is December 31 of the 
default year defined in the Data Dictionary for Century Change Year. You can enter future effective dates so that the system plans for upcoming 
changes. Items that are no longer effective in the future can still be recorded and recognized in Product Costing, Shop Floor Management, 
and Capacity Requirements Planning. The Material Requirements Planning system determines valid components by effectivity dates, not by 
the bill of material revision level. Some forms display data based on the effectivity dates you enter.

szFromSerialNoFSERcharNONENONE

This field is used to identify the serial number of a particular parent part and specify when the component will become an active part of the 
parent's bill of material.

szThruSerialNoTSERcharNONENONE

This field is used to identify the serial number of a particular parent part and specify when the component will no longer be an active part of 
the parent's bill of material.

szUserUSERcharNONENONE

The code that identifies a user profile.

szProgramIDPIDcharNONENONE

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.

jdDateUpdatedUPMJJDEDATENONENONE

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

mnTimeUpdatedTDAYMATH_NUMERICNONENONE

The computer clock in hours:minutes:seconds.

szWorkStationIDJOBNcharNONENONE

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

cEndOfFileEV01charNONENONE

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

cReturnFieldValuesEV01charNONENONE

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

cSuppressErrorMessagesEV01charNONENONE

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

idRequestHandleGENLNGIDNONENONE

General purpose ID variable.

idUserHandleGENLNGIDNONENONE

General purpose ID variable.

mnComponentLineNoCPNBMATH_NUMERICOPTNONE

A number that specifies how the system displays the sequence of components on a single-level bill of material. This number initially 
indicates the sequence in which a component was added to the bill of material. You can modify this number to change the sequence in which the 
components appear.

Related Functions

None

Related Tables

F3013 ECO Parts List Detail