DSIYGNI1 DELETE ITEM

TITLEVALUE
NAMEDSIYGNI1 DELETE ITEM
DESCRIPTIONAttempts to delete an item from the inventory point. Manager Key is
required!!! First checks if item can be deleted, then deletes item, with
option to also delete item from distribution points.
TAGDELETE
ROUTINEDSIYGNI1
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERSTN
DESCRIPTION3 digit station #
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH3

INPUT PARAMETERSSEQUENCE NUMBER2
INPUT PARAMETERTYPE
DESCRIPTIONType of Inventory Point: W=Warehouse, P=Primary, S=Secondary
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH1

INPUT PARAMETERSSEQUENCE NUMBER3
INPUT PARAMETERDSIYIEN
DESCRIPTIONThe Inventory Point from which to delete the item.
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH30

INPUT PARAMETERSSEQUENCE NUMBER4
INPUT PARAMETERDSIYTIEN
DESCRIPTIONIEN of the INVENTORY ITEM to delete.
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH30

INPUT PARAMETERSSEQUENCE NUMBER5
INPUT PARAMETERDELDIST
DESCRIPTIONPass 1 to delete item from all distribution points.

"D" - If item in Primary DP is deleted, delete item in Stocked Secondaries
"W" - Do not delete item. Only return Warnings or state if item is OK to
delete.
"O" - Display Outstanding Orders
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH1

INPUT PARAMETERSSEQUENCE NUMBER6
INPUT PARAMETERWARNONLY
DESCRIPTIONFlag to run DELETE in "warning only" mode. This mode will check for all
errors that may prevent deletion or warnings with which the user should
be presented before deleting, but will not delete the item. In this mode,
errors or warnings will be indicated by a list of the standard
"-1^error/warning message", and, if the item is okay to delete, will
return "1^OKAY TO DELETE".
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH1

RETURN VALUE TYPEARRAY
RETURN PARAMETER DESCRIPTIONFirst line of return indicates success or failure of deletion.

RET(1)=-1^Error message if error or deletion failure

or

RET(1)=1^Success message

If item cannot be deleted due to outstanding orders, return is:

RET(0)=-1^ITEM HAS OUTSTANDING ORDERS:
RET(1..n)=IEN of outstanding order (file #445.3)

After this are two sections:

RET(n)=$$START CODE SHEET$$
below this are any error messages pertaining to sending code sheet
(warehouse inventory points only)
Nothing in here means success

RET(n)=$$START DISTRIBUTION POINTS$$
If DELDIST=1, subsequent lines are:
RET(m)=DIST PT IEN^DIST PT NAME^ITEM DELETED
or
RET(m)=-DIST PT IEN^DIST PT NAME^Error Message
Otherwise, subsequent lines are:
RET(m)=DIST PT IEN^DIST PT NAME
AVAILABILITY
INACTIVE
CLIENT MANAGER
WORD WRAP ON
VERSION
SUPPRESS RDV USER SETUP
APP PROXY ALLOWED