Message type: E = Error
Message class:  SGT_01 - SGT_01 
Message number: 138
Message text: You must enter the batch number when a new line is added
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 SGT_01138, which states "You must enter the batch number when a new line is added," typically occurs in the context of batch management in SAP. This error indicates that the system requires a batch number to be specified for a material that is batch-managed when a new line item is added to a document, such as a sales order, purchase order, or goods movement.
Cause: Batch Management Requirement: The material in question is set up for batch management, meaning that it requires a batch number for inventory tracking and management. Missing Batch Number: When you attempt to add a new line item to a document, the system expects a batch number to be provided, but it is either missing or not entered. Configuration Settings: The configuration settings for the material or the document type may enforce the requirement for a batch number.
Solution: Enter Batch Number: When adding a new line item,
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
SGT_01137 Either constant &1 or table-field combination &2 can be maintained
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SGT_01136 Characteristic &1 is invalid for segmentation structure &2
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SGT_01139 Stock segment for batch &1 canÆt be changed. See long text.
What causes this issue?  You cannot change the stock segment of a batch for which there is either a stock or a document.System Response  The system is...
SGT_01150 Seg. strategy &1 for matl &2 doesn't have any 'DIM' relevance char.
What causes this issue?  The <DS:DE.SGT_DIM_FUN>Relevance</> of the characteristics in the segmentation structure for the specified strate...
Click on this link to search all SAP messages.