F3016BEditLine

F3016 Kanban Master Bsfn

Master Business Function

Object Name: N3003380

Parent DLL: CMFGBASE

Location: Client/Server

Language: NER

Edit Line:

Function Name
F3016EditLine


What does it do?

Purpose

This function validates all the data in all the fields in the P3016 Kanban Master Revisions Application. In addition, it also assigns all the default values. If 

error free, this function calls the B3003390 Cache Kanban Master Function. This function creates the cache using the job number that was passed from the 

F3016 Begin Doc function, and the record is then written into the cache. If the record already exists, it retrieves the existing record and updates it with the 

current information


Processing


Initialize variables
Error Indicator


Call F3016 using Kanban ID

If the record exists, set error 


If previous Kanban ID is not zero and it is not equal to current Kanban ID,

Call Kanban Master Cache business function.

Set action code equal to "A".


If action code is equal to "A",

Call F3016 using Kanban ID.

If the record exists, set error.


If Action Code is equal to 'D', validate that KANBAN record can be deleted.

If Kanban is in progress (KBST = '2'), set error 0001 on Kanban ID field.


If Action Code is equal to 'C' and Kanban Status = '2', do not allow changes to LINE, AN8, REPT, TLOC, FLOC, MCU, UITM.

Fetch the current existing KANBAN record from the KANBAN master file (F3016).  If any of the values are different from those passed to the bsfn, set 

error '0001' on KANBAN ID field.


If (no errors exist and  (Action Code is equal to 'C' or Action Code is equal to 'A')), validate KANBAN Record.

Validate Branch/Plant (MMCU)

Branch/Plant must exist in the Business Unit Master File (F0006).  Call BSFN F0006GetBusinessUnit to perform the validation.  If error exists, set error 

'0052' on MMCU field and set error indicator.

Branch/Plant must exist in the Manufacturing Constants file (F3009).  Fetch F3009 using MMCU (BSFN F3009GetManufacturingConstantsData).  If the 

reocord does not exist, set error '4431' on MMCU field and set error indicator.

Branch/Plant must exist in the Inventory Constants File (F41001).  Fetch F41001 using MMCU (BSFN F41001GetBranchPlantRow).  If the record does not 

exist, set error '0964' on MMCU and set error indicator.



Validate Item Number (UITM)

If Item number is blank, set error '0003' on the Unknown Item Number field.

Call BSFN VerifyandGetItemMaster passing UITM and MMCU, return LITM and AITM.  If the Item Master record does not exist, set error '101U' on 

UITM and set error indicator.


If no errors, Validate Item and Branch

Item Branch record must exist in the Item Branch File (F4102).  Fetch F4102 using Item (ITM) and Branch/Plant (MMCU) use BSFN 

F4102GetItemBranchManufacturingInformation .  If the record does not exist, set error '4507on UITM and set error indicator.



If no errors, Validate Consuming Location (TLOC) and Consuming Branch (MMCU).

If the Consuming Location is not blank and the Consuming branch/plant is blank, set error '0003' on MMCU and set error indicator.

Check that the consuming location is valid by searching for the consuming location in the Item Location File (F41021) using the consuming location and 

branch.  Retrieve location control field (LCTL) from the Item Location File (F41021).  If the consuming location is not found, set error '3690' on TLOC and 

set error indicator.

If the Location Control (LCTL) is equal to 'Y', verify that the location exists in F4100.  If the location does not exist, set error '3138' on TLOC and set error 

indicator. 


Validate Supplying Branch/Plant (MCU).

Supplying Branch/Plant must exist in the Business Unit Master File (F0006).  If the record does not exist, set error '0052' on MCU and set error indicator.

Supplying Branch/Plant must exist in the Manufacturing Constants file (F3009).  Fetch F3009 using MCU.  If the reocord does not exist, set error '4431' on 

MCU and set error indicator.


If no errors, Validate Supplying Branch (MCU) and Supplying Location (FLOC).

