cancel
Showing results for 
Search instead for 
Did you mean: 

Assistance for BAPI_COSTCENTERGROUP_CREATE function

luis_cardonaolas
Explorer
0 Kudos

Hi all,

Please can you help me how to create cost center using BAPI_COSTCENTERGROUP_CREATE?

I don't really know how to do it and use that BAPI..PLEASE, just give me example and logic to do it.

PLEASE

Thanks.

Luis.

Accepted Solutions (0)

Answers (1)

Answers (1)

iklovski
Active Contributor
0 Kudos

Hi,

Go to SE37, enter the BAPI and press 'Documentation' button. It has very good example of the usage.

Regards,

Eli

luis_cardonaolas
Explorer
0 Kudos

Hi Eli,

Where is 'Documentation' button is SE37.

Thanks.

Luis

iklovski
Active Contributor
0 Kudos

Hi Luis,

Go to SE37, enter the FM name, press 'Display', then you'll have 'Documentation' in the right corner.

Alternatively, you can go to BAPI transaction and find there the structure and documentation of all BAPIs.

Regards,

Eli

luis_cardonaolas
Explorer
0 Kudos

Thanks Eli,

I'll tell you my case.

I have this standard hierarchy: Example.

Group 1

Group 11

Group 111

Group 1111

Group 11111

Value xxxx

Group 11112

Value yyyy

Group 11113

I need to create the node Group 11113 inside the node Group 1111

Which parameters I need to pass to the BAPI and How?

Regards.

Luis.

iklovski
Active Contributor
0 Kudos

As said there, assign '4' Hierarchy Level to 11113, while 1111 will have '3' level. Valcount should be granted with the nudmber of intervals/values, while values themselves are put in HIERARCHYVALUES structure.

Also, be alert to this remark:

"You may only change the standard hierarchy compatibly using this method. You may not move, insert or remove cost centers or sub-trees that contain cost centers."

luis_cardonaolas
Explorer
0 Kudos

Hi again Eli,

These are the parameters I've introduced

Hierarchynodes

Group name / hierlevel / valcount / descrip

Group 1111 / 3 / 0 /

Group 11113 / 4 / 0 / New Name

Hierarchyvalues

Nothing.

I've tried the BAPI and the message retuned is "Set Hierarchy inconsistent".

What's wrong?

Thanks in advanced.

iklovski
Active Contributor
0 Kudos

Cannot tell, really... Try to debug the BAPI and see why it's issuing this message.