Ansicht
Dokumentation

/SAPAPO/MSP_CREATE_FREE_SLOT - Create free maintenance slot

/SAPAPO/MSP_CREATE_FREE_SLOT - Create free maintenance slot

Fill RESBD Structure from EBP Component Structure   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

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_MSG
IT_CREATE_SLOT
IV_PLAN_VERSION_ID
IV_PLAN_VERSION_NO
IV_SCHEDULING_MODE

Exceptions

Function Group

APO/SAPLMSP_SLOT

TXBHW - Original Tax Base Amount in Local Currency   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 3047 Date: 20240419 Time: 215323     sap01-206 ( 53 ms )