07-05-2012 8:59 AM
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
07-05-2012 9:53 AM
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
07-05-2012 9:53 AM
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
07-05-2012 9:53 AM
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.
07-05-2012 10:19 AM
Hi Francois,
I couldn't find any Tutorial for the same Tcode - MSC2N - however, this web-link would be helpful -
Thanks.
Kumar Saurav.
07-05-2012 11:14 AM
- 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