Hello
There is no BAPI for capacity leveling transactions.
You can explore the following function modules, but be aware that they were originally designed to be used on SAP standard programs, so they are not user friendly and they can be changed on a support package:
- CR_CAPACITY_AVAILABLE_PERIODS - Reads the available capacity from work center
- CY_PRIMARY_SELECTION - Function module for selection of orders for the work center
- CY_SECONDARY_SELECTION - Check for additional criteria
- CY_GET_PART_CAPACITY - used only for the first period to read backlog
- CY_LOAD_DISTRIBUTION - Distribution key
BR
Caetano