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

Enabling Services for objects

Former Member
0 Likes
596

Hi All,

We have a requirement which involves mass change of URLs of notification.It was planned to implement the same using customized program.The issue is that while using BDC for the transaction IW23, the "services for object" option in the menu "System" is disabled(while running SHDB).Please suggest a way to do this.Is there any FM which can be used for the same.

Thanks and Regards,

Kiran

3 REPLIES 3
Read only

LucianoBentiveg
Active Contributor
0 Likes
531

You can use class CL_GOS_MANAGER.

Example:


REPORT zgos_prueba2 .

CONSTANTS: cc_objtype LIKE borident-objtype VALUE 'BUS2038'.
DATA: manager TYPE REF TO cl_gos_manager,
      obj TYPE borident.


PARAMETERS:
 p_bokey  LIKE borident-objkey DEFAULT '000010287751'.



START-OF-SELECTION.
  obj-objtype = cc_objtype.
  obj-objkey = p_bokey.
  CREATE OBJECT manager
  EXPORTING is_object = obj
            ip_no_commit = 'R'
  EXCEPTIONS others = 1.


  CALL METHOD manager->start_service_direct
   EXPORTING ip_service = 'VIEW_ATTA'
             is_object = obj
   EXCEPTIONS
    no_object = 1
    object_invalid = 2
    execution_failed = 3
    OTHERS = 4.

Regards,

Read only

Former Member
0 Likes
531

Hi Peluka ,

Can you please explain me what the above code does.Moreover, the relationship which you have given is 'ATTA', from some of the SDN queries i understand that it has to be URL for url related stuff.It would be great if you can tell me the relevance of the given code for my scenario.

Thanks and Regards,

Kiran

Read only

0 Likes
531

Replace VIEW_ATTA by URL_CREA and try it.

Regards.