Functional Description
Purpose
Delete exiting assignments based on different keys passed in.
Setup Notes and Prerequisites
Special Logic
Verify Assignment Exists - Process According to Mode Flag
Mode 1 = Delete based on a specific Task ID
Mode 2 = Delete based on a work order number DOCO
Mode 3 = Delete based on the routing key, DOCO, OPSQ, OPSC, MCU
Technical Specification
Performs the following based on the mode input:
Mode 1 = Delete based on a specific Task ID
Selects from F48311 based on task ID passed in.
Confirms resource type / number align with values passed in
Deletes the F48311 Assignment record using the task ID
Deletes the related payroll assignment tables
Checks if no assignments remaining. If none, updates the F4801T TRAF flag.
Mode 2 = Delete based on a work order number DOCO
Deletes the F48311 Assignment record using the work order number passed in
Checks if no assignments remaining. If none, updates the F4801T TRAF flag.
Mode 3 = Delete based on the routing key, DOCO, OPSQ, OPSC, MCU
Deletes the F48311 Assignment record using the routing key, DOCO, OPSQ, OPSC, MCU
Checks if no assignments remaining. If none, updates the F4801T TRAF flag.
If Assignment Deleted, and flag set to update the work order header
Check to see if assignment resource number deleted was on work order header
If yes, search for next available resource number
Update the work order header assigned to field
Returns
Resource Assignments exists "Assignment Deleted"
'0' - Assignment Not Deleted
'1' - Assignment Deleted
D4803060B - F48311 Delete Assignments
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cModeFlag_EV01 | EV01 | char | REQ | INPUT |
An option that specifies the type of processing for an event. | ||||
mnTaskUniqueKey_TSKID | TSKID | MATH_NUMERIC | OPT | INPUT |
A number that identifies a task that is used for resource scheduling. The task number is generated by the system. | ||||
szResourceType_RRTY | RRTY | char | OPT | INPUT |
A code that identifies the type of resource for which you are entering competency information. This is a user defined code (05/RT). Valid
| ||||
mnResourceNumber_RSCN | RSCN | MATH_NUMERIC | OPT | INPUT |
A number that represents either the address number or the asset number,depending on whether the resource that you are working with is a
| ||||
mnOrderNumber_DOCO | DOCO | MATH_NUMERIC | OPT | INPUT |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
mnOperationsSequence_OPSQ | OPSQ | MATH_NUMERIC | OPT | INPUT |
A number used to indicate an order of succession.
In routing instructions, a number that sequences the fabrication or assembly steps in the
| ||||
szTypeOperationCode_OPSC | OPSC | char | OPT | INPUT |
A user defined code (30/OT) that indicates the type of operation. Valid values include: A Alternate routing TT Travel time IT Idle time T Text | ||||
szCostCenter_MCU | MCU | char | OPT | INPUT |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
cAssignmentDeleted_EV01 | EV01 | char | OPT | OUTPUT |
An option that specifies the type of processing for an event. | ||||
cUpdateWorkOrderAssignedTo | EV01 | char | REQ | INPUT |
An option that specifies the type of processing for an event. |
None |
None |