Hi ,
I have attached a text document extension .txt to workitem using function module SAP_WAPI_ATTACHMENT_ADD , in the workflow log i am able to open the
text document and view it but when I try to view the text document in uwl of portal (MSS) the document opens with all question marks screenshot below.

Regards,
Simy