UpdatePeggingRecords

Update Pegging Records

Minor Business Rule

Object Name: B3100540

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description
This business function will update all the pegging document type for a given Work Order Number and 
Document type in the  Pegging table (F3412).


1.1Purpose

This is to be used in any  program to update the document type in F3412 table. Materials Planning 
creates 'WO' document type records in F3412 for Work Orders without Parts List attached. When the Parts 

List is attached, this document type has to be converted to 'FO'.  This function facilitates the change 

of the document type.   


1.2Setup Notes and Prerequisites

The Work Order Master F4801 has to be read and the data obtained in order use this business function. 
The From document type will be generally 'WO' while the To document type will be 'FO'.


1.3Special Logic

None.

2.Technical Specifications


2.4Processing 


1. Read all the rows using Input Document Number from the Pegging table (F3412). 
If the row is found and MWKIT = Input Item and MWMCU = Input Branch and MWDCTO = Input From 

Document Type

MWDCTO = To Document Type

Update the Pegging row.

Endif.

2. If there are any errors, Release the request and exit the function with the Error Message ID = 

'3143'.   



^

Data Structure

D3100540 - Update Pegging Records

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

mnShortItemNumerITMMATH_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

szBranchPlantMCUcharNONENONE

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.

szFromDocumentTypeDCTOcharNONENONE

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

szToDocumentTypeDCTOcharNONENONE

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

cSuppressErrorMessagesEV01charNONENONE

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.

Related Functions

None

Related Tables

F3412 MPS/MRP/DRP Lower Level Requirements File