Iam getting below mentioned error while previewing the report.
"Cannot Create the value File"
Please suggest me
Additional note to what kamala says.
The best thing to do is to maintain the settings prescribed for DMS as per sap note:1091699
You can use the utility program RC14SXDVSCHECK to check the most important DMS functions that are used by EH&S. if there is any error, check the DMS system and correct the settings.
If you are dealing with the "Archive link" to store your documents, these kind of errors could be possible.
for the same, check the configuration in below path -
SPRO > Environment, Health & Safety > Basic data and tools > Tools > Document Storage > EH&S Archive link > Assign EH&S documents types to Data carriers.
Here, if you find the data carrier other than "SAP-SYSTEM", for any of the documents especially - DBE, DBV, SBE, SBR, SBV, etc.,
If you have possibility to change the settings to "SAP-SYSTEM", in your development or sand box systems, try to do and test again. In this case you have a possibility to come out of the error, as the documents are getting stored in SAP SYSTEM instead of Archive link.
while generating the preview, program expects one more document no. other than existing. but here for both the documents a single No. available. so the document cannot be read.
If you would like to continue with Archive-link, you have to implement the SAP NOTE - 1022497
check the possibilities, and take an action.