cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a subroutine pool(MMCP****) in SAP ?

PrashantVerma
Explorer
0 Kudos

While Creating a sales order for a custom order type 'ABCD', with the given sales area , customer and material, I am getting a dump at a system generated subroutine pool 'MMCP6***; .

This generated program is having syntax error at group by clause.

Prashant001_0-1711634043098.png

Now, as the system is non modifiable here. So, what is the possible way to generate this subroutine pool in this client ? This subroutine is available in each and every system but there is no any clue how it got generated.

 

 

 

 

 

Sandra_Rossi
Active Contributor
As it is standard program, you should check the SAP notes and contact SAP support.
View Entire Topic
Sandra_Rossi
Active Contributor
0 Kudos

Transaction code MC9A which generate code based on template programs MMCP5SO2 and MMCP6SO2 (Flexible Planning: Gen. Master Data).

The generated program has name MMCP5XXX or MMCP6XXX where XXX are the characters 2 to 4 of the corresponding info structure (e.g. S500 -> XXX = 500). This can be seen in the function module MCS_CODING_PLAN2_GENER called by MC9A.

Template code corresponding to your screenshot:

Sandra_Rossi_0-1711716019726.png

As it is standard program, you should check the SAP notes and contact SAP support.

PrashantVerma
Explorer
0 Kudos
Thank you @Sandra_Rossi for your response. Related to this if the program name is MMCP6969 for instance. Then also can i proceed with this approach of generating via MC9A
Sandra_Rossi
Active Contributor
Hmm it's what I said: "The generated program has name MMCP5XXX or MMCP6XXX where XXX are the characters 2 to 4 of the corresponding info structure (e.g. S500 -> XXX = 500)."