Application Development and Automation 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: 
Read only

Cost Elements / IDocs

Former Member
0 Likes
625

Hello,

I am creating cost elements in ECC via inbound IDoc type COELEM01. I am not sure how to differentiate between primary and secondary cost elements. Any clues? When I try to post a journal entry I get the following error:

"Do not use cost element xxxxxxxxx for CO Through-postings from FI"

Based on that error message it seems as though the Primary Cost Element is getting mistaken for a Secondary Cost Element. Does anyone know if there is any particular flag or setting on the IDoc that would differentiate between primary and seconday?

1 REPLY 1
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
297

This is not really an ABAP question. You might want to ask in FI or EDI forum instead.

If you know what field the secondary/primary indicator is stored in, you can search for the same field in the IDoc documentation. Usually the field names are the same in the IDoc and database.