Message type: E = Error
Message class:  /SAPAPO/PDEM -  
Message number: 297
Message text: Location Prod. Not Kept in Stock (Order &1, Item &2, Prod. &3, Plant &4)
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 /SAPAPO/PDEM297 indicates that a specific product is not kept in stock at a particular location for a given order and item. This error typically arises in the context of Advanced Planning and Optimization (APO) within SAP, particularly when dealing with production planning and demand management.
Cause: Product Not Maintained in Stock: The product specified in the error message is not set up to be kept in stock at the specified location (plant). Master Data Issues: There may be issues with the master data configuration for the product, such as missing stock levels or incorrect settings in the material master. Planning Strategy: The planning strategy for the product may not allow for stock to be kept at the location. Location-Specific Settings: The location (plant) may not be configured to handle stock for the specified product.
Solution: Check Product Master Data: Go to the material master record for the product in question and ensure that it
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
/SAPAPO/PDEM296 Error Calculating Location Type (Order &1, Item &2, BSG &3, Location &4)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
/SAPAPO/PDEM295 Faulty Data (Order &1 Item &2 Sched. Line &3 Logical System &4)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
/SAPAPO/PDEM298 Error Calculating Item GUID (Order &1, Item &2)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
/SAPAPO/PDEM299 No BOD Found for Order &1, Item &2, Prod. Number &3, Loc. Number &4
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.