Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Does the SAP have Function Module to get Capacity Requirements Records on a certain date

Former Member
0 Kudos

Hi All

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

but can't.

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?





2 REPLIES 2

Former Member
0 Kudos

Hi

Please try  FM : CY_BT_KBED_SEL_READ

refer to LOAD_DATA method of class CL_CAPACITY_WPS

Regards

0 Kudos

Hello Hicham.

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

    Program                                 SAPLCYBT

    Include                                 LCYBTU16

    Row                                     676

    Module type                             (FUNCTION)

    Module Name                             CY_BT_KBED_SEL_READ

-----


About CL_CAPACITY_WPS


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



01.06.2016

  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?