Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Cost center : which message type or BAPI to use in lsmw to upload cost cent

Former Member
0 Kudos
555

hi all,

I want to upload Cost center (tcode-ks01).

Business object or Idoc type shud i use.

Please help.

Thanks in advance.

Ramgopal

5 REPLIES 5

Former Member
0 Kudos
127

hi Ramgopal,

u can check the bapi-<b>BUS1112</b> for cost center, and from the methods what ever u want u can take based upon requirement

if u find it useful plz mark the points.

<b>check the IDOC method with message type COSMAS and basic type COSMAS1</b>

it should workout now

Regards,

Naveen

Message was edited by: NAVEENKUMAR GUDURI

0 Kudos
127

Hi,

This object type is for creation of cost center groups. Have u ever used it to create cost center ?

if yes please tell me, its urgent.

Ramgopal

ferry_lianto
Active Contributor
0 Kudos
127

Hi Ramgopal,

You can use IDoc type <b>COSMAS01</b>, message type <b>COSMAS</b> and process code <b>COSM</b> to create cost center.

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.

0 Kudos
127

Hi,

Have u used this to create cost center ? Actualy when i m using this, idocs are getting posted successfully but no cost center is getting created.

What could be the problem. I realize that cost center's must be activated during creation. If they are not active they wont get updated in database.

if u have created plz tell me what am i missing ?

ferry_lianto
Active Contributor
0 Kudos
127

Hi,

Please check your new controlling area (KOSKR) and cost center (KOSTL) and ensure they are never exist in SAP. Use this FM to validate OBJECT_NUMBER_GET_KS.

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.