Do you have any question about this error?
Message type: E = Error
Message class: KJ - Cost Object Controlling for Make-to-Order Production
Message number: 338
Message text: Profit basis & can only be used with a sales order
If profit basis &v1& is used, the planned costs used for calculating
the profit are calculated in the standard cost estimate for the
material. This process is only allowed for a sales order item.
For logistical orders (such as production orders) and projects, the
planned costs are calculated in <DS:GLOS.cost_element_planning>cost
element planning</> or in a <DS:GLOS.unit_costing>unit cost
estimate</>.
Go into Customizing in the valuation method and choose a profit basis
that calculates the profit by using the costs and revenues planned by
cost element.
Error message extract from SAP system. Copyright SAP SE.
KJ338
- Profit basis & can only be used with a sales order ?The SAP error message KJ338, which states "Profit basis & can only be used with a sales order," typically occurs in the context of profitability analysis (CO-PA) when trying to execute a transaction that requires a sales order reference, but the system cannot find one or the context is not appropriate for the profit basis being used.
Cause:
- Incorrect Profit Basis: The profit basis you are trying to use is configured to only work with sales orders, but the transaction you are executing does not have a sales order associated with it.
- Missing Sales Order: The transaction might not have a sales order linked to it, which is necessary for the profit basis to be valid.
- Configuration Issues: There may be configuration settings in the profitability analysis that restrict the use of certain profit bases to specific transaction types.
Solution:
- Check Transaction Type: Ensure that the transaction you are trying to execute is indeed linked to a sales order. If it is not, you may need to change the transaction type or the profit basis.
- Review Profit Basis Configuration: Go to the configuration settings in SAP (transaction code SPRO) and check the settings for the profit basis you are using. Make sure it is set up correctly to be used with the intended transaction types.
- Link Sales Order: If the transaction should have a sales order, ensure that it is properly linked. You may need to create or assign a sales order to the transaction.
- Consult Documentation: Review SAP documentation or help resources related to CO-PA and profit basis configurations for additional insights and best practices.
Related Information:
KE30
(CO-PA report), KE24
(CO-PA line item display), and KOB1
(Order line item display) to analyze the data and understand the context of the error.If the issue persists after checking these aspects, it may be beneficial to consult with your SAP support team or a functional consultant who specializes in CO-PA for further assistance.
Get instant SAP help. Start your 7-day free trial now.
KJ337
Results analysis with profit basis & not possible on sales order
What causes this issue? For a sales order item, the planned costs that are used as a basis for calculating the profit can be calculated in the follow...
KJ336
Asterisk not allowed as masking character for assignment definition
What causes this issue? You used an asterisk (*) instead of a plus sign (+) as the masking character.System Response The system issues an error mess...
KJ339
Quantity-based results analysis only possible for sales order
What causes this issue? The <DS:GLOS.results_analysis_version>results analysis version</> specifies a <DS:GLOS.results_analysis_type&g...
KJ340
Manual RA data only if cutoff period & < start of RA &
What causes this issue? The <DS:GLOS.cutoff_period>cutoff period</> divides the life cycle of the object into open and closed periods. &l...
Click on this link to search all SAP messages.