Message type: E = Error
Message class: /AIF/API_CUST -
Message number: 118
Message text: Custom function &1 contains unsaved changes; reload failed
Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.
To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.
Unfortunately, there isn't any extra information in this error notice.
First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).
Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.
You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.
The SAP error message
/AIF/API_CUST118 Custom function &1 contains unsaved changes; reload failed
typically occurs in the context of the Application Interface Framework (AIF) when there are unsaved changes in a custom function module or configuration that you are trying to reload or execute. Here’s a breakdown of the cause, potential solutions, and related information:Cause:
- Unsaved Changes: The error indicates that there are unsaved changes in the custom function module or configuration. This can happen if you have made modifications in the SAP GUI or in the AIF configuration but have not saved those changes.
- Session State: If you are working in a session where changes were made but not committed, the system will prevent reloading to avoid losing those changes.
- Locking Mechanism: SAP has a locking mechanism to prevent concurrent changes that could lead to inconsistencies. If a function is locked due to unsaved changes, it cannot be reloaded.
Solution:
- Save Changes: Ensure that you save any changes made to the custom function or configuration. You can do this by navigating to the relevant transaction or configuration screen and saving your work.
- Check for Locks: If you are unable to save, check if there are any locks on the function module or configuration. You can use transaction
SM12
to view and manage locks.- Reload the Function: After saving your changes, try reloading the function or configuration again. This should resolve the error.
- Use Transaction Codes: If you are working in a specific transaction, ensure you are using the correct transaction codes to access and modify the custom functions.
- Clear Cache: In some cases, clearing the cache or restarting the AIF service may help resolve issues related to unsaved changes.
Related Information:
AIF
, SE80
(Object Navigator), and SE37
(Function Builder) for managing custom functions.By following these steps, you should be able to resolve the error and successfully reload your custom function in SAP AIF.
/AIF/API_CUST117 Custom function &1 does not exist
Self-Explanatory Message Since SAP believes that this specific error message is ...
/AIF/API_CUST116 Custom function &1 already exists
Self-Explanatory Message Since SAP believes that this specific error message is ...
/AIF/API_CUST119 Failed to insert custom message texts into the database
Self-Explanatory Message Since SAP believes that this specific error message is ...
/AIF/API_CUST120 Failed to insert the custom message text &1 into the database
Self-Explanatory Message Since SAP believes that this specific error message is ...
SAP messages fall into 3 different categories: Error messages
(message type = E), Warnings (W) or Informational (I) messages.
An error message will prevent you from continuing your work - it is a hard stop and you need to fix the error before you can proceed. A warning message will stop your work, however, you can then bypass the warning by pressing the Enter key on your keyboard. That said, it is still good practice to investigate the cause of the warning message and address it. An information message will not stop your work and is truly just for informational purposes.
Click on this link to search all SAP messages.