cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Setting Up GOS (Generic Object Services) in Custom Transaction

SANDEEP_077
Explorer
0 Kudos
101

Hi,

I am facing issue while generating Service Object Services in my custom transaction.

I tried this code which i got from google :

    CREATE OBJECT lo_gos_manager
      EXPORTING
        is_object    VALUE boridentobjtype 'BUS001'    " Business Object type for Plant
                                       objkey  gv_plant )  
        ip_mode      'S'                                   
        ip_no_commit 'R'                                   " Prevent commit conflicts
      EXCEPTIONS
        OTHERS 1.

    IF sy-subrc <> 0.
      MESSAGE 'Error initializing GOS Manager' TYPE 'E'.
    ENDIF.

*    " Start GOS with a standard service like attachment
    CALL METHOD lo_gos_manager->start_service_direct
      EXPORTING
        ip_service 'SGS_SRVNAM'  " Use a valid GOS service name
        is_object  VALUE boridentobjtype 'BUS001' objkey gv_plant )
        ip_no_check abap_true           " Skip availability check for smoother execution
      EXCEPTIONS
        OTHERS 1.

    IF sy-subrc <> 0.
      MESSAGE 'Error starting GOS Service' TYPE 'E'.
    ENDIF.

But i am getting an error that "Error starting GOS Service".

I am very new to this type scenario

My implementation project is replica of MM01 t-code

Could you please help me on this?

Screenshot 2025-02-07 110851.png

 

Accepted Solutions (0)

Answers (0)