Sie sind auf Seite 1von 9

Generic Object Services (GOS) Toolbar Part 1 : Add New Option in the Toolbar | AB...

Page 1 of 9

ABAP Help

21

Generic Object Services (GOS) Toolbar Add New Option in the Toolbar
BY Naimesh Patel | October 30, 2008 | Generic Object Services (GOS) Eloborates the option to add a new Menu Entry in the GOS toolbar

Generic Object Services (GOS) Toolbar offers the functions which are common to many SAP a powerful toolbar provides much functionality like create attachments, notes, mails; send mails; many more. You can find more functionality on Generic Object Services at SAP Help on The default GOS toolbar options are somewhat like this:

Sometimes, we need to add some new toolbar entries to facilitate the business requirement. Generic object toolbar add the new option like Document List which is generic to all business we need to handle that. In this post, we will see the steps and rules to be followed to add a new In the next, post we will see how we can handle the added menu option to fulfill our custom req

http://help-abap.zevolving.com/2008/10/generic-object-services-gos-toolbar-part-1-ad... 21/03/2012

Generic Object Services (GOS) Toolbar Part 1 : Add New Option in the Toolbar | AB... Page 2 of 9

Your Ad Here

To be more specific in explaining the requirement, we will take a business requirement to add a Orders List for the GOS toolbar for Customer Master. At first we will see how we can very last position. Like:

To bring the new entry (menu option) in this GOS toolbar, we need to maintain that table can be maintained using SM30.

Class for Gen. Services: This is the driver class when we select the object service (men GOS toolbar. For time being we will keep this as the CL_GOS_SRV_ATTACHMENT_LIS Service Type: We will select 1 because we want Single entry menu option on the GOS to options to create a main menu entry and submenus under that main menu by selecting p Next Service: We will clear the value in this since we want our button at very last level. must be set when we need to put the custom option in between other options. Control: We will select this, since we want to generate our output in the Custom

http://help-abap.zevolving.com/2008/10/generic-object-services-gos-toolbar-part-1-ad... 21/03/2012

Generic Object Services (GOS) Toolbar Part 1 : Add New Option in the Toolbar | AB... Page 3 of 9

Commit Work: We will not select this option because we dont want to commit the work.

Along with creating a new entry this way, we need to set this service as next service of the case, our new service will come just under the Help for object services we need to modify tha

Advertisement

By selecting this option Sales Orders list from the GOS toolbar, we will see the attachment list class CL_GOS_SRV_ATTACHMENT_LIST:

NOTE: You might see the option grayed out if you dont have any attachment created for create: Select the Create.. > Create Attachment. Select any file from your PC to add as attachm

To be able to bring that option in between of others, we need to play around with the Next Serv buttons. For example, I want to put my button just under the Attachment List option and above For this we need to:

http://help-abap.zevolving.com/2008/10/generic-object-services-gos-toolbar-part-1-ad... 21/03/2012

Generic Object Services (GOS) Toolbar Part 1 : Add New Option in the Toolbar | AB... Page 4 of 9

1.Set the new option as the next Service for the Attachment List

2.Set the Private Note as the next service for the new option

3.Remove the next service from the option which will come at last. This is very important

After following these steps, the toolbar options will look like:

http://help-abap.zevolving.com/2008/10/generic-object-services-gos-toolbar-part-1-ad... 21/03/2012

Generic Object Services (GOS) Toolbar Part 1 : Add New Option in the Toolbar | AB... Page 5 of 9

In the next post, we will see how we can use our custom class to generate our fully the class CL_GOS_SRV_ATTACHMENT_LIST, we will use custom class ZCL_SO_LIST.

Get your Social On!


0
2
Like

Stay Tuned with A

TAGS
GOS GOS Custom Service

RELATED POSTS
Generic Object Services (GOS) Toolbar Part 2 : Handle added Service in the Toolbar Generic Object Services (GOS) Toolbar Part 4 : Get Attachements Generic Object Services (GOS) Toolbar Part 8 : Disable Delete Function Generic Object Services (GOS) Toolbar Part 7 : Relationship Browser Generic Object Services (GOS) Toolbar Part 6 : Copy Attachments between objects

Generic Object Services (GOS) Toolbar Part 3 : Add toolbar in Custom Program

<

Generic Object Services (GOS) Toolbar Part 2 : Handle added Service in the Toolbar

Display ALV report output in Selection Screen

15 Comments
Anonymous | November 24th, 2008 at 11:40 am

Hi Naimesh, Do you have very detailed instructions on how to archive create attachment files to the archive server? Ive read oss notes 530792, 389366 and 904711. It states it had no luck it continues to write to SOCC3 and SOFFCONT1 SAP office tables. We a archiving solution for business documents by adding the appropriate OAC2 and OAC3

http://help-abap.zevolving.com/2008/10/generic-object-services-gos-toolbar-part-1-ad... 21/03/2012

Generic Object Services (GOS) Toolbar Part 1 : Add New Option in the Toolbar | AB... Page 6 of 9

and seeing all archived entries in TOA03. We use SAPHTTP and archivelink. Our probl office tables and we cannot delete older entries because we do not know the importanc users have attached to their SD documents. You have already answered my question o the create attachment option and many thanks for that. Thanks for all your help. Soyab soyab.husein@tycoelectronics.com
Reply

Anonymous | November 24th, 2008 at 11:42 am Naimesh, Part 1 and 2 are both extremely informative. Thanks for this useful contribution. Soyab
Reply

Naimesh Patel | November 24th, 2008 at 3:57 pm Hello Soyab, No, I dont have any idea about how you can move them to archieve server. Regards, Naimesh Patel
Reply

Anonymous | January 20th, 2009 at 9:37 am Hi Naimesh, Can you control the buttons on the attachment list? Example, disable the delete button in the context menu) depending on the ownership of the attachment. Thanks in advance.
Reply

