CleanupCfgRelatedOrders

CleanupCfgRelatedOrders

Minor Business Rule

Object Name: B3201880

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
The Business Function will perform a cleanup of F4211 and F4801 to make sure a deleted Work Order Number is not referenced.

 

1.2Setup Notes and Prerequisites
This function requires B3201470 cache to be loaded.


1.3Special Logic

None


2.Technical Specifications


2.1Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes JOBSJob NumberIRCache Job Number CFGIDmnConfigurationIDNumberIR EV01cModeIR1 

one WO was deleted perform cleanup of  F4211 and F4801;  2 all Wos were deleted, perform cleanup of F4211 SYszSystemCodeIRExpecting  

48 DOCOmnDocumentNumberIO/R*Required for mode 1 only DCTOszDocumentTypeIO/R*Required for mode 1 

only KCOOszCompanyKeyIO SFXOszSOOrderSuffixIO LNIDmnLineNumberIO/R*Required for mode 1 only SUPPScSuppressErrorMessageIO DTAIszErrorMessageIDOO


2.2Related Tables 

Table Table Description F3215 F4211 F4801


2.3Related Business Functions

Source NameFunction Name B3201470CacheProcessConfigurationID


2.4Processing

If cMode   == 1

   Read B3201470 record

    If cCacheError == 0

      Call subrutine CleanupF4211Record

       Call subrutine FindLimitComponentID

       Call subrutine ProcessImmediateChildren

        Call subrutine CleanupF4801Records

         If bRunWOEndDoc == TRUE

           Call F4801EndDocument

         End If

    End If

Else

   Call subrutine CleanupAllF4211Records

End If




3.2 Where Used: APPs/UBEs/NERs/BSFNs


Application/Business FunctionApplication/BF Name N3201800CancelDeleteConfiguredWorkOrders X4801

Data Structure

D3201880 - CleanupCfgRelatedOrders

Parameter NameData ItemData TypeReq/OptI/O/Both
szSystemCodeSYcharREQNONE

A user defined code (98/SY) that identifies a system. Valid values include: 01 Address Book 03B Accounts Receivable 04 Accounts 
Payable 09 General Accounting 11 Multicurrency

mnConfigurationIDNumberCFGIDMATH_NUMERICREQNONE

An identifier that represents a unique configuration. It is generated by a next number value and is the key to the configuration tables.

mnJobNumberJOBSMATH_NUMERICREQNONE

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

cModeEV01charREQNONE

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

mnDocumentNumberDOCOMATH_NUMERICOPTNONE

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.

szDocumentTypeDCTOcharOPTNONE

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

szCompanyKeyKCOOcharOPTNONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

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.

szOrderSuffixSFXOcharOPTNONE

In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies 
multiple transactions for an original order. For purchase orders, the code is always 000. For sales orders with multiple partial receipts against an 
order, the first receiver used to record receipt has a suffix of 000, the next has a suffix of 001, the next 002, and so on.

cSuppressErrorMessageSUPPScharOPTNONE

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.

szErrorMessageIDDTAIcharOPTNONE

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