cancel
Showing results for 
Search instead for 
Did you mean: 

Required and Available Capacity

babarkhan_mujawar
Participant
0 Kudos

Hi all,

For Z-Report, i have field for Required Capacity and Available Capacity. Please help me to understand how to calculate the required capacity and available and fetch in Z- reports.

I have tables

KBKO Header record for capacity requirements

KBED Capacity requirements records

KBEZ Add. data for table KBED (for indiv. capacities/splits)

Please provide the logic to get required and available capacity.

Accepted Solutions (0)

Answers (2)

Answers (2)

marianoc
Active Contributor
0 Kudos

Hi SAPPP,

I had a similar requirement in the past and we copied the standard CM01 program (and some of the includes) in order to get the exactly same result in an internal table. I recommend to do this. CM01 calls several functions, most of them not released, and its not so simple to replicate the logic working with tables or a single FM.

If you are interested, send me a private message and I will share the ABAP code. You can use it as an example.

Kind Regards,

Mariano

former_member705068
Discoverer
0 Kudos

Hi Mariano, I know it was a long time ago, but maybe you still have that ABAP code?

0 Kudos

Hello, Could you share ,thank you so much. E-mail:jasonl@longerinfo.com

pettr79
Member
0 Kudos

Hello Mariano, could you share the code please ?

Thank you

Petr

former_member751591
Participant
0 Kudos

Thanks for coming to SAP Community for answers. Please post your question as a new question here:

Since you're new in asking questions here, check out our tutorial about asking and answering questions (if you haven't already), as it provides tips for preparing questions more effectively, that draw responses from our members.

Please note, that your post here won't be answered.

0 Kudos

Could you share it with me as well?

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello,

Work center ARBPL and  plant WERKS  to table CRHD & get Capacity ID KAPID.

Then pass Capacity ID as Capacity KAPIE to KAKO. Also ARBID from CRHD you can link to KBED.

Best Regards,

R.Brahmankar

babarkhan_mujawar
Participant
0 Kudos

Hi Rupesh,

Thanks for Help.

As suggested, i pass capacity ID to KAKO but No values found message get.

and Field ARBID is not found in CRHD.

Please help it out..

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello,

First check CM01 do you have capacity requirements?

In CRHD you have OBJID

OBJID = AFVC-ARBID

work center operation link is AFVC-ARBID -> CRHD-OBJID


Best Regards,

R.Brahmankar

kiran_kumar179
Active Contributor
0 Kudos

SAPPP,
Check with FM CBP_EXC_WC_CAPACITY_REQUEST for Available Capacity.

BR
KK