DSIYGO01 AUTOGENS SECONDARY (4020)    REMOTE PROCEDURE (8994)

Name Value
NAME DSIYGO01 AUTOGENS SECONDARY
TAG AUTOGENS
ROUTINE DSIYGO01
RETURN VALUE TYPE GLOBAL ARRAY
WORD WRAP ON TRUE
DESCRIPTION
AUTOGENS
 
Runs AutoGen for a Secondary.
 
The first time through, the user might be warned that there are existing 
orders outstanding for this secondary.  The GUI can allow the user to 
"FORCE" the run the second time through.
INPUT PARAMETER
  • PIEN
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   15
    REQUIRED:   NO
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    PIEN
     
    Primary Distribution Point to stock from.  If blank assume ALL primary 
    distribution points can be used.
     
    ASSUMPTION:  All user validation for this primary distribution point has 
    been done no checking is done in this RPC.
    
  • IPIEN
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   15
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    IPIEN
     
    IEN for the Secondary Distribution Point which is being stocked - 
    Required.
     
    ASSUMPTION:  All validation as to whether the user has access to this 
    Distribution Point has been done - this RPC will not check for this.
    
  • FORCE
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   1
    REQUIRED:   NO
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    FORCE
     
    Set to 1 if the first time through the user was warned that there are 
    outstanding distribution orders.  If the user agrees they want to run 
    AutoGen anyways, call it again with FORCE=1
    
RETURN PARAMETER DESCRIPTION
RETURN PARAMETER
 
DSIYRET(1)="0^<Warning Message>    If there are warnings/no data
DSIYRET(1)="-1^<Error Message>     if there are errors
DSIYRET(1)=Distribution Order #    if successful