Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

doubt GOS

Former Member
0 Likes
963

Hi all.

Do you have any idea about GOS ?

Class Eg:CL_GOS_SRV_ATTACHMENT_CREATE

TO be reward all helpfull answers.

regards.

Jay

4 REPLIES 4
Read only

Former Member
0 Likes
638

Hi Jay,

GOS is Global Object Service which is a technique to create an attachment at the header or item level of the object.

Satish

Read only

Former Member
0 Likes
638

Hi

see the doc

of this class super class

CL CL_GOS_SERVICE

____________________________________________________

Short Text

Publication for Generic Object Services

Functionality

CL_GOS_SERVICE is an abstract class from which all services are derived that are part of generic object services.

In order to add a separate service to the generic object services, you must encapsulate these as the method EXECUTE in a subclass of the class CL_GOS_SERVICE.

Redefinition of the method EXECUTE

You must redefine the instance method EXECUTE for your service. You can access the attribute GS_OBJECT, that contains the BOR reference of the published object, in the method. The method EXECUTE and all the methods or function modules called by it are not allowed to set a COMMIT WORK. Instead, the event COMMIT_REQUIRED must be triggered. If this is not possible, a function module must be called by RFC in the method so that so that a new roll area is opened.

Status query

The method CHECK_STATUS is called when the service is instantiated. The method checks whether the service for the published BOR object can be executed. The parameter EP_STATUS receives the value MP_STATUS_ACTIVE, MP_STATUS_INACTIVE or MP_STATUS_INVISIBLE. A status change at a later time can be made to the framework of the generic object services using the event SERVICE_CHANGED.

Event handler methods

If a response is required for the successful closing of a different service, the event handler method ON_SERVICE_SUCCEEDED must be redefined and the event handler for the event SERVICE_SUCCEDED of the other service must be registered.

If a service is canceled, the event handler method ON_SERVICE_CANCELED is called. References can be deleted and controls released in this method.

Relationships

Add class to Generic Object Services

You must also enter your class in the table SGOSATTR. Use the table view maintenance for this purpose (SM30). Here you must enter the class name in the field Name of service, and enter the attribute for the service (for example description and icon).

Support additional requirements

The services can implement one or more of the following interfaces:

IF_GOS_SERVICE_MULTIPLE

IF_GOS_SERVICE_TOOLS

IF_GOS_SERVICE_ON_CREATE

Further information

An overview of Generic Object Services can be found in the SAP Library under Basis Components --> Basis Services --> Business Workplace and Services --> Generic Business Tools for Application Developers --> Generic Object Services (BC-SRV-GBT).

Regards

Anji

Read only

Former Member
0 Likes
638

GOS : Generic Object Services

This particular FM is used to create attachments which you can see when you open a screen having an underlying Business Object say Purchase Order, FI Document like Invoice etc.

You can also create your own Object and use this FM to attach a attachment with this Object. This is helpful especially if you have your own WorkFlow's implemented.

Hope this gives a picture.

Regards

Nishant.

You gen observe this attachment option in the Title Bar if you click the Button present in the extreme left!

Read only

Former Member
0 Likes
638

We are using GOS to attach comments, notes and documents against real estate objects and contracts (such as the signed lease in a scanned form). You can also send SAP objects to email recipients.

The only issue we have with it is that we cannot seem to find a facility to do bulk uploads?

What else would you like to know?

Cheers

Joe