I need to write a report that shows Capacity evaluation for a list of Work centers.
it is something like CM50 - "Capacity evaluation" transaction but for a list of Work centers.
I try to find Function Module to get Capacity Requirements Records on a certain date
I explored CM50 transaction, than is CM10 that is SAPMC65B Program, and it looks like it forms all the data inside without external Function Module.
and it looks overloaded as it brings together code for all Cmxx transactions in one place.
Main data is kept in table KBED - Capacity Requirements Records
So the question is:
Does the SAP have Function Module to get Capacity Requirements Records on a certain date or other FMs to get Capacity Requirements Records?
Thank you for information but I was not able to take advantage of these programs.
CY_BT_KBED_SEL_READ always falls into the dump.
Category ABAP Programming Error
Runtime Errors MESSAGE_TYPE_X
ABAP Program SAPLCYBT
Application Component PP-CRP-SCH
Trigger Location of Runtime Error
Module type (FUNCTION)
Module Name CY_BT_KBED_SEL_READ
Using METHOD if_dimsppb_resource~get_detail i can get table is a table es_resource-res_load where it keep information about capacities with hourly splits.
But if to summarize data to get daily split the result is different from what returns CM50
AVAILABLE_CAPACITY looks correct
CAPACITY_LOAD = 48 but real required capacity = 56
looks like CL_CAPACITY_WPS does not support overloaded capacities.
Do the SAP have FMs or classes that returns required capacity rather than load?