‎2012 Feb 21 4:05 AM
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.
‎2012 Feb 21 8:07 AM
Hi ,
Check programs below. They'll help you to understand the functionality.
GOS_SERV_TOOLS_TEST
GOS_SERVICE_TEST
GOS_TOOLBOX_TEST
‎2012 Feb 21 2:42 PM
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
‎2012 Feb 22 3:59 AM
MY program is calling different T-codes and I want to attach gos to these codes so help me in attaching gos .
‎2012 Feb 22 2:45 PM
TCodes are not business Objects. Unless you make them as Business Object, you can attach GOS to them.
Regards,
Naimesh Patel