Anonymous | April 29th, 2009 at 8:57 pm Hi Naimesh, Hope u are still monitoring this blog entry. Can you tell me more about the object service Linking an Internet Address I am wondering which table stores the entries. TIA, Shah
Reply

http://help-abap.zevolving.com/2008/10/generic-object-services-gos-toolbar-part-1-ad... 21/03/2012

Generic Object Services (GOS) Toolbar Part 1 : Add New Option in the Toolbar | AB... Page 7 of 9

Naimesh Patel | May 4th, 2009 at 3:31 pm Hello Shah,

You asked: Can you tell me more about the object service Linking an Internet Address I am wondering which table stores the entries.You can use the method READ_LINKS o CL_BINARY_RELATION to read any GOS attachements. Check this post: http://help abap.blogspot.com/2009/02/generic-object-services-gos-toolbar_09.html which reads th attachement type NOTE. Regards, Naimesh Patel
Reply

Anonymous | October 22nd, 2009 at 4:30 am Hi Naimesh, Thanks for sharing this important information.

Have a question here. We have a requirement User don't want to use standard GOS to status bar. Instead they want 2 buttons for creating and displaying the attachments got the solution by similar way by using class cl_gos_manager. But on clicking the create attachment button, it is creating the attachment and once the back i am getting standard GOS icon in status BAR which i dont want. Any idea on how to exclude this? Thanks, Vinod.
Reply

Nehal | January 6th, 2010 at 9:50 am Hi Naimesh Can you help me to activate Services for object in my transaction.. I dont see services for object tab in my transaction Thanks Vicky Patel
Reply

Anonymous | July 21st, 2010 at 5:27 am Hi, I cannot get the create attachement active ibn VELO, can you give some advice
Reply

Anonymous | August 11th, 2010 at 12:31 am how to exclude standard menu in SAP (ABAP)?

http://help-abap.zevolving.com/2008/10/generic-object-services-gos-toolbar-part-1-ad... 21/03/2012

Generic Object Services (GOS) Toolbar Part 1 : Add New Option in the Toolbar | AB... Page 8 of 9

Reply

Anonymous | November 4th, 2010 at 4:33 pm Hi Nimesh, Is there a way to copy the attachments from one objects onto another. My requirement is to copy the attachments from one notification onto another Thanks in advance. Sanny
Reply

Naimesh Patel | November 17th, 2010 at 9:25 pm Hello Sanny, You asked Is there a way to copy the attachments from one objects onto another.

You can find it here in this post Generic Object Services (GOS) Toolbar Part 6 : Copy objects Regards, Naimesh Patel
Reply

KIT | March 3rd, 2011 at 10:49 pm

Hi Naimesh, How can i create attachment for the sales order through the ABAP program. Since i hav sales orders need to attach pic. I can't record these process in BDC. Hope you can give Best regards, KIT
Reply

Anonymous | March 24th, 2011 at 8:01 am Hi Naimesh, I have requirement from business that URL to be attached should have more charaters possible that we can increase number of characters for URL field. Thanks in advance, Sachin
Reply

rathish | April 23rd, 2011 at 12:42 am

http://help-abap.zevolving.com/2008/10/generic-object-services-gos-toolbar-part-1-ad... 21/03/2012

Generic Object Services (GOS) Toolbar Part 1 : Add New Option in the Toolbar | AB... Page 9 of 9

Hi Naimesh, I have requirement to disabling the delete button after PO completely released in some advice to solve this issue.my maid id rathish@ecciltd.com
Reply

Wanna say something?


Name * Email (kept private) Used for Website Anti-bot *

=7+3

Submit

FANS

FOLLOWERS

SUBSCRIBERS

46

451
Since 2008 | COPYRIGHT 2011 zevolving |

http://help-abap.zevolving.com/2008/10/generic-object-services-gos-toolbar-part-1-ad... 21/03/2012

Das könnte Ihnen auch gefallen