Message type: E = Error
Message class:  CNV_PE_GEN - Messages for object generation 
Message number: 138
Message text: Error during generation of function group in &1
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 CNV_PE_GEN138 typically occurs during the generation of a function group in the context of a data migration or conversion project, often related to the SAP S/4HANA migration or other data transformation processes. This error indicates that there was an issue during the generation of a function group, which is a collection of related function modules in SAP. Causes: Syntax Errors: There may be syntax errors in the ABAP code that is being generated or in the existing code of the function group. Missing Objects: Required objects (like function modules, data elements, or other dependencies) may be missing or not properly defined. Authorization Issues: The user executing the generation may not have the necessary authorizations to create or modify function groups. Transport Issues: If the system is in a transport environment, there may be issues with transport requests that are affecting the generation process. System Configuration: There may be configuration issues in the
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
CNV_PE_GEN137 No authorization to create DDIC table type &1
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
CNV_PE_GEN136 Generation not required as relevant object already exists
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
CNV_PE_GEN139 Alias not found for parameter &1
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
CNV_PE_GEN140 No authorization to create ABAP class &1
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.