CancelSO_KitOrCfgComponents

Cancel SO Kit or Configurator Components

Minor Business Rule

Object Name: B4201170

Parent DLL: CDIST

Location: Client/Server

Language: C



Functional Description


Purpose


This business function cancels all components of Kit or Configurator Item when it is canceled in Sale 

Order.



Setup Notes and Prerequisites


None.


Special Logic


None.


Technical Specification



Data Structure

szErrorMessageIDDTAI

cSuppressErrorMessageSUPPS

mnSaleOrderNumberDOCO

szSO_TypeDCTO

szSO_CompanyKCOO

mnSO_LineNumberLNID

mnJobNumberJOBS

szComputerIDCTID

cCacheOnEV22EV22

cCurrencyControlCRYR

szProgramIdPID

szVersionVERS

jdDateUpdatedUPMJ

mnWKRelatedOrderProcMATH01

cStockingTypeSTKT

cErrorCodeERRC

mnLastLineNoAssignedLNIX

mnWKOrderTotalOTOT

mnWKForeignOrderTotalFAP

mnWKTotalCostTOTC

mnWKForeignTotalCostFCST



Related Tables


Table Table Description


F4211Sale Order Detail File



Related Business Functions


Source NameFunction Name


B4200310Edit Line



Processing


• Retrieve all the components from F4211. (with DOCO, DCTO, KCOO, and Line Number between LNID and 
LNID +1

• Call B4200310 with cancel mode for each component.


Data Structure

D4201170 - Cancel SO Kit or Configurator Components





Special Input Expected


Parameters:


Data Item Data Structure DescriptionI/ORequiredNotes

SUPPS      Suppress Error Message       I   N      Other = Allow runtime

                                                                    error message

                                                            1 = Suppress runtime

                                                                error message

DOCO      Sale Order Number             I   Y

DCTO      SO Type                   I   Y

KCOO      SO Company                   I   Y

LNID      SO Line Number              I   Y

JOBS      Job Number                   I   Y

CTID      Computer ID                   I   Y

EV22      Cache On                   I   Y

CRYR      Currency Control             I   Y

PID      Program ID                   I   Y

VERS      Version                   I   Y

JDEDATEDate Updated             I   Y

MATH01WK Relate Order Proc       I   Y

LNIX      Last Line No Assigned       I   Y

OTOT      WK Order Total             I   Y

FAP      WK Foreign Order Total       I   Y

TOTC      WK Total Cost             I   Y

FCST      WK Foreign Total Cost       I   Y


Special Output Returned


Parameters:


Data Item Data Structure DescriptionI/ORequiredNotes

DTAI      Error Message Id             O    N



^

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

cSuppressErrorMessageSUPPScharNONENONE

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.

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

szSO_TypeDCTOcharNONENONE

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

szSO_CompanyKCOOcharNONENONE

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.

mnSO_LineNumberLNIDMATH_NUMERICNONENONE

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.

mnJobNumberJOBSMATH_NUMERICNONENONE

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

szComputerIDCTIDcharNONENONE

cCacheOnEV22EV22charNONENONE

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

cCurrencyControlCRYRcharNONENONE

A code that specifies whether to use multi-currency accounting, and the method of multi-currency accounting to use: Codes are:    N Do not 
use multi-currency accounting. Use if you enter transactions in only one currency for all companies. The multi-currency fields will not appear 
on forms. The system supplies a value of N if you do not enter a value.    Y Activate multi-currency accounting and use multipliers to convert 
currency. The system multiplies the foreign amount by the exchange rate to calculate the domestic amount.    Z Activate multi-currency 
accounting and use divisors to convert currency. The system divides the foreign amount by the exchange rate to calculate the domestic amount.

szProgramIdPIDcharNONENONE

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.

szVersionVERScharNONENONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

jdDateUpdatedUPMJJDEDATENONENONE

The date that specifies the last update to the file record.

mnWKRelatedOrderProcMATH01MATH_NUMERICNONENONE

- - - Good Performance Low Value. 

cStockingTypeSTKTcharNONENONE

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

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

mnLastLineNoAssignedLNIXMATH_NUMERICNONENONE

mnWKOrderTotalOTOTMATH_NUMERICNONENONE

The total value of all lines on the order that have not been shipped and billed to the customer.

mnWKForeignOrderTotalFAPMATH_NUMERICNONENONE

The unpaid foreign amount of a transaction.

mnWKTotalCostTOTCMATH_NUMERICNONENONE

mnWKForeignTotalCostFCSTMATH_NUMERICNONENONE

cCMLineActionACTNcharOPTNONE

A code that specifies the action that is performed. Valid values are: A Add C Change

cCMRecdWrittenToWFEV18charOPTNONE

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

mnCMLineNoXLINMATH_NUMERICOPTNONE

Line number.

szParentLineTypeLNTYcharOPTNONE

A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as 
General Ledger, Job Cost, Accounts Payable, Accounts Receivable, and Inventory Management. It also specifies the conditions under 
which a line prints on reports, and it is included in calculations. Codes include the following: S Stock item   J Job cost   N Nonstock item   F Freight  
T Text information   M Miscellaneous charges and credits   W Work order

Related Functions

B4200310 Sales Order Entry Master Business Function

Related Tables

F4211 Sales Order Detail File