VerifySalesOrderBeforeUpdate

Verify Sales Order Before Update

Minor Business Rule

Object Name: B4200150

Parent DLL: CDIST

Location: Client/Server

Language: C

Use this function to disallow changes to a sales order if its next status code is greater than a 
predetermined status or if the order is currently being processed by the Warehouse system.  If the order 

is not available for updates, this function will return with a '1' in the ErrorCode^

^

Data Structure

D4200150 - Verify Sales Order Before Update

Parameter NameData ItemData TypeReq/OptI/O/Both
szNextStatusNXTRcharNONENONE

A user defined code (system 40/type AT) indicating the next step in the order flow of the line type.

szStatusThresholdNXT2charNONENONE

User defined code (40/AT) that specifies what the next standard step is in the processing cycle for this order type. You set up the steps for 
the processing cycle on the Order Activity Rules form.

cWarehouseFlagSWMScharNONENONE

This flag can contain the following values:    blank Sales Order line which has not entered warehousing.    I Sales Order line inside the 
warehousing system.  These lines cannot be modified.    O Sales Order line which entered and exited the warehousing system.

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

Related Functions

None

Related Tables

None