Message type: E = Error
Message class:  /SAPAPO/PDEM -  
Message number: 871
Message text: Excel file name exceeds the maximum length
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/PDEM871 indicates that the Excel file name you are trying to use exceeds the maximum length allowed by the system. This error typically occurs when exporting data from SAP APO (Advanced Planning and Optimization) to an Excel file, and the filename you have specified is too long.
Cause: Filename Length: The maximum length for a filename in many systems, including SAP, is often limited to 255 characters. If the filename you are trying to use exceeds this limit, you will encounter this error. Path Length: In addition to the filename itself, the full path to the file (including directories) may also contribute to the total length. If the combined length of the path and filename exceeds the system's limit, it can trigger this error.
Solution: Shorten the Filename: Reduce the length of the filename to ensure it is within the acceptable limit. Aim for a concise and descriptive name that captures
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
/SAPAPO/PDEM870 End of SD Demand data Excel File Upload
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
/SAPAPO/PDEM869 Start of SD Demand data Excel File Upload
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
/SAPAPO/PDEM872 Data from Excel file successfully saved in the SD Demand table
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
/SAPAPO/PDEM873 Error occured while saving datas in SD demand table from Excel file
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.