If the Supplying Location is not blank and the Supplying Branch/Plant is blank, set error '0003' on MCU and set error indicator.

Check that the supplying location is valid by searching for the supplying  location in the Item Location File (F41021) using the supplying location and 

branch.  Retrieve the location control field (LCTL) from the Item Location File (F41021).  If the supplying location is not found, set error '3690' on FLOC and set 

error indicator.

If the Location Control (LCTL) is equal to '1', verify that the location exists in F4100.  If the location does not exist set error '3138' on FLOC and set error 

indicator.


If this is a new Kanban add then verify that the user is not entering a duplicate Kanban based on ITM, MMCU, LOCN, and TLOC.

Call F3016 using ITM, MMCU, LOCN, TLOC.

If record already exists,

Set NER error '0001' on short item number.


Validate KANBAN ID (KID1)

If action code is equal to 'A' and KANBAN Id is equal to 0 or Null, assign next KANBAN ID using next numbers.

If action code is equal to 'C' and KANBAN Id is equal to 0 or Null, set error '0003' on KID1 and set error indicator.

Perform standard DD edits.


Validate KANBAN Size Quantity (KBQT).

Perform standard DD Edits.


Validate Container Size (CNTS)

Perform standard DD Edits.


Validate KANBAN Size (KBQT) and Container Size (CNTS).

If KANBAN Size and Container Size are equal to 0, set error '0003' on CNTS and set error indicator.


Validate Source Type (REPT).

Retrieve DD Default Value

IF Source Type is equal to blank, set error '057U' on REPT and set error indicator.

Perform standard DD Edits.


Validate Unit of Measure (UOM).

If UOM is equal to blank, 

If Source Type (REPT) is equal to '1', default production UOM.

If Source Type (REPT) is equal to '2', default primary UOM (UOM1).

If Source Type (REPT) is equal to '3', default Purchasing UOM  

Validate UOM conversion exists.  If invalid UOM, set error 'szErrorMessageID' on UOM and set error indicator.  


Validate Average Queue Time Hours (AVRT).

If Replenishment leadtime is equal to blank, default to AVRT from F4102.

Perform standard DD Editing.


Validate Phase (KBTM).

Perform standard DD Editing.


Validate Source Type (REPT) and Line/Cell (LINE).

If (source type (REPT) is equal to '2' or '3') and (Line/Cell is not equal to blank), set error '054R' on LINE and set error indicator.

If (source type (REPT) is not equal to '2' or '3') and (Line cell is equal to blank), set error '054R' on LINE and set error indicator. 

If Line Cell is not blank, continue validation.

Line/Cell must exist in the Business Unit Master File (F0006).  If the record does not exist, set error '0052' on LINE and set error indicator.

Line/Cell must exist in the Manufacturing Constants file (F3009).  Fetch F3009 using LINE.  If the reocord does not exist, set error '4431' on LINE and set 

error indicator.

Line/Cell must exist in the Work Center Master File (F30006).  Fetch F30006 using LINE, return production Line (LIC).  If the record does not exist, set 

error '0964' on LINE and set error indicator.

If F30006 Production Line (LIC) does not equal '1', set error '038N' on LINE and set error indicator.



Validate Replenishment Source Type (REPT) and Supplier (AN8).

If Replenishment Source Type is equal to '1' or '2' and Supplier is not blank, set error '057U' on AN8 and set error indicator.

If Replenishment Source Type is equal to '3' and Supplier is blank, set error '057U' on AN8 and set error indicator.

If supplier is not blank, supplier must exist in the address book file (F0101).  If the record does not exist, set error '0002' on AN8 and set error indicator.


Validate Kanban Receipts Flag (KBRC).

Perform standard DD Editing


Validate Kanban Override Flag (KBOV).

Perform standard DD Editing.


Calculate Number of Cards (NCDN).

If Container Size is equal to '0', set Container Size equal to 1.

Number of Cards = Kanban Size (KBQT) / Container Size (CNTS).

 Round the Number of Cards to the nearest Whole Number.


If Replenishment Source Type is equal to "4",

