Application Development and Automation 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: 
Read only

Activating GOS browser

Former Member
0 Likes
954

Hi everybody,

I have a small question. Where do you 'activate' the GOS object for specific business objects? For example. When we look at an order in our development system, we see the GOS browser in the topleft. When we look at an order in our Staging system, the GOS browser is deactivated. So it is possible to activate and deactivate the GOS for an object.

Is this a customizing setting? We already had a look at the documentation on help.sap but I can't imagine that we have to make implementations of classes to make the GOS available for standard objects.

Hope you can help.

Kind regards

Laurens

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
724

Hello Laurens

I think in some cases the display of the GOS is truely hard-coded. If you create either a new sales order or a purchase order (not via IDoc!) the purchase order (ME23, ME23N) displays the GOS functionality whereas the sales order (VA03) does not.

If you debug transaction ME23 (on ECC 6.0) you will find the following coding:


" Main program = SAPMM06E
" Source code of = MM06EF0L_LESEN_BELEG
" Routine = LESEN_BELEG

...
*- Publish the Serv button if no authority-check problems ------------*
  IF fc_vorga NE cva_en OR ekko-bstyp EQ bstyp-best.
    DATA: go_gos TYPE REF TO cl_gos_manager,
          ls_borident TYPE borident.

    ls_borident-objkey = ekko-ebeln.
    ls_borident-objtype = business_object.

* publish object.
    CREATE OBJECT go_gos
      EXPORTING
        is_object        = ls_borident
        ip_no_commit     = 'R'
      EXCEPTIONS
        object_invalid   = 1
        callback_invalid = 2
        OTHERS           = 3.
  ENDIF.
...

I am aware that this is not really the answer to your question but perhaps there are BAdI around to activate the GOS although I doubt this because SAP clearly says that GOS functionality is no longer supported ([Business Services|http://help.sap.com/saphelp_nw04/helpdata/en/2c/ed8e3f55b20617e10000000a114084/frameset.htm]).

Regards

Uwe

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
724

Hello Laurens

You may get an idea how to to this by looking at the following documentation:

[How to Attach Documents to Any Custom Program Using Generic Object Services|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3]

Regards

Uwe

Read only

0 Likes
724

Hello Uwe,

thank you for the reply. The documentation you mentioned only addresses the use of GOS in a custom program. In fact, we already used it this way in one of our programs.

Kind regards

Laurens

Read only

uwe_schieferstein
Active Contributor
0 Likes
725

Hello Laurens

I think in some cases the display of the GOS is truely hard-coded. If you create either a new sales order or a purchase order (not via IDoc!) the purchase order (ME23, ME23N) displays the GOS functionality whereas the sales order (VA03) does not.

If you debug transaction ME23 (on ECC 6.0) you will find the following coding:


" Main program = SAPMM06E
" Source code of = MM06EF0L_LESEN_BELEG
" Routine = LESEN_BELEG

...
*- Publish the Serv button if no authority-check problems ------------*
  IF fc_vorga NE cva_en OR ekko-bstyp EQ bstyp-best.
    DATA: go_gos TYPE REF TO cl_gos_manager,
          ls_borident TYPE borident.

    ls_borident-objkey = ekko-ebeln.
    ls_borident-objtype = business_object.

* publish object.
    CREATE OBJECT go_gos
      EXPORTING
        is_object        = ls_borident
        ip_no_commit     = 'R'
      EXCEPTIONS
        object_invalid   = 1
        callback_invalid = 2
        OTHERS           = 3.
  ENDIF.
...

I am aware that this is not really the answer to your question but perhaps there are BAdI around to activate the GOS although I doubt this because SAP clearly says that GOS functionality is no longer supported ([Business Services|http://help.sap.com/saphelp_nw04/helpdata/en/2c/ed8e3f55b20617e10000000a114084/frameset.htm]).

Regards

Uwe