| NAME |
DSIYGNI1 DELETE ITEM |
| TAG |
DELETE |
| ROUTINE |
DSIYGNI1 |
| RETURN VALUE TYPE |
ARRAY |
| DESCRIPTION |
Attempts 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.
|
| INPUT PARAMETER |
-
- STN
- PARAMETER TYPE: LITERAL
- MAXIMUM DATA LENGTH: 3
- REQUIRED: YES
- SEQUENCE NUMBER: 1
- DESCRIPTION:
3 digit station #
-
- TYPE
- PARAMETER TYPE: LITERAL
- MAXIMUM DATA LENGTH: 1
- REQUIRED: YES
- SEQUENCE NUMBER: 2
- DESCRIPTION:
Type of Inventory Point: W=Warehouse, P=Primary, S=Secondary
-
- DSIYIEN
- PARAMETER TYPE: LITERAL
- MAXIMUM DATA LENGTH: 30
- REQUIRED: YES
- SEQUENCE NUMBER: 3
- DESCRIPTION:
The Inventory Point from which to delete the item.
-
- DSIYTIEN
- PARAMETER TYPE: LITERAL
- MAXIMUM DATA LENGTH: 30
- REQUIRED: YES
- SEQUENCE NUMBER: 4
- DESCRIPTION:
IEN of the INVENTORY ITEM to delete.
-
- DELDIST
- PARAMETER TYPE: LITERAL
- MAXIMUM DATA LENGTH: 1
- REQUIRED: NO
- SEQUENCE NUMBER: 5
- DESCRIPTION:
Pass 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
-
- WARNONLY
- PARAMETER TYPE: LITERAL
- MAXIMUM DATA LENGTH: 1
- REQUIRED: NO
- SEQUENCE NUMBER: 6
- DESCRIPTION:
Flag 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".
|
| RETURN PARAMETER DESCRIPTION |
First line of return indicates success or failure of deletion.
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
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:
|