Application Development 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: 

insert GOS toolbar in transaction MSC2N

Former Member
0 Kudos

Hi all,

I have a requirement to insert a GOS toolbar in transaction MSC2N, as it is available in transaction MM02 for example.

How does it work? standard modification? where and how?

Thanks a lot in advance

Francois Leyssenne

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

You can use the fm SWU_OBJECT_PUBLISH, but it needs to use a business object, if there isn't one for MSCN2 you should create it (transaction SW01).

So the problem is how to call the fm  SWU_OBJECT_PUBLISH in MSCN2, you need to call it before the first screen is called:

if there's any exit, you need to enhance or change the standard code

Max

4 REPLIES 4

Former Member
0 Kudos

Hi

You can use the fm SWU_OBJECT_PUBLISH, but it needs to use a business object, if there isn't one for MSCN2 you should create it (transaction SW01).

So the problem is how to call the fm  SWU_OBJECT_PUBLISH in MSCN2, you need to call it before the first screen is called:

if there's any exit, you need to enhance or change the standard code

Max

Former Member
0 Kudos

You need to create an object using transaction SWO1.

And then you can use below two function modules:

SWU_OBJECT_PUBLISH

SWU_OBJECT_REFRESH

Passing objtype = 'YOUR_OBJECT'

Or better - cl_gos_manager for doing the same.

former_member186491
Contributor
0 Kudos

Hi Francois,

I couldn't find any Tutorial for the same Tcode - MSC2N - however, this web-link would be helpful -

http://www.erpgenie.com/sap-technical/abap/generic-object-services-gos-toolbar-add-new-option-in-the...

Thanks.

Kumar Saurav.

raymond_giuseppi
Active Contributor
0 Kudos

- First read How to Attach Documents to Any Custom Program Using Generic Object Services

- Then find a BAdI/Exit executed during or before first display/PBO of the screen where you want to add the toolbar, there build the object key and initialize an instance of cl_gos_manager. (Enhancement Spot ES_SAPLCHRG Point LCHRGO01_02 ?)

Regards,

Raymond