Hi Martina,
The cost element is derived from one of the values in the accounting code string. To see which specific code part you use for this purpose, please check in the Define Code String screen which code part that is set as ‘Base for Cost/Revenue Element’.
Once you know which code part is used, you have to ensure that the relevant cost postings have a value for this code part. I suspect that in this specific case the Posting Type used is M26 (Cost of Sold Non-inventory Parts), so check that this posting type is posting to the code part used.
The next step is to verify in the Cost/Revenue Element per Code Part Value screen that the specific code part is linked to a cost element. Once this has all been set up, you should get a cost element in the follow-up.
As an example, if you use Account as the base, with M26 set to the standard account of 4023, if you ensure this account is linked to e.g. the cost element for Materials you should see this on your project.
Regarding the second question, there is a checkbox called ‘Default’ in the Cost/Revenue Elements screen. If you set this checkbox for one of the cost elements then that cost element will be used if a cost element cannot be derived from the accounting code string etc as above. However, please note that by using this setting you may not notice if you are missing basic data set-up, and that cost may end up on the ‘wrong’ cost element.
Hope this helps.
Kind regards,
Johan