AdjustCommittedQuantity
Adjusted Committed Quantity
Minor Business Rule
Object Name: B3100220
Parent DLL: CMFGBASE
Location: Client/Server
Language: C
1.Functional Description
1.1Purpose
This business function will adjust the Quantity Committed in the Item Location table (F41021). The
Quantity can be positive or negative and will be Hard or Soft Committed depending on the Manufacturing
Constants and Pick List flag.
1.2Setup Notes and Prerequisites
None.
1.3Special Logic
None.
2.Technical Specifications
2.4Processing
Adjusted Quantity must not be zeros.
The following actions have to be performed by the Business Function.
1. Get the Item Master from the F4101 table using Short Item as the key.
2. Read the Item Balance from the F4102 table using Item and Branch as keys.
3. Read Item Location (F41021) using Item,Branch,Location and Lot Number as keys.
4. Read Manufacturing Constants table (F3009) using Branch as the key.
5. Convert Adjusted Quantity from Input UOM to Primary.
6. If Stocking Type (IBSTKT) <> 'B' and Primary Adusted Qty is not zeros
If Committment Control (IAFLD2) = Blanks or "1" or "2" and Input Pick List flag = '1'
Add Adjusted Qty in Primary to Quantity on WO (LIQOWO)
Else
Add Adjusted Qty in Primary to Quantity on Soft Committ (LIPCOM)
Add Adjusted Qty in Primary to Quantity on Soft Committ (LIFCOM)
Endif
Load User ID, Date Updated(LIUPMJ), Program ID, Job Number and Time in the Item Location table.
Update Item Location row (F41021).
Endif.
Note: Use Business Functions wherever possible for retrievals.
If any of the above fetches fail, return an Error code of '1' otherwise return '0'.
Data Structure
D3100220 - Adjusted Committed Quantity
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
mnShortItemNumber | ITM | MATH_NUMERIC | NONE | NONE |
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 |
szBranch | MCU | char | NONE | NONE |
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.
|
szLocation | LOCN | char | NONE | NONE |
The storage location from which goods will be moved. |
szLotNumber | LOTN | char | NONE | NONE |
A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics. |
mnAdjustedQuantity | QTY | MATH_NUMERIC | NONE | NONE |
The number of units associated with an asset. |
szUnitOfMeasure | UOM | char | NONE | NONE |
A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).
|
cPickListFlag | SHTY | char | NONE | NONE |
A code to designate whether or not the Work Order Pick List has been printed for a Work Order. If a 1 is in this code, the Work Order Pick
List has been printed. |
cErrorCode | ERRC | char | NONE | NONE |
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). |
szProgramID | PID | char | NONE | NONE |
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.
|
cUpdateSoftCommitFlag | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event.
|
cStockingType | STKT | char | NONE | NONE |
A user defined code (41/I) that indicates how you stock an item, for example, as finished goods or as raw materials. The following stocking
types are hard-coded and you should not change them:
0 Phantom item
B Bulk floor stock
C Configured item
E Emergency/corrective
maintenance
F Feature
K Kit parent item
N Nonstock
The first character of Description 2 in the user defined code table indicates if the item
is purchased (P) or manufactured (M). |
cHardSoftCommit | FLD2 | char | NONE | NONE |
An option that determines how the Shop Floor Management system commits inventory. The options are as follows:
o Hard commitment at
creation of parts list. The system performs a hard commitment at the creation of the parts list. The hard commitment remains in effect until
inventory is relieved.
o Soft commitment, then changed to hard commitment when printing. The system performs a soft commitment at the
creation of the parts list.
The system then changes the commitment to a hard commitment during the pick list print process (P31410) for the
work order. The hard commitment remains in effect until inventory is relieved.
o Soft commitment at creation of parts list. The system performs a
soft commitment at creation of the parts list. The soft commitment remains in effect until inventory is relieved.
When you set the Commitment
Method field in the Branch/Plant Constants form to
2 or 3, you must use either Hard commitment at creation of parts list or Soft commitment,
then hard commitment when printing because a hard commitment must be performed.
If you want to identify substitute items when a shortage
occurs, you must choose the hard commitment at creation of parts list option.
When you choose either Soft, Hard when printing or Soft at creation
of Parts List, any line item in the parts list may be hard-committed prior to printing or relieving the inventory.
For World:
When the hard/soft
commit option is set to 2 or 3, any line item in the parts list may be hard committed prior to printing or relieving the inventory. Valid codes are:
1
Hard commitment
2 Soft commitment, hard commitment when printing (P31410)
3 Soft commitment For OneWorld:
To specify how the
program commits inventory, click one of the following options under the Hard/Soft Commit heading:
o Hard at creation of parts list
o Soft, Hard
when printing (P31410)
o Soft at creation of parts list |