Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Deleting ABAP Web Dynpro Component by function module or something similar

Hi at all,

I want to write a programm that can delete a complete Web Dynpro Component for ABAP only by typing the component name.

In my research I've found the class CL_WDY_WB_COMPONENT and the Method DELETE but I think it don't delete all of the parts of the component.

For other objects I've found some really easy understanding function modules like

-  RS_FUNCTION_POOL_DELETE

-  OO_CLASS_DELETE

-  RS_DELETE_PROGRAM

But I couldn't find something for a Web Dynpro Component and all parts of it.

So please help me.

Former Member
replied

try this,

    DATA: lo_component   TYPE REF TO cl_wdy_wb_component,

          lo_request     TYPE REF TO cl_wb_request,

          li_state       TYPE REF TO if_wb_program_state,

          lv_object_name TYPE seu_objkey.

    CREATE OBJECT lo_component.

    lv_object_name = 'ZASDF'.

    CREATE OBJECT lo_request

      EXPORTING

        p_object_type = 'YC'

        p_object_name = lv_object_name

        p_operation   = swbm_c_op_delete_no_dialog.

    lo_component->if_wb_program~process_wb_request(

      p_wb_request       = lo_request

      p_wb_program_state = li_state ).

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question