‎2010 Jan 14 3:15 PM
Hi ,
I am using BAPI_ACC_DOCUMENT_POST for GL postings. I am getting an error Cost center 0001/89234 does not exist on 2010.10.12 .
Also, I would like to know for which documents Cost Center, Profit center and order has to be passed?It is required for GL acounts defined as cost elements ,but how do we validate this condition in teh program?
Thanks
Vasuki
‎2010 Jan 14 3:59 PM
hi,
are you sure you are passing cost center in its right format char10?
For the bapi you have to pass it with the 0-s in front: 0000089234.
It also looks like you are passing the date reversed.
Regards,
MaryM
‎2010 Jan 14 3:31 PM
Hi,
Ye check wih functional consultant.
Cost center must be mandatory for accounting document.
Thanks.
‎2010 Jan 14 3:59 PM
hi,
are you sure you are passing cost center in its right format char10?
For the bapi you have to pass it with the 0-s in front: 0000089234.
It also looks like you are passing the date reversed.
Regards,
MaryM
‎2010 Jan 14 4:10 PM
Hi Mary ,
I am using CONVERSION EXIT to convert the cost center to required format. YEs, as you mentioned, date that I have mentioned here is wrong, but in the program I am using it in the right format. Sorry for misguiding
‎2010 Jan 14 4:13 PM
Which conversion exit? It should be CONVERSION_EXIT_ALPHA_INPUT.
Rob
Edited by: Rob Burbank on Jan 14, 2010 11:14 AM
‎2010 Jan 14 4:13 PM
Hi,
but you are still having problems with cost center?
Have you tried using online transaction to create the document - all data you enter online you have to pass also to the Bapi.
Hope you can solve it,
MaryM
‎2010 Jan 14 5:03 PM
Hi Rob,
Yes its CONVERSION_EXIT_ALPHA_INPUT . it still doesnt work fine.
I guess its because only GL accounts which are defined as cost elements require Cost center Profit center and Order to be passed. But how do i determine which GL account is defined as cost element? is it maintained in any table ,or is it dependent on posting key. Can anyone please let me know.
Thanks,
Vasukl
‎2010 Jan 14 5:13 PM