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

How to add Generic Object Services for standard Tcode

Former Member
0 Likes
957

Dear SAP Community,

  I am looking for a help in adding a Business Object Service for a standard Tcode for WAM02 Tcode. The SCN search resulted in adding the GOS for custom program but not for standard T code. I have identified a BADI for WAM02 and added the following code, on the save event.

DATA: lo_manager  TYPE REF TO cl_gos_manager,

            la_obj      TYPE borident.

  CREATE OBJECT lo_manager


    EXPORTING


      is_object    = la_obj


      ip_no_commit = space


    EXCEPTIONS


      OTHERS       = 1.

The debugger comes to my BADI, but I still dont see the GOS Toolbar in the Tcode. Appreciate your pointers on this.

Thanks!

Dear SAP Community,

  I am looking for a help in adding a Business Object Service for a standard Tcode for WAM02 Tcode. The SCN search resulted in adding the GOS for custom program but not for standard T code. I have identified a BADI for WAM02 and added the following code, on the save event.

DATA: lo_manager  TYPE REF TO cl_gos_manager,

            la_obj      TYPE borident.

  CREATE OBJECT lo_manager


    EXPORTING


      is_object    = la_obj


      ip_no_commit = space


    EXCEPTIONS


      OTHERS       = 1.

The debugger comes to my BADI, but I still dont see the GOS Toolbar in the Tcode. Appreciate your pointers on this.

Thanks!

1 REPLY 1
Read only

RaymondGiuseppi
Active Contributor
0 Likes
523

- Was your reference the How to Attach Documents to Any Custom Program Using Generic Object Services of Manuel Bassani?

- Does you perform all the "preliminary steps" from creation/identifcation of a business object with method GOSAddObjects of interface IFGOSASERV?

- Does the BAdI executes during PBO of the screen ?

- Did you  add a call method cl_gui_cfw=>flush after creation of the instance.?

Regards,

Raymond