I had to download GOS Attachemtns via a batch job - i.e the Attachment needs to be downloaded to app server.
I am not able to find an out of box solution in SAP.So after a bit of research here is the code that I put together and it works perfect:
Code Snippet for Downloading Custom GOS Attachment to Application Server
<code removed by moderator>
Moderator message: please limit yourself to the necessary code parts, stay under 5000 characters altogether to preserve proper formatting, use code tags.
Edited by: Thomas Zloch on Jan 9, 2011 4:37 PM