I am using the following blog to store Attachments in R/3 :
and able to store/retrieve Attachments on Portal. But when i try to open a document of type .doc or .xls in Portal it opens in a new window and then closes automatically in one second. The same document when i open in R/3 Transaction OAOR it works fine.
Although when I open a document of type PDF in Portal or R/3 it works fine. What can cause this.
Any help would be highly appreciated.