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
But I couldn't find something for a Web Dynpro Component and all parts of it.
So please help me.
Lars Hvam replied
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
p_object_type = 'YC'
p_object_name = lv_object_name
p_operation = swbm_c_op_delete_no_dialog.
p_wb_request = lo_request
p_wb_program_state = li_state ).