Ansicht
Dokumentation
/SAPAPO/MSP_CREATE_FREE_SLOT - Create free maintenance slot
CL_GUI_FRONTEND_SERVICES - Frontend Services General Material DataThis documentation is copyright by SAP AG.
Functionality
This function module creates free slots for Maintenance and Service Planning.
Import Parameters
IV_PLAN_VERSION_ID, IV_PLAN_VERSION_NO
All slots are created for the planning version of IV_PLAN_VERSION_ID / IV_PLAN_VERSION_NO. The function module can be called by transferring either the GUID of the planning version (IV_PLAN_VERSION_ID) or the name of the planning version IV_PLAN_VERSION_NO.
IT_CREATE_SLOT
Fields of table IT_CREATE_SLOT:
- STL_ID, STL_NO
- GUID and name of a slot task list. Either the GUID or the name of the slot task list can be transferred.
- CHECK_TYPE
- Check type of the slot. Check types can be defined in MSP Customizing.
- SAREA_ID, SAREA_NO
- GUID and name of a service area (resource). Either the GUID or the name of the serive area can be transferred. These parameters are optional. If they are transferred, the system only considers the modes (of the given task list) that are valid for the given service area.
- LOC_ID, LOC_NO
- GUID and name of a location. Either the GUID or the name of the location can be transferred. These parameters are optional. If they are transferred, the system only considers the modes (of the given task list) that are valid for the given location.
- PREFERRED_START
- Preferred start date of the slot as UTC time stamp (YYYYMMDDhhmmss).
- EARLIEST_START and LATEST_START
- These two fields are optional. If they are transferred, they define a tolerance window for the start date of the slot (in case of a capacity overload). The system tries to move the start date from the preferred start to the latest start. If this is unsuccessful, the system tries to move the start date from the preferred start to the earliest start. Both start times are passed as UTC time stamps (YYYYMMDDhhmmss).
IV_SCHEDULING_MODE
Slots can be created using finite or infinite scheduling. Finite scheduling creates the slot only if capacity is available. Infinite scheduling puts the slot on the preferred start date even if no capacity is available.
'0' = Finite scheduling
'1' = Infinite scheduling
Import Parameters
ET_MSG
The table ET_MSG passes back the success and error messages that have been created.
Example
Notes
Further information
Parameters
ET_MSGIT_CREATE_SLOT
IV_PLAN_VERSION_ID
IV_PLAN_VERSION_NO
IV_SCHEDULING_MODE
Exceptions
Function Group
APO/SAPLMSP_SLOTCL_GUI_FRONTEND_SERVICES - Frontend Services rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 3047 Date: 20240603 Time: 234322 sap01-206 ( 61 ms )