Hi,
I have documents saved in table SOOD which I need to retrieve and display in Webdynpro application.
I have used the Download UI element in webdynpro to display the contents when user clicks on the file/image.
I searched the forum and found the FM 'SO_DOCUMENT_READ_API1' and used it but the field DOCUMENT_DATA doesnt return the value of DOC_SIZE. The value of DOC_SIZE is always 0.
Also I tried to convert the data 'CONTENTS_HEX' given by this FM by using the 'SCMS_BINARY_TO_XSTRING' to be used in webdynpro application.
As the value of DOC_SIZE was 0 ,In debugging mode , i considered only the number of lines which had records and did not consider lines which had '000000.....' in the table CONTENTS_HEX and calculated the input length as 255*number of lines with valid record.
Still i am unable to open the file.
It gives a message as file is corrupted when i click on the file in webynpro application
I searched the forum for why the value of DOC_SIZE is 0 but couldn't get any answers.
Please let me know as to why the value of DOC_SIZE is 0 and how to display the details correctly in webdynpro.
Thanks
Sindhu