How To Fix MC359 - Function module & already exists and is locked


SAP Error Message - Details

  • Message type: E = Error

  • Message class: MC - Aggregate: views, matchcodes, lock objects

  • Message number: 359

  • Message text: Function module & already exists and is locked

  • Show details Hide details
  • What causes this issue?

    The function module to be generated already exists and may not be
    changed at the moment because it is locked.

    System Response

    Neither the ENQUEUE nor DEQUEUE function module were generated.

    How to fix this error?

    If the lock still exists after several attempts, check in the lock
    management who set the lock. Perhaps you can unlock manually after
    contacting the person who set the lock.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message MC359 - Function module & already exists and is locked ?

    The SAP error message MC359, which states "Function module & already exists and is locked," typically occurs when there is an attempt to create or modify a function module that is already locked by another user or process. This can happen during development or when changes are being made to function modules in the SAP system.

    Cause:

    1. Concurrent Access: Another user or process is currently editing or has locked the function module.
    2. Transport Request: The function module might be part of a transport request that is currently being processed.
    3. System Lock: The system may have a lock due to a previous session that did not close properly or due to a system error.

    Solution:

    1. Check Lock Entries:

      • Use transaction code SM12 to check for lock entries. You can filter by the function module name to see if it is locked by another user.
      • If you find a lock that is no longer needed, you can delete it (if you have the necessary authorizations).
    2. Wait for Release:

      • If another user is working on the function module, you may need to wait until they finish their work and release the lock.
    3. Transport Management:

      • If the function module is part of a transport request, ensure that the transport is completed and not in a pending state.
    4. Check for Background Jobs:

      • Sometimes, background jobs may hold locks. Check transaction SM37 to see if there are any jobs that might be locking the function module.
    5. Restart the Session:

      • If you suspect that the lock is due to a session that did not close properly, try logging out and logging back into the SAP system.
    6. Contact Basis Team:

      • If you are unable to resolve the issue, it may be necessary to contact your SAP Basis team for assistance. They can help identify and resolve any underlying issues with locks in the system.

    Related Information:

    • Transaction Codes:

      • SM12: To view and manage lock entries.
      • SM37: To monitor background jobs.
      • SE37: To view and edit function modules.
    • SAP Notes: Check for any relevant SAP Notes that may provide additional insights or solutions related to this error message.

    • Documentation: Review SAP documentation for function modules and locking mechanisms to better understand how locks are managed in the system.

    By following these steps, you should be able to identify the cause of the error and take appropriate action to resolve it.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


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 simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant