Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix AY138 - When entering the amount, also enter the cost element


SAP Error Message - Details

  • Message type: E = Error

  • Message class: AY - Deprec. simulation - maint. module (AIPS) /gen. master data

  • Message number: 138

  • Message text: When entering the amount, also enter the cost element

  • Show details Hide details
  • What causes this issue?

    You entered the amount &V1& for this part of the origin amount,
    but you did not enter a cost element.

    How to fix this error?

    Enter a cost element, or change the amount to 0, so that the entry
    will be ignored.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message AY138 - When entering the amount, also enter the cost element ?

    The SAP error message AY138 typically occurs when you are trying to enter a financial transaction (such as a journal entry) without specifying a cost element. This error is common in the context of controlling (CO) and financial accounting (FI) modules, where cost elements are necessary for tracking costs and revenues.

    Cause:

    The error message AY138 is triggered when:

    • You attempt to enter an amount in a financial document (like a journal entry) without providing a corresponding cost element.
    • The system requires a cost element to allocate the amount to a specific cost category or account.

    Solution:

    To resolve the AY138 error, you should:

    1. Identify the Cost Element: Determine which cost element is appropriate for the transaction you are trying to record. Cost elements can be primary (directly linked to financial accounts) or secondary (used for internal cost allocation).

    2. Enter the Cost Element: When entering the amount in the transaction, ensure that you also enter the corresponding cost element in the designated field.

    3. Check Configuration: If you are unsure about which cost element to use, consult with your finance or controlling team, or check the configuration in the SAP system to understand the mapping of accounts and cost elements.

    4. Review Document Type: Ensure that the document type you are using allows for the entry of cost elements. Some document types may have specific requirements.

    5. Training and Documentation: If you are new to the system, consider reviewing training materials or documentation related to financial postings and cost accounting in SAP.

    Related Information:

    • Cost Elements: In SAP, cost elements are used to categorize costs and revenues. They are essential for internal reporting and controlling purposes.
    • Transaction Codes: Familiarize yourself with relevant transaction codes (like FB50 for general ledger postings) and their requirements regarding cost elements.
    • SAP Notes: Check SAP Notes or the SAP Help Portal for any specific notes related to error AY138, as there may be updates or patches that address this issue.

    If the problem persists after following these steps, it may be beneficial to consult with your SAP support team or a functional consultant who specializes in financial accounting and controlling.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker