activating generic object services toolbar in sap objects

10
8/19/2019 Activating Generic Object Services Toolbar in SAP Objects http://slidepdf.com/reader/full/activating-generic-object-services-toolbar-in-sap-objects 1/10 Activating Generic Object Services Toolbar in SAP Objects Business Requirement  Many a times there is a business requirement of linking documents, entering notes, sending notes or linking an internet address to various SAP objects. These external attachments can be reference documents, ictures, !mail attachments, designs, diagrams or related sreadsheets. To meet this requirement SAP has rovided a tool bar called "#eneric $bject services toolbar% or "#$S toolbar%.  What is GOS  The #$S is a toolbar that rovides di&erent functions such as adding an attachment, creating a document link, dislaying all the attachments etc. The attachments are not generic for that transaction but are seci'c for a articular SAP object. The #$S toolbar can be activated using a class ()*#$S*MA+A#!. (urrently in the system the #$S toolbar is available by default only for certain SAP objects.  -or !x. M!/+. See screen shot belo0. The #$S toolbar is highlighted.

Upload: bumaselvan

Post on 07-Jul-2018

247 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Activating Generic Object Services Toolbar in SAP Objects

8/19/2019 Activating Generic Object Services Toolbar in SAP Objects

http://slidepdf.com/reader/full/activating-generic-object-services-toolbar-in-sap-objects 1/10

Activating Generic Object Services Toolbar in SAP Objects

Business Requirement

 Many a times there is a business requirement of linking documents, entering notes,sending notes or linking an internet address to various SAP objects. These externalattachments can be reference documents, ictures, !mail attachments, designs,diagrams or related sreadsheets. To meet this requirement SAP has rovided a toolbar called "#eneric $bject services toolbar% or "#$S toolbar%. 

What is GOS

 The #$S is a toolbar that rovides di&erent functions such as adding anattachment, creating a document link, dislaying all the attachments etc. Theattachments are not generic for that transaction but are seci'c for a articular SAPobject. The #$S toolbar can be activated using a class ()*#$S*MA+A#!.

(urrently in the system the #$S toolbar is available by default only for certain SAPobjects. -or !x. M!/+. See screen shot belo0. The #$S toolbar is highlighted.

Page 2: Activating Generic Object Services Toolbar in SAP Objects

8/19/2019 Activating Generic Object Services Toolbar in SAP Objects

http://slidepdf.com/reader/full/activating-generic-object-services-toolbar-in-sap-objects 2/10

As sho0n above, the attachments created in M!/+ screen 0ill be linked to aarticular urchase order and cannot be seen for any other urchase order inM!+ or M!1+ screens.

Services that the GOS toolbar provides

  The follo0ing list sho0s all ossible object services. +ot all object services areavailable 2 it deends on objects that are already active. 3ndividual object services

can also only be accessed using a sub2menu, so that the symbol is not dislayed inthe toolbox. 

• Adding an attachment• !ntering a +ote 0ith an $bject• Sending an $bject 0ith a +ote• Starting a 4ork5o0 for an $bject• )inking an 3nternet Address• !ntering a 6ar (ode•  Tracing !vents for the $bject 7Subscrition8•  Telehony• 9islaying $bject :istory• 9islaying 4ork5o0s for the $bject• 9islaying Transmissions for an $bject• 9islaying elationshis• 9islaying Attachments

 

Activating Generic Object Services toolbar

 

Page 3: Activating Generic Object Services Toolbar in SAP Objects

8/19/2019 Activating Generic Object Services Toolbar in SAP Objects

http://slidepdf.com/reader/full/activating-generic-object-services-toolbar-in-sap-objects 3/10

 The (lass C!GOS!"A#AG$R is used for activating the #$S toolbar. 4e have tocreate an instance of the class. The instance of the class can be created by callingthe constructor method. Also, a variable of tye 6$39!+T needs to be created forthe alication business object. The object tye and object key is assigned to thisvariable 0hich is then assed to the instance of the class ()*#$S*MA+A#! assho0n belo0. This entire code has to be 0ritten either inside a suitable user2exit,

enhancement oint. 3f both user2exit and enhancement oint are not alicable,imlicit enhancement can be created inside the standard of that transaction 0here#$S has to be activated.

 The syntax is; 9ATA; )*#$S*MA+A#! T<P! !- T$ ()*#$S*MA+A#!,  )S*6$39!+T T<P! 6$39!+T. )S*6$39!+T2$6=T<P! > ?6@SB/?.)S*6$39!+T2$6=C!< > ?/1DEFGBH//?. (!AT! $6=!(T )*#$S*MA+A#!

!IP$T3+#3S*$6=!(T > )S*6$39!+T3P*+$*($MM3T > ? ?!I(!PT3$+S$6=!(T*3+JA)39 > /. :ere the object key is the combination of the SAP 'elds that are mandatorilyrequired to execute those transactions. This 0ill ublish the #$S 0ith the sulied6$ instance if it is used in an executable rogram. !arlier the -unction Module SW%!OB&$CT!P%B'S( 0as used for activating the#$S toolbar 0hich no0 has become obsolete. The object tye and the object key0ere assed as the imort arameters to the function module. 

$)ample

-or the material 6$M transactions 7(S/, (S, (S18, the #$S tool bar is notrovided by standard SAP. See screen shot belo0.

Page 4: Activating Generic Object Services Toolbar in SAP Objects

8/19/2019 Activating Generic Object Services Toolbar in SAP Objects

http://slidepdf.com/reader/full/activating-generic-object-services-toolbar-in-sap-objects 4/10

4e 0ill see belo0 ho0 0e can activate the #$S toolbar using above class fortransactions (S/ K (S K (S1.

 To activate it 0e need to do an enhancement in include ")(S93-(9% inside form$C($9!*6!A6!3T!+. -or transaction "(S1% material number, lant, 6$M usageare the required 'elds. See screen shot belo0; 

/. So the object key for above examle is combination of values of materialnumber, lant and 6$M usage.  (o* to get the object +e,  The object key can be found out from the object tye. !nter the object tye intransaction "S4$/%

Page 5: Activating Generic Object Services Toolbar in SAP Objects

8/19/2019 Activating Generic Object Services Toolbar in SAP Objects

http://slidepdf.com/reader/full/activating-generic-object-services-toolbar-in-sap-objects 5/10

  (lick on dislay.

 !.g. 3f material number is /HH,  lant is L /1D and  6$M usage L E, the object key 0ill be  $bject2key > "/HH/1DE%

  . The object tye can be found in table T$6= and also from transaction S4$/.Theobject tye for Material 6$M 7(S/KK18 2 6@S/B. 

1. )eave the 3P*+$*($MM3T arameter as blank.  3f the arameter 3P*+$*($MM3T is set, it means that your alication shouldstart "($MM3T 4$C% command. That is also the default value.  3f the arameter is emty, the object services 0ill call the "($MM3T 4$C%. 3nthis case, the data assed should be consistent.

Page 6: Activating Generic Object Services Toolbar in SAP Objects

8/19/2019 Activating Generic Object Services Toolbar in SAP Objects

http://slidepdf.com/reader/full/activating-generic-object-services-toolbar-in-sap-objects 6/10

  4hen called because the database changes cannot be reversed using"$))6A(C%. 

D. The #$S toolbar K 6utton 0ill no0 be visible and activated in t2codes (S/,(S and (S1 after the enhancement is activated. 

E. -or Sales order, the service can be activated by setting user arameter.Setarameter S9*S4@*A(T3J! > "I% in the user ro'le. This 0ill activate the  generic object services for JA/, JA and JA1.

 

Steps to create attachments -or a "aterial BO"

/ (lick on the #$S toolbar. 9i&erent otions 0ill be dislayed.

. (lick on "(reate2N (reate attachment% otion.

 

Page 7: Activating Generic Object Services Toolbar in SAP Objects

8/19/2019 Activating Generic Object Services Toolbar in SAP Objects

http://slidepdf.com/reader/full/activating-generic-object-services-toolbar-in-sap-objects 7/10

1. A o2u 0indo0 0ill be oened to 'nd a 'le or attachment as sho0n belo0.  Select the 'le and click on oen.

 D. A success message 0ill be dislayed in the task bar.

 

Page 8: Activating Generic Object Services Toolbar in SAP Objects

8/19/2019 Activating Generic Object Services Toolbar in SAP Objects

http://slidepdf.com/reader/full/activating-generic-object-services-toolbar-in-sap-objects 8/10

E. +o0 let us create an external document link. -ollo0 the screen shot belo0;

F. (lick on !nter.

A success message 0ill be dislayed at the status bar "The attachment 0assuccessfully created%. 

.ie*ing the attachments

/ To vie0 the list of attachments, go to attachment list as sho0n belo0.

Page 9: Activating Generic Object Services Toolbar in SAP Objects

8/19/2019 Activating Generic Object Services Toolbar in SAP Objects

http://slidepdf.com/reader/full/activating-generic-object-services-toolbar-in-sap-objects 9/10

  The list 0ill be dislayed as sho0n belo0.

 

Some transactions *here GOS is activated using this class/

Page 10: Activating Generic Object Services Toolbar in SAP Objects

8/19/2019 Activating Generic Object Services Toolbar in SAP Objects

http://slidepdf.com/reader/full/activating-generic-object-services-toolbar-in-sap-objects 10/10

htt;KKscn.sa.comKdocsK9$(211DBE