F3112LoadRoutingstoSuperBackflus

F3112 Load Routings to Super Backflush Edit Line

Minor Business Rule

Object Name: N3101530

Parent DLL: CMFGBASE

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose
This function will read transactions from F3111Z1 and will do preprocessing before passing values to 
work order inventory issues MBF (Edit Line).



1.3Special Logic

1.Call F4801 Get Work Order data if there is an error then the work order number is 
invalid. Stop processing and return an error.

2.Call F3009 Get Manufacturing Constants passing the branch and retrieving the 

HardSoftCommit value.

3.Try to fetch F3111 record passing the Transaction order number, the transaction 

component item number short, and the transaction component branch.

1.If the fetch is successful fetch the first record that has the quantity issued 
equal to zero. If none of them has a quantity issued equal to zero get the first one.

4.Else if the fetch is not successful, try to fetch by order number and component item 
number short only.

1.If the fetch is successful fetch the first record that has the quantity issued 
equal to zero. If none of them has a quantity issued equal to zero get the first one.

5.Else if  the fetch is unsuccessful and the allow unplanned Issues is not on return an 
error.

6.F3111. FetchSingle to retrieve most of F3111 fields

7.If mnComponentLineNoF3111 > the passed BF mnCoponentLineNumber

1.BF mnCoponentLineNumber = mnComponentLineNoF3111
8.If  szUnitOfmeasureF3111Z1 is Blank
1.szUnitOfmeasureF3111Z1 = szUnitofMeasureF3111
9.If  szBranchComponentF3111Z1 is Blank
1.szBranchComponentF3111Z1 = szBranchComponentF3111
10.If  szMaterialStatusCodeF3111Z1 is Blank
1.szMaterialStatusCodeF3111Z1 = szMaterialStatusCodeF3111
11.If  PO szMaterialStatusCodeF3111Z1 is not blank (Retrieved from processing options)
1.szMaterialStatusCodeF3111Z1 = POszMaterialStatusCodeF3111Z1
12.If szTransactionLocationF3111Z1 is Blank
1.szTransactionLocationF3111Z1 = szTransactionLocationF3111
13.If szTransactionLotnumberF3111Z1  is Blank
1.szTransactionLocationF3111Z1 = szTransactionLocationF3111
14.If szTransactionLotnumberF3111Z1 is not blank
1.Call F4108 Get Lot Master Information
2.Retrieve Lot grade, Lot Potency, experation Date, memo1 and memo2. Pass in the 

component short item, the component branch and the lot number.

15.If the mnUniqueKeyId is less than or equal to zero (This means unplanned issues)
1.F4101 Get Item Master Row by short Item
2.Pass in the mnComponentShortItemF3111Z1 and return the mnComponent2ndItemNumber and 

mnComponent3ndItemNumber

1.If there is an error then cErrorCode = '1'
16.If the szBranchComponentF3111Z1 is still blank
1.szBranchComponentF3111Z1 = szBranchF4801
17.Call F4100 Format Location to format and edit  location.
18.If szPOIssuelimit is not blank and  szPOIssuelimit is less than szIssuelimitF4801

1.cErrorCode = '1'
2.Set Error 2633

19.if mnUniqueKeyId is equal to zero
1.if POUnplannedIssues is equal to '1' and PocEquipmentFlag is Blank
1.cGridLineIsunplanned = '1'
Else
1.cErrrorCode = '1'
2.set error 0001

20.If cErrorCode is not equal to '1'
1.If mnQuantityTransaction is not equal to zero and mnComponentShortItem is not equal 
to zero

1.if the orderGldate is null then orderGldate = Today's date.
2.call F3111 Edit line pass in the following parameters.




^

Data Structure

D3101530 - F3112 Load Routings to Super Backflush Edit Line

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocumentOrderInvoiceEDOCOMATH_NUMERICOPTINPUT

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.

jdDateTransactionJulianTRDJJDEDATEOPTINPUT

The date that an order was entered into the system. This date determines which effective level the system uses for inventory pricing.

mnBatchNumberICUMATH_NUMERICOPTINPUT

A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either 
assign a batch number or let the system assign it using the Next Numbers program.

mnLastOperationSequenceOPSQMATH_NUMERICREQOUTPUT

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.

szLastOperationTypeCodeOPSCcharREQOUTPUT

A user defined code (30/OT) that indicates the type of operation. Valid values include: A Alternate routing   TT Travel time   IT Idle time   T Text

szLastCostCenterMCUcharREQOUTPUT

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.

cSuppressErrorMessageSUPPScharREQINPUT

A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.        0 = allow 
runtime error message handling.        1 = suppress runtime error message handling.

szErrorMessageIDDTAIcharREQOUTPUT

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.

Related Functions

None

Related Tables

None