AdjustQuantityonWorkOrder

Adjust Quantity on Work Order

Minor Business Rule

Object Name: B3100160

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This business function will adjust the quantity on Work Order in the Primary location of the Item 
Location table (F41021). Please note that the Quantity to be adjusted can be Positve or Negative.


1.2Setup Notes and Prerequisites

• None.

1.3Special Logic

None.

2.Technical Specifications


2.4Processing 


1. Using the business function (B4000520) convert the quantity to be adjusted into Wk Quantity into 
primary unit of measure.

2. Read the Item Location Master table (F41021) using  Short Item Number (ITM), Branch (MCU) and 

Primary Bin (PBIN)  as the key fields. Add the Wk Quantity to the Quantity on Work Order Receipt (QWBO). 

The User Id (USER), Program Id (PID), Job Number (JOBN), Date Last Changed (UPMJ) and Time of Day 

(TDAY) must be updated to the current value. Then update the row in the Item Location table.


The function will return '0' in the Error Code field if successful and '1' in case of failure.


^

Data Structure

D3100160 - Adjust Quantity Work Order

Parameter NameData ItemData TypeReq/OptI/O/Both
mnShortItemNumberITMMATH_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

szCostCenterMCUcharNONENONE

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.

mnQuantityOnWOReceiptQWBOMATH_NUMERICNONENONE

The number of units on work orders in primary units of measure.

cErrorCodeERRCcharNONENONE

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).

szUnitOfMeasureUOMcharNONENONE

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

Related Functions

B4000460 Free Ptr To Data Structure
B4000520 Get Item UoM Conversion Factor
B9800100 Get Audit Information
X4101 Validate and Retrieve Item Master

Related Tables

F4101 Item Master
F41021 Item Location File