Generic Object Services (GOS) – 02 How to create one note object from scraft

Business Requirements

Here we have one project manager report, which generate the output with ALV grid display, there is a business requirement when user select one line from the output list and click the ‘Attachment’ button or double click the ‘comment’ fields, the program will popup a window to allow user write a note for that line. the business team want to implement this function with SAP GOS solution, because they also want to take advantage of the standard SAP GOS Note functions, such as, history notes, uploading an Microsoft word document, etc.



We needs to do the following steps to meet the requirements.

Step-01: How to save the object, and link to cost elements

According to the SAP documentation, you have to create a GOS object to an BOR, but that’s not true. You can create one GOS object from scraft without linking it to any BOR object.

In order to create an note object, you first need to generate one GUID for it with the following function module

One you get the GUID, then you create all the following function module to show the popup window. Please note the other parameters we provided to the function module are also necessary.

the object typeid you can provide the value you what you like, and please assign the value ‘BO’ for the catid. When the program calls this function module, it will popup the following window.


You can create new notes from the dropdown menu ‘New’ and select function ‘create new note’.


The system only generate the object after click the button ‘Check’ from the left bottom of the popup window, or else there is not object will be saved to the system, even though there is GUID generated and the popup window was shown.


Step-02: How to read the text object contents.

We create the text object in the above step, and in this step we will demonstrate how to read the text object contents out. SAP provides a serial of function modules started with ‘SO_OBJECT_*’.


the function module ‘SO_OBJECT_READ’ is the right function for us to read the text object contents.

Please note that the text object contents contains one title and several lines of contents. The title can be retrieved from function modules parameter object_hd_display.


Leave a Comment