Verify Special Handling Code in UDC table using Stocking Type (STKT).

If 1st position of Special Handling Code is not equal to "O",

Set NER error "019T". 


If no errors, write transaction to the KANBAN master cache.



^

Data Structure

D3003380B - F3016 Edit Line

Item        Description          I/O       Req              Notes

JOBSJob Number IYKEY

LNIDLine Number IO

KID1Kanban Id IOYKEY

MMCUBranch                    IO

LITM     2nd Item                  IO

LOCNLocation                 IO

TLOCTo Location IO

KBQTKanban Qty IO

CNTSContainer Size IO

UMUnit Of Measure IO

AVRTAverage Time IO

KBRCKanban Rec Flg IO

KBOVOverrides Flag IO

MCUBranch / Plant IO

EV01Supp Err Msg I

DTA1Error Msg ID O

REPTRepl Source Typ IO

AN8Supplier   IO

KBTMTransfer Method IO

ITMShort Item No I

CDNNumber of Cards I

EV01Action Code IY

AITMThird Item No O

EV01Errors Exist O

LINELine Identifier IO

URCDUser Res Code IO

URDTUser Res Date IO

URATUser Res Amt IO

URABUser Res No IO

URRFUser Res Ref IO

UITMItem No   IO

KID1Prev Kanban ID IO

EV01Add Flag I


^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnJobnumberAJOBSMATH_NUMERICOPTNONE

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

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.

mnKanbanID1KID1MATH_NUMERICOPTNONE

A unique identifier for the first kanban assigned to an item in a specified branch/plant, consuming location, or supplying location.

szCostCenterAltMMCUcharOPTNONE

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.

szIdentifier2ndItemLITMcharOPTNONE

A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to 
alternative item numbers. The three types of item numbers are: Item Number (short) An 8-digit, computer-assigned item number. 2nd Item Number A 
25-digit, user defined, alphanumeric item number. 3rd Item Number  Another 25-digit, user defined, alphanumeric item number. In addition to 
these three basic item numbers, the system provides an extensive cross-reference search capability. You can define numerous 
cross-references to alternative part numbers. For example, you can define substitute item numbers, replacements, bar codes, customer numbers, or 
supplier numbers.

szLocationLOCNcharOPTNONE

The storage location from which goods will be moved.

szLocationToTLOCcharOPTNONE

The storage location to which goods will be moved.

mnKanbansizequantityKBQTMATH_NUMERICOPTNONE

The total size of the kanban.

mnContainersizequantityCNTSMATH_NUMERICOPTNONE

The capacity of a container in a kanban-controlled environment.

szUnitOfMeasureUMcharOPTNONE

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.

mnAverageQueueTimeHoursAVRTMATH_NUMERICOPTNONE

The time required before a consuming location has a replacement kanban available from its supplying location. This value is used only for 
kanban card processing in Shop Floor Management.

cKanbanreceiptsflag9KBRCcharOPTNONE

A code that is used to indicate whether the system runs the receipts process at kanban check-in time. Valid values are:    0   The system 
does not run the receipt process.    1   The system runs the receipt process.

cKanbanoverrideFlagKBOVcharOPTNONE

A code that is used to lock the kanban size and quantity to prevent changes by the kanban calculation program. Valid values are:    0   The 
system recalculates the size of the kanban.    1   The system does not recalculate the size of the kanban.

szCostCenterMCUcharOPTNONE

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.

cSuppressErrorMessageEV01charOPTNONE

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

szErrorMessageIdDTA1charOPTNONE

A 256 byte field used to hold miscellaneous data.

cReplenishmentsourcetypeREPTcharOPTNONE

A code that indicates the type of supplying location for a kanban. Valid values are:    0   DFM Raw and In Process (RIP)    1   Work center    2   
Inventory    3   Supplier     4   Outside Assembly    5   Transfer Order    6   DFM Dual Card

mnSupplierAN8MATH_NUMERICOPTNONE

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

cKanbantransfermethodKBTMcharOPTNONE

A code that indicates the method that the system uses to transfer completed units from the supplying location to the consuming location. 
Valid values are:    1   One-phase transfer. The completion of the kanban and transfer of inventory are performed simultaneously.    2   
Two-phase transfer. The kanban is completed and then the inventory is transferred.

mnIdentifierShortItemITMMATH_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

mnNumberOfCardsCDNMATH_NUMERICOPTNONE

A number that uniquely defines a Construction Deposit.

cActionCodeEV01charOPTNONE

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

szThirdItemNumberAITMcharOPTNONE

The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item 
numbers are as follows: 1.  Item Number (short) - An 8-digit, computer-assigned 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.  In addition to 
these three basic item numbers, an extensive cross-reference search capability has been provided (see XRT). Numerous cross references to 
alternate part numbers can be user defined, such as substitute item numbers, replacements, bar codes, customer numbers, or supplier 
numbers.

cErrorsExistEV01charOPTNONE

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

szLineIdentifierLINEcharOPTNONE

A number that defines a production line or cell. Detailed work center operations can be defined inside the line or cell.

szUserReservedCodeURCDcharOPTNONE

This is a 2 position code that is reserved for the user.  JDE does not currently use this field and will not utilize this field in the future.

jdUserReservedDateURDTJDEDATEOPTNONE

This is a 6 position code that is reserved for the user.  JDE does not currently use this field and will not utilize this field in the future.

mnUserReservedAmountURATMATH_NUMERICOPTNONE

This is a 15 position code that is reserved for the user.  JDE does not currently use this field and will not utilize this field in the future.

mnUserReservedNumberURABMATH_NUMERICOPTNONE

This is a 8 position code that is reserved for the user.  JDE does not currently use this field and will not utilize this field in the future.

szUserReservedReferenceURRFcharOPTNONE

A 15-position reference that is reserved for the user.  J.D. Edwards does not currently use this field and does not plan to use it in the future.

szItemNoUnknownFormatUITMcharOPTNONE

A number that the system assigns to an item. It can be in short, long, or third item number format.

mnPreviousKanbanIdKID1MATH_NUMERICOPTNONE

A unique identifier for the first kanban assigned to an item in a specified branch/plant, consuming location, or supplying location.

cAddFlagEV01charOPTNONE

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

cSuppressEditsEV01charOPTNONE

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

mnRelatedKanbanIDKID2MATH_NUMERICOPTNONE

A unique identifier for the second kanban assigned to an item in a specified branch/plant, consuming location, or supplying location.

szCalculationIdentifierCALCIDcharOPTNONE

A value that identifies a unique kanban size calculation method.

mnQtyPerCardTRQTMATH_NUMERICOPTNONE

A value that represents the available quantity, which might consist of the on-hand balance minus commitments, reservations, and 
backorders. You enter this value in the Branch/Plant Constants program (P41001).

cAdhocCardExists_EV01EV01charOPTNONE

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

Related Functions

None

Related Tables

None
F3016BeginDocument

F3016BeginDocument

F3016 Kanban Master Bsfn

Master Business Function

Object Name: N3003380

Parent DLL: CMFGBASE

Location: Client/Server

Language: NER

Data Structure

D3003380A - F3016 Begin Doc

Item        Description          I/O       Req              Notes

JOBSJob NumberOThis Job Number is assigned only once.


^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnJobnumberAJOBSMATH_NUMERICOPTNONE

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

Related Functions

None

Related Tables

None
F3016EndDocC

F3016EndDocC

F3016 Kanban Master Bsfn

Master Business Function

Object Name: N3003380

Parent DLL: CMFGBASE

Location: Client/Server

Language: NER

Data Structure

D3003380D - F3016 End Doc

Item        Description          I/O       Req              Notes

JOBSJob NumberIY

CTIDComputer IdI


^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnJobnumberAJOBSMATH_NUMERICOPTNONE

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

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.

cTerminateCacheEV01charOPTNONE

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

Related Functions

None

Related Tables

None