‎2012 Apr 25 4:06 PM
Hello everybody.
I have a question for you.
Some times when the user try to create a document and fill the field order (BSEG-AUFNR) they have to create cost element at transaction code FS00.
I am developing a substitution to fill the field order automatically and I would like to know how to check if already exists the cost element?
Thanks in advance.
‎2012 Apr 25 4:11 PM
FS00 is for editing GL accounts, not cost elements. You'd better find out from your functional analyst just what he or she wants.
Rob
‎2012 Apr 25 4:50 PM
You can check whether a cost element exists or not using table CSKA
‎2012 Apr 26 6:45 AM
Hi,
Check it in table COAS (Order Master for Controlling (all Fields in AUFK Table)) in field AUFNR (Order Number).
Regards,
Jake
‎2012 Apr 26 7:15 AM
‎2012 Apr 26 7:50 AM
There are two kinds of cost elements : primary associated with GL accounts and secondary (not associated). The transactions to create/display those are KA01 - create primary, KA06 - create secondary and KA03 - display
If user is able to input BSEG-AUFNR, he has already input an account number whose status group allow input of an order in coding block...
Check
- Cost elements in table CSKA (CSKB with Controlling Area)
- For primary elements (required for BSEG) also check SKA1 (SKB1 with Company Code) for G/L Account Number
- orders in table AUFK
Also check transaction OKB9 which manage default account assignment for cost elements. (e.g. giving a default order for a cost element)
But I'm not really sure I understood your question.
Regards,
Raymond