on 2025 Feb 07 5:41 AM
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 borident( objtype = '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 borident( objtype = '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?
Request clarification before answering.
| User | Count |
|---|---|
| 39 | |
| 23 | |
| 19 | |
| 6 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.