SAP GOS Attachment : Authorization and Technical Overview

SAP GOS : Generic Object Services offer functions for Business Objects through different SAP Applications.
All object services are available in a function list (toolbox) in which the following functions are offered.

SAP GOS: Generic Object Services

  • Entry of personal or general notes for an object
  • Creation of attachments to an object
  • Creation of relationships between an object and documents that are in the optical archive or that are subsequently scanned in and stored.
  • Starts a workflow for an object
  • Display of an overview of all workflows, where an object is involved
  • Display of an overview of all business objects that are linked to an object You can call the linked objects by double-clicking – independent of whether the objects are from the current system or another SAP System.
  • Sending of an object as an attachment of a message
  • Subscription of an object. The user is then notified of changes to the subscribed object.
    Adding an object to the favorites list.

( source: )SAP GOS, SAP Attachment

SAP GOS Authorization

For Settings , you must have the authorizations in the roles


To use the Generic Object services, assign to user ( transaction SU01), these roles:


For Authorizations issues check the following SAP OSS Notes
491271 – Authorizations for generic object services
825348 – Authorizations for changes in the attachment list
552127 – FAQ: SAP office – Authorizations

This is a good guide for SAP Authorization: Authorizations in SAP: 100 Things You Should Know About…SAP GOS Attachment : Authorization and Technical Overview 1

Technical Overview of SAP GOS

SAP GOS TablesSAP GOS Attachment : Authorization and Technical Overview 2

SAP GOS Tables Join

SAP Mass extraction of Attachment

A recurrent business requirement is to mass extract PM attachment or Order Attachment,
Check this sample code to retrieve attachment and save them.

check this sample code: SAP Attachment Mass extraction.
SAP Mass Attachments Extraction for Sales Documents


Here the list of Class that provides almost all the functionalities for GOS in SAP ( provided by )

  • The First method GOS_GET_FILE_LIST:  This method gets a listing of all the attachment details for a specific object type and key
  • The Second Method GOS_DOWNLOAD_FILE_TO_GUI: This method by SAP GUI applications downloads the selected attachment to the workstation.
  • Third Method GOS_GET_FILE_XSTRING : This method downloads attached files when using ABAP WebDynpro Applications.
  • Next Method GOS_GET_FILE_SOLITAB : This method downloads attached files when using ITS Applications.
  • The Method GOS_ATTACH_FILE_XSTRING: This method attaches files when using ABAP WebDynpro Applications.
  • Method GOS_ATTACH_FILE_SOLITAB: This method attaches files when using ITS Applications.
  • The method GOS_EMAIL_ATTACHED_FILE : This method will email attachments
  • GOS_DELETE_FILE method helps to delete attachments

You can get all the source code for this utility class for GOS to do almost everything with Generic Object Services to download, convert, Attach, email and delete.

You may check this tutorial SAP Mass Attachments Extraction for Sales Documents (ABAP) as a business real case of the use of Attachments / SAP GOS extraction.

SAP GOS Activating Generic Object Services toolbar

An interesting SAP GOS Tutorial how to activate Generic Object Service Toolbar for two Case: ME21N ( for Purchasing Document ) and CS01/CS02 for SAP BOM.
It is based on the class CL_GOS_MANAGER.

Here a sample implementation of CL_GOS_MANAGER class:


I tried to collect and select some helpful resources on GOS

SAP and SAP logo are registered trademarks of SAP AG. is not associated with SAP AG.
We have made every effort to make sure provide relevant search results, use the content on this site at your own risk.

We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to and affiliated sites.