DSIYEPMR1 CREPMWO CREATE PMWO (4856)    REMOTE PROCEDURE (8994)

Name Value
NAME DSIYEPMR1 CREPMWO CREATE PMWO
TAG CREPMWO
ROUTINE DSIYEPMR1
RETURN VALUE TYPE ARRAY
WORD WRAP ON TRUE
DESCRIPTION
Based on Fileman option - ENPMR3
Equipment #, and period.
 
User will pass the required fields (SHOP, EEIN, M/W, MonYear, Week#) to 
identify the new PM WO. 
 
  INPUT:
   1. DSIYSHP - SHOP IEN  6922 ENGINEERING SECTION
   2. DSIYEE - EQUIPMENT INV #
   3. DSIYPM - W:week or M:month  (W or M)
   4. DSIYPMM - Month  (YYMM) 
May be used to record a PMI on any specified device, regardless of 
   5. DSIYWK - '1-5' or NULL if Monthly
 
 
If successful the process will return the data array for the new PM 
Work Order. If the PM Work Order already exists then the process will 
return an error message.
whether or not it is on an active PMI list. One use envisioned for this 
is recording the results of 'area sweeps'. If the specified device is in 
the scheduled PMI program and it appears that a PMI recorded via this 
option may make it desirable to change the scheduled FREQUENCY or the 
STARTING MONTH, the user will be afforded an opportunity to do so.
 
This RPC will create a new PM Work Order based on the specified Shop, 
INPUT PARAMETER
  • DSIYSHP
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   16
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    Pass the Shop IEN file ENGINEERING SECTION (6922).
    
  • DSIYEE
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   16
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    Pass the Equipment Number file EQUIPMENT INV.(#6914)
    
  • DSIYPM
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   1
    REQUIRED:   NO
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    Pass W for a Weekly PM WO or M for a Monthly PM WO.
    If no value then process will default to M.
    
  • DSIYPMM
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   4
    REQUIRED:   YES
    SEQUENCE NUMBER:   4
    DESCRIPTION:   
    Pass the YYMM associated with the PM WO.
    
  • DSIYWK
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   1
    REQUIRED:   NO
    SEQUENCE NUMBER:   5
    DESCRIPTION:   
    If the PM WO is to be weekly then pass the week # 1-5.
    If the PM WO is monthly then no vlaue is required.
    
RETURN PARAMETER DESCRIPTION
RETURN PARAMETER
 
Returns data for Work Order created by this RPC.
Includes the field data in the Work Order File ^ENG(6920), does not
return data for Word Processing Fields or Multiple Fields
  
(#)=Field #^ Table Name/Description^ Internal Value^ External Value
 
DSIYRET(0)=-1^error message if errors are found