cancel
Showing results for 
Search instead for 
Did you mean: 

C_COSTCENTERHIERARCHYNODE_SRV is empty

former_member736133
Discoverer
0 Kudos

Hi All

SAC is connected to S4HANA on premise.

We activated all required Odata services, including C_COSTCENTERHIERARCHYNODE_SRV.

Company codes, profit centers, cost centers and other objects master data was retrieved, but hierarchy queries retrieve no data (for example, query based C_COSTCENTERHIERARCHYNODE_SRV (API for cosy center hierarchy nodes) fails to retreive, neither with filter for node types "N" or "R", nor without any filter. The same with C_PROFITCENTERHIERNODE_SRV.

The standard hierarchies in S4HANA exist.

Have you experienced such issue? Any advice?

Thank you,

Sergey

former_member736133
Discoverer

Thanks for your suggestions!

The problem was solved in the following way: the required cost and profit center hierarchies were created and activated in Fiori "Maintain hierarchies" application. It made them available for OData services for SAC (apparantly existing of cost or profit center group or standard hierarchy is not enough).

Best regards,

Sergey

Accepted Solutions (0)

Answers (3)

Answers (3)

ThomasK
Participant
0 Kudos

Hi,

before hierarchies are available you need to make them available in S/4.

Mark relevant hierarchies to be replicated: transaction HRY_REPRELEV

Replicate hierarchy: transaction HRRP_REP

BR

Thomas

saurabh_sonawane
Active Contributor
0 Kudos

Hi,

Can you please check this view C_PROFITCENTERHIERNODE in s4/hana, I think in this view data won't be present so you are getting the above error.

Thanks,

Saurabh S.

Susanne_Helbig
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear sliberman,

since we have no system access, we can only recommend to do a SAP gateway trace, in order to see what the filter looks like that is sent to the S/4HANA on-premise system. Often the requested hierarchy does not exist.

If you need technical support with performing a gateway trace, I kindly ask you to create a ticket on this for SAP (component CO-FIO-OM-PL)

Best regards

Susanne