cancel
Showing results for 
Search instead for 
Did you mean: 

The Company Code is not getting assigned to Profit center while creating CR in MDG-F

0 Kudos

Hello All,

I am very happy that I could find many blogs for MDG-F and I have been referring them too. Today I came across one incident during testing and I spent much time to solve it, but I could not.

The Financial accounting Governance was already implemented by my Manager and now I am implementing Financial controlling governance. So I had to skip many configuration steps to implement cost center and profit center process in MDG-F.

Below are the steps which I customized. I am creating CR for new profit center and I could see that the Company code is not getting derived/assigned.

Configured Steps:

Step 1 : I checked the data model, entity types, BO types and relationships and the relevant configuration for cost and profit center is in place already.

Step 2: I have customized the CR types (The CR type for profit center creation is YGT_C061) and assigned the workflow WS60800086. This workflow basically controlled from BRF+ workflow specialist and he assigns the user ID's for creation or approval of CR.

Step 3: Priorities, statuses, reasons for change request were already in place.

Step 4: I customized the step "Define Change Request Steps for Rule-Based Workflow" for all the CR types.

Step 5: The customization related to Data replication is done and it works according to requirement.

Step 6 in ERP: The company code is assigned to Controlling area. The cost center and profit center accounting is also active. Additionally, I had also created the cost center and profit center standard hierarchy in ERP for the controlling Area, to which I am creating the profit center in MDG-F (NWBC 7.0) .

We follow two step process (first step - create CR and second step - Approve CR) in MDG-F.

I am creating the CR for new profit center, but the company code is not being derived in the first step. I could see the option "Edit", but it is grayed out and no other way to assign it in first step. However in the second step (in approval step), we are able to edit the CR and assign the Company code to it.

Note: I have also tested by assigning the workflow WS75700040 to the CR type YGT_C061, but the same issue. The company code is not getting derived in profit center during CR creation.

Could you please suggest if I have to customize any additional step, in order to get the company code assigned to profit center during CR creation in the first step?.

Thanks,

Damodar Naidu

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member206605
Active Contributor
0 Kudos

Hello Damodar

1. Check your edition first. Company code should be part of it.

2. Check the CR type and make sure all the PC related entity types are added. PCCACC has to be there which is related to assignment of company code.

Kiran

0 Kudos

Hi Kiran,

Many thanks for your reply.

We use three different Edition Types (One is for Accounts, second is for consolidation dimensions and third is for Controlling).

The Entity Type "Company (company code)" has already assigned to the Edition Type of consolidated dimensions, hence the system does not allow me to assign the entity type "Company" to the Edition type of "Controlling". Therefore I will be not able to assign the entity type "Company" to the CR type which is related to PC creation.

I have attached the screen shot for your reference.

However my understanding is that; the company code has to get derived automatically while creating the CR for new profit center (in NWBC) as SAP standard right, since the company code is assigned to controlling area and profit center accounting is also active in controlling. 

One more point which I would like to highlight here is, we are able to assign the company code in the approval step (second step of CR process), but not at the first step (create the CR for new profit center).

Regards,

Damodar Naidu

Former Member
0 Kudos

Hi Damodar,

Please use Type 3 Entity COMPCODE instead of Type 1 Entity COMPANY for deriving the Company codes automatically while creating the CR for new Profit center. Company codes are coming from Standard SAP configuration so Type 3 Entity COMPCODE should work. No Company code creation/maintenance in MDG, hence no TYPE 1 entity required.

Inherit your Feeder class from the standard class CL_MDGF_GUIBB_PCTR. In this standard class, method HANDLE_COMP_CODE_ASSIGNMTS handles the automatic derivation of Company codes from the Controlling Area during CR creation

former_member206605
Active Contributor
0 Kudos

Hi

Whether MDG is deployed on hub?

Kiran

former_member206605
Active Contributor
0 Kudos

Hi

Please check the configuration id - for each step in configure CR type...May be its different at requester and approver level..

Kiran

0 Kudos

Hi MDG User,

In our project, we use entity type "COMPANY", but we do not use the entity type "COMCODE". Moreover we could not assign the entity type "COMCODE" to the Edition, since it is selected Val. entity as "No Edition".

I do not aware about the standard classes and method. Could you please help me how and where to inherit the feeder class from standard class?.

Regards,

Damodar Naidu

0 Kudos

Hi Kiran,

Yes, MDG is deployed on Hub. The configuration ID's are not assigned in any CR Type, since BRF+ workflow is controlled by ABAPer.

Regards,

Damodar Naidu

Former Member
0 Kudos

Hi Damodar,

As I understood, you have maintained Controlling area and all related Company codes in standard FICO customization.

If the same set of Company codes only have to be derived and shown in Profit center CR creation screen also, then my suggestion is to use already existing TYPE 3 entity COMPCODE. This is linked to BUKRS and standard Company code table T001.

0 Kudos

Hi MDG User,

I understand your logic, but I do not understand how to manage this solution. Could you please suggest me the step by step procedure, to derive the Com code during new profit center creation.

By the by: We have only the scenario that one company code is assigned only one controlling area  (1:1 relationship) in ERP. Hence we just need one company code (related com code) to derive during new profit center creation in NWBC.

Regards,

Damodar Naidu

former_member206605
Active Contributor
0 Kudos

Hi

Can you use the standard workflow template and not BRF and try it? I think with BRF it will not work. Assign the std workflow template ending with 27 and let me know. Also I don't suggest you to change the data model - for type 1 as it should work standard way.

Kiran

0 Kudos

Hi Kiran,

I have assigned the Workflow WS75700027 and tested. The system does not derive the Company code during the CR creation step, however in the approval step (second step), the company code is getting assigned automatically when I edit the CR.

But not able to understand why the system does not derive com code during the CR creation step!. Still I am researching and testing in many ways.

Regards,

Damodar Naidu

former_member206605
Active Contributor
0 Kudos

Oh ok...Btw which CR type you are using? Is it collective processing or single processing?

Kiran

0 Kudos

Hi Kiran,

I have created the customized CR type (YGT_C061 - create Profit center) with the option "Single processing" and Workflow WS75700027 assigned to it. I have assigned only one entity type "PCTR" and the Business activity "PCT1".

Regards,

Damodar Naidu 

Former Member
0 Kudos

Hi Damodar,

Please check the class CL_MDGF_GUIBB_PCTR method HANDLE_COMP_CODE_ASSIGNMTS.

Put a breakpoint here and try to debug during creation