I've discussed GOS in prior documents. But never have I put together a complete GOS document that demonstrates how to create a generic GOS class that can be used in regular SAP GUI programs, ABAP Web DynPro applications, and even ITS (Internet Transaction Server) based applications. This document discusses how to use GOS functionality (Upload, Download, List, Delete) in all those environments. Don't ask me why I chose to put a sample together for ITS applications. I just figured there may be an interest in still developing applications using ITS since it's still available and it's a lot of fun.
There a many parts to this document, but it is broken down logically to allow you to go directly to the part you are most interested in.
The class that does all the work (http://scn.sap.com/docs/DOC-41922)
CLASS ATTRIBUTES
GOS_GET_FILE_LIST
GOS_DOWNLOAD_FILE_TO_GUI
GOS_GET_FILE_XSTRING
GOS_GET_FILE_SOLITAB
GOS_ATTACH_FILE_XSTRING
GOS_ATTACH_FILE_SOLITAB
GOS_EMAIL_ATTACHED_FILE
GOS_DELETE_FILE
Using the GOS Class within classic GUI programs (http://scn.sap.com/docs/DOC-41923)
Listing Attachments
Uploading Attachments
Downloading Attachments
Emailing Attachments
Using the GOS Class within ABAP WebDynpro applications (http://scn.sap.com/docs/DOC-41925)
Basic Setup
Listing Attachments
Uploading Attachments, Downloading Attachments, Deleting Attachments
RESULT
Using the GOS Class within ITS programs (http://scn.sap.com/docs/DOC-41924)
Basic Setup
Top Include
Screen 0100 Attributes
Listing Attachments
Uploading Attachments, Downloading Attachments, Emailing Attachments
ITS HTML
RESULT