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

Activating General object services in module pool

Former Member
0 Likes
1,920

Dear Abap team,

I have used the following logic for adding gos toolbar in my program: DATA: lo_manager TYPE REF TO cl_gos_manager,

la_obj TYPE borident.

la_obj-objtype = 'TSTCT'.

la_obj-objkey = 'ZPMLOG'.

CREATE OBJECT lo_manager

EXPORTING

is_object = la_obj

ip_no_commit = 'R' "space

EXCEPTIONS

OTHERS = 1.

CALL METHOD lo_manager->set_rw_mode

EXPORTING

ip_mode = 'E' .

**This code adds the Gos toolbar in my program but while using it there is a message that the service 'Create Attachment ' is not available. *GOS_MULT_PUBLISH* I am trying to use this badi can you help with the logic.

4 REPLIES 4
Read only

huseyindereli
Active Contributor
0 Likes
1,152

Hi ,

Check programs below. They'll help you to understand the functionality.

GOS_SERV_TOOLS_TEST    
GOS_SERVICE_TEST                    
GOS_TOOLBOX_TEST

Read only

naimesh_patel
Active Contributor
0 Likes
1,152

I guess you are trying to activate the GOS on the Custom Transaction ZPMLOG. And you are using TSTCT as the object for that. This is incorrect.

GOS can be attached to Business Object. LA_OBJ-OBJTYPE should be a Business object defined in the SWO1. Lets say your transaction code is to add the GOS on the Sales Order, you need to pass the Object Type as BUS2032 and Object Key as the Sales Order #.

Check a sample code snippet available at: [Generic Object Services (GOS) Toolbar Part 3 : Add toolbar in Custom Program|http://help-abap.zevolving.com/2009/02/generic-object-services-gos-toolbar-part-3-add-toolbar-in-custom-program/]

Regards,

Naimesh Patel

Read only

0 Likes
1,152

MY program is calling different T-codes and I want to attach gos to these codes so help me in attaching gos .

Read only

0 Likes
1,152

TCodes are not business Objects. Unless you make them as Business Object, you can attach GOS to them.

Regards,

Naimesh Patel