SAP Reports / Programs | Knowledge Management | Knowledge Warehouse(KM-KW) SAP KM

KW_CONTENT_DELETION_BG_F01 SAP ABAP INCLUDE - KWCONTENTDELETIONBGF01







KW_CONTENT_DELETION_BG_F01 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter KW_CONTENT_DELETION_BG_F01 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT KW_CONTENT_DELETION_BG_F01. "Basic submit
SUBMIT KW_CONTENT_DELETION_BG_F01 AND RETURN. "Return to original report after report execution complete
SUBMIT KW_CONTENT_DELETION_BG_F01 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT KW_CONTENT_DELETION_BG_F01

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

ENQUEUE_READ CALL FUNCTION 'ENQUEUE_READ' EXPORTING * GCLIENT = SY-MANDT gname = 'TRDIR' garg = pv_report_name guname = lv_name * LOCAL = ' ' * FAST = ' ' IMPORTING * NUMBER = subrc subrc = lv_subrc TABLES enq = lt_enq EXCEPTIONS communication_failure = 1 system_failure = 2 OTHERS = 3.

IO_C_PROPERTIES_GET_PHIOS CALL FUNCTION 'IO_C_PROPERTIES_GET_PHIOS' EXPORTING suppress_sys_properties = ' ' TABLES info_objects = pt_phio requested_properties = gt_req_properties_phio properties = lt_prop_phio * BAD_OBJECTS = .

SDOK_PHIO_TO_RELATIONS_GET CALL FUNCTION 'SDOK_PHIO_TO_RELATIONS_GET' EXPORTING OBJECT_ID = ls_phio RELATION_CLASS = 'LOGOBJECT' * CLIENT = SY-MANDT TABLES * CLASS_FILTER = RESULT = lt_relations_to EXCEPTIONS NOT_EXISTING = 1 BAD_CLASS = 2 NOT_AUTHORIZED = 3 EXCEPTION_IN_EXIT = 4 OTHERS = 5.

SDOK_PHIO_TO_RELATIONS_GET CALL FUNCTION 'SDOK_PHIO_TO_RELATIONS_GET' EXPORTING object_id = ls_phio RELATION_CLASS = 'EXPORTMODL' * CLIENT = SY-MANDT tables * CLASS_FILTER = result = lt_relations_to EXCEPTIONS NOT_EXISTING = 1 BAD_CLASS = 2 NOT_AUTHORIZED = 3 EXCEPTION_IN_EXIT = 4 OTHERS = 5.

SDOK_PHIO_TO_RELATIONS_GET CALL FUNCTION 'SDOK_PHIO_TO_RELATIONS_GET' EXPORTING object_id = ls_phio TABLES result = lt_relation_phio EXCEPTIONS not_existing = 1 bad_class = 2 not_authorized = 3 exception_in_exit = 4 OTHERS = 5.

SDOK_LOIO_PROPERTIES_GET CALL FUNCTION 'SDOK_LOIO_PROPERTIES_GET' EXPORTING object_id = ls_object TABLES properties = lt_props EXCEPTIONS not_existing = 1 not_authorized = 2 exception_in_exit = 3 OTHERS = 4.

IO_C_PHYSICAL_OBJECTS_GET CALL FUNCTION 'IO_C_PHYSICAL_OBJECTS_GET' TABLES info_objects = lt_objects info_objects_with_phys_obj = lt_loio_phio.

SDOK_PHIO_TO_RELATIONS_GET CALL FUNCTION 'SDOK_PHIO_TO_RELATIONS_GET' EXPORTING object_id = ls_phio TABLES result = lt_relation_phio EXCEPTIONS not_existing = 1 bad_class = 2 not_authorized = 3 exception_in_exit = 4 OTHERS = 5.

SDOK_LOIO_PROPERTIES_GET CALL FUNCTION 'SDOK_LOIO_PROPERTIES_GET' EXPORTING object_id = ls_object TABLES properties = lt_props EXCEPTIONS not_existing = 1 not_authorized = 2 exception_in_exit = 3 OTHERS = 4.

IO_C_PHYSICAL_OBJECTS_GET CALL FUNCTION 'IO_C_PHYSICAL_OBJECTS_GET' TABLES info_objects = lt_objects info_objects_with_phys_obj = lt_loio_phio.

IO_C_TRANSPORT_KEYS_GET CALL FUNCTION 'IO_C_TRANSPORT_KEYS_GET' TABLES info_objects = lt_objects transport_obj = lt_tr_obj transport_obj_keys = lt_tr_obj_keys * BAD_OBJECTS = .

SDOK_UNIQUE_ID_GET CALL FUNCTION 'SDOK_UNIQUE_ID_GET' IMPORTING unique_id = ls_header-id_result.

SDOK_UNIQUE_ID_GET CALL FUNCTION 'SDOK_UNIQUE_ID_GET' IMPORTING unique_id = ls_header-id_result.

SDOK_UNIQUE_ID_GET CALL FUNCTION 'SDOK_UNIQUE_ID_GET' IMPORTING unique_id = ls_header-id_result.

SDOK_UNIQUE_ID_GET CALL FUNCTION 'SDOK_UNIQUE_ID_GET' IMPORTING unique_id = ls_header-id_result.

SDOK_UNIQUE_ID_GET CALL FUNCTION 'SDOK_UNIQUE_ID_GET' IMPORTING unique_id = ls_header-id_result.

SDOK_UNIQUE_ID_GET CALL FUNCTION 'SDOK_UNIQUE_ID_GET' IMPORTING unique_id = ls_header-id_result.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = 'KW_CONTENT_DELETION_BG' i_internal_tabname = 'GT_OUTTAB' * i_structure_name = 'AUSG' i_client_never_display = 'X' i_inclname = 'KW_CONTENT_DELETION_BG_TOP' i_bypassing_buffer = 'X' i_buffer_active = ' ' CHANGING ct_fieldcat = gt_fieldcat[] EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3. "#EC *

REUSE_ALV_VARIANT_DEFAULT_GET





CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = lv_save CHANGING cs_variant = ls_variant_tmp EXCEPTIONS wrong_input = 1 not_found = 2 program_error = 3 OTHERS = 4.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = lv_save CHANGING cs_variant = ls_variant_tmp EXCEPTIONS wrong_input = 1 not_found = 2 OTHERS = 3.

REUSE_ALV_VARIANT_SELECT CALL FUNCTION 'REUSE_ALV_VARIANT_SELECT' "#EC * EXPORTING i_dialog = ' ' i_user_specific = 'X' * I_TABNAME_HEADER = C_TABNAME_HEADER * I_TABNAME_ITEM = C_TABNAME_ITEM it_default_fieldcat = gt_fieldcat[] i_layout = gs_layout IMPORTING et_fieldcat = gt_fieldcat[] es_layout = ls_layout CHANGING cs_variant = ls_variant EXCEPTIONS wrong_input = 1 fc_not_complete = 2 not_found = 3 program_error = 4 OTHERS = 5.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * i_buffer_active = p_buffer i_callback_program = 'KW_CONTENT_DELETION_BG' * i_structure_name = 'SFLIGHT' i_callback_user_command = 'ALV_USER_COMMAND' * i_callback_html_top_of_page = 'HTML_TOP_OF_PAGE' i_callback_pf_status_set = 'ALV_SET_STATUS' is_layout = gs_layout * it_special_groups = gt_slis_sp_group_alv[] * it_sort = gt_sort[] * it_filter = gt_filter it_fieldcat = gt_fieldcat[] it_excluding = gt_extab[] i_save = lv_save is_variant = ls_variant it_events = lt_events[] * IMPORTING * e_exit_caused_by_caller = g_exit_caused_by_caller * es_exit_caused_by_user = gs_exit_caused_by_user tables t_outtab = gt_outtab EXCEPTIONS OTHERS = 0.

STRUCT_OBJECT_ROOT_NODE_GET CALL FUNCTION 'STRUCT_OBJECT_ROOT_NODE_GET' EXPORTING info_object = ls_str * SUPPRESS_AUTHORITY_CHECK = 'X' IMPORTING root_node = ls_root error_msg = ls_error_msg TABLES context = lt_context.

INFO_OBJECT_DISPLAY_EXT_VIEWER CALL FUNCTION 'INFO_OBJECT_DISPLAY_EXT_VIEWER' EXPORTING info_object = ls_root structure_object = ls_str task = c_task_preview2 * SUPPRESS_AUTHORITY_CHECK = 'X' * CALL_BROWSER = 'X' * CALL_APPLICATION = IMPORTING error_msg = ls_error_msg * URL = TABLES context = lt_context.

SDOK_PHIO_TO_RELATIONS_GET CALL FUNCTION 'SDOK_PHIO_TO_RELATIONS_GET' EXPORTING object_id = ls_object * RELATION_CLASS = * CLIENT = SY-MANDT tables * CLASS_FILTER = result = lt_relations_to EXCEPTIONS NOT_EXISTING = 1 BAD_CLASS = 2 NOT_AUTHORIZED = 3 EXCEPTION_IN_EXIT = 4 OTHERS = 5.

SDOK_PHIO_FROM_RELATIONS_GET CALL FUNCTION 'SDOK_PHIO_FROM_RELATIONS_GET' EXPORTING object_id = ls_object * relation_class = * CLIENT = SY-MANDT tables * CLASS_FILTER = result = lt_relations_from EXCEPTIONS not_existing = 1 bad_class = 2 not_authorized = 3 exception_in_exit = 4 OTHERS = 5.

SDOK_RELA_DELETE CALL FUNCTION 'SDOK_RELA_DELETE' EXPORTING object_id = ls_rel_objects * CLIENT = SY-MANDT * PARTNER_FROM = * PARTNER_TO = EXCEPTIONS not_existing = 1 not_allowed = 2 not_authorized = 3 exception_in_exit = 4 OTHERS = 5.

SDOK_PHIO_DELETE CALL FUNCTION 'SDOK_PHIO_DELETE' EXPORTING object_id = ls_object_dst * CLIENT = SY-MANDT EXCEPTIONS not_existing = 1 not_allowed = 2 not_authorized = 3 exception_in_exit = 4 OTHERS = 5.

SDOK_PHIO_DELETE CALL FUNCTION 'SDOK_PHIO_DELETE' EXPORTING object_id = ls_object * CLIENT = SY-MANDT EXCEPTIONS not_existing = 1 not_allowed = 2 not_authorized = 3 exception_in_exit = 4 OTHERS = 5.

DEQUEUE_EKW_REPORTS CALL FUNCTION 'DEQUEUE_EKW_REPORTS' EXPORTING * MODE_TRDIR = 'X' name = lv_rep_name * X_NAME = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' .

IO_C_PHYSICAL_OBJECTS_GET CALL FUNCTION 'IO_C_PHYSICAL_OBJECTS_GET' TABLES info_objects = lt_objects info_objects_with_phys_obj = lt_loio_phio info_objects_without_phys_obj = lt_failed_objects bad_objects = lt_bad_objects.

SDOK_LOIO_FROM_RELATIONS_GET CALL FUNCTION 'SDOK_LOIO_FROM_RELATIONS_GET' EXPORTING object_id = ls_loio TABLES result = lt_relation_loio EXCEPTIONS not_existing = 1 bad_class = 2 not_authorized = 3 exception_in_exit = 4 OTHERS = 5.

SDOK_LOIO_FROM_RELATIONS_GET CALL FUNCTION 'SDOK_LOIO_FROM_RELATIONS_GET' EXPORTING object_id = ls_loio TABLES result = lt_relation_loio EXCEPTIONS not_existing = 1 bad_class = 2 not_authorized = 3 exception_in_exit = 4 OTHERS = 5.

IO_C_PHYSICAL_OBJECTS_GET CALL FUNCTION 'IO_C_PHYSICAL_OBJECTS_GET' TABLES info_objects = lt_objects info_objects_with_phys_obj = lt_loio_phio info_objects_without_phys_obj = lt_failed_objects bad_objects = lt_bad_objects.

SDOK_LOIO_FROM_RELATIONS_GET CALL FUNCTION 'SDOK_LOIO_FROM_RELATIONS_GET' EXPORTING object_id = ls_loio TABLES result = lt_relation_loio EXCEPTIONS not_existing = 1 bad_class = 2 not_authorized = 3 exception_in_exit = 4 OTHERS = 5.

IW_C_CONTEXT_SET CALL FUNCTION 'IW_C_CONTEXT_SET' EXPORTING language = gs_iwcontext-langu country = ls_iwcontext-country industry = ls_iwcontext-ext_id release = ls_iwcontext-release task = c_task_display_attr TABLES context = lt_context.

IW_C_CONTEXT_SET CALL FUNCTION 'IW_C_CONTEXT_SET' EXPORTING language = ls_iwcontext-langu country = ls_iwcontext-country industry = ls_iwcontext-ext_id release = ls_iwcontext-release task = c_task_display_attr TABLES context = lt_context.

IO_C_PHYSICAL_OBJECT_GET CALL FUNCTION 'IO_C_PHYSICAL_OBJECT_GET' * EXPORTING * REPLACE_PHIO_WITH_LOIO = 'X' TABLES info_objects = lt_objects context = lt_context info_objects_with_phys_obj = lt_loio_phio_tmp bad_objects = lt_bad_objects * REQUESTED_PROPERTIES = * PROPERTIES = * COVER_LOIOS = .




IW_C_CONTEXT_SET CALL FUNCTION 'IW_C_CONTEXT_SET' EXPORTING language = gs_iwcontext-langu country = ls_iwcontext-country industry = ls_iwcontext-ext_id release = ls_iwcontext-release task = c_task_display_attr TABLES context = lt_context.

IW_C_CONTEXT_SET CALL FUNCTION 'IW_C_CONTEXT_SET' EXPORTING language = ls_iwcontext-langu country = ls_iwcontext-country industry = ls_iwcontext-ext_id release = ls_iwcontext-release task = c_task_display_attr TABLES context = lt_context.

IO_C_PHYSICAL_OBJECT_GET CALL FUNCTION 'IO_C_PHYSICAL_OBJECT_GET' * EXPORTING * REPLACE_PHIO_WITH_LOIO = 'X' TABLES info_objects = lt_objects context = lt_context info_objects_with_phys_obj = lt_loio_phio_tmp bad_objects = lt_bad_objects * REQUESTED_PROPERTIES = * PROPERTIES = * COVER_LOIOS = .

SDOK_LOIOS_PROPERTIES_GET CALL FUNCTION 'SDOK_LOIOS_PROPERTIES_GET' TABLES object_list = pt_objects properties_request = gt_req_properties_loio properties = lt_prop_loio_tmp.

IO_C_PHYSICAL_OBJECTS_GET CALL FUNCTION 'IO_C_PHYSICAL_OBJECTS_GET' TABLES info_objects = pt_objects info_objects_with_phys_obj = pt_lophs.

SDOK_LOIO_FROM_RELATIONS_GET call function 'SDOK_LOIO_FROM_RELATIONS_GET' exporting object_id = ls_object tables result = lt_result exceptions not_existing = 1 bad_class = 2 not_authorized = 3 others = 4.

SDOK_RELA_DELETE CALL FUNCTION 'SDOK_RELA_DELETE' EXPORTING object_id = ls_relations * CLIENT = SY-MANDT * PARTNER_FROM = * PARTNER_TO = EXCEPTIONS NOT_EXISTING = 1 NOT_ALLOWED = 2 NOT_AUTHORIZED = 3 EXCEPTION_IN_EXIT = 4 OTHERS = 5.

SDOK_LOIO_DELETE CALL FUNCTION 'SDOK_LOIO_DELETE' EXPORTING object_id = ls_object * CLIENT = SY-MANDT EXCEPTIONS not_existing = 1 not_allowed = 2 not_authorized = 3 exception_in_exit = 4 OTHERS = 5.

GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING jobcount = lv_jobcount jobname = pv_job EXCEPTIONS no_runtime_info = 1 OTHERS = 2.

BP_FIND_JOBS_WITH_PROGRAM CALL FUNCTION 'BP_FIND_JOBS_WITH_PROGRAM' EXPORTING ABAP_PROGRAM_NAME = 'RSIWB_REORG_BATCH' STATUS = 'R' EXCEPTIONS NO_JOBS_FOUND = 1 OTHERS = 2.

BP_FIND_JOBS_WITH_PROGRAM CALL FUNCTION 'BP_FIND_JOBS_WITH_PROGRAM' EXPORTING ABAP_PROGRAM_NAME = 'RSIWB_ROLLBACK_BATCH' STATUS = 'R' EXCEPTIONS NO_JOBS_FOUND = 1 OTHERS = 2.

BP_FIND_JOBS_WITH_PROGRAM CALL FUNCTION 'BP_FIND_JOBS_WITH_PROGRAM' EXPORTING ABAP_PROGRAM_NAME = 'RSIWB_FINDEL_BATCH' STATUS = 'R' EXCEPTIONS NO_JOBS_FOUND = 1 OTHERS = 2.

BP_JOB_COPY CALL FUNCTION 'BP_JOB_COPY' EXPORTING dialog = 'N' source_jobcount = pv_jobcount source_jobname = pv_job target_jobname = pv_job IMPORTING new_jobhead = ls_new_jobhead * CHANGING * RET = EXCEPTIONS cant_create_new_job = 1 cant_enq_job = 2 cant_read_sourcedata = 3 invalid_opcode = 4 jobname_missing = 5 job_copy_canceled = 6 no_copy_privilege_given = 7 no_plan_privilege_given = 8 OTHERS = 9.

JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING jobcount = lv_jobcount jobname = pv_job sdlstrtdt = lv_date sdlstrttm = lv_time EXCEPTIONS cant_start_immediate = 1 invalid_startdate = 2 jobname_missing = 3 job_close_failed = 4 job_nosteps = 5 job_notex = 6 lock_failed = 7 invalid_target = 8 OTHERS = 9.

FILENAME_GET CALL FUNCTION 'FILENAME_GET' EXPORTING iv_filename = lv_default_filename title = text-039 IMPORTING ev_filename = lv_filename.

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = text-043 txt1 = text-044 txt2 = lv_line txt3 = lv_line1 * TXT4 = ' ' .

IW_C_LO_CLASS_SRC_CLASS_GET CALL FUNCTION 'IW_C_LO_CLASS_SRC_CLASS_GET' EXPORTING class = lv_class_io IMPORTING src_class = lv_class_src.

IO_C_PHYSICAL_OBJECTS_GET CALL FUNCTION 'IO_C_PHYSICAL_OBJECTS_GET' TABLES info_objects = lt_loio info_objects_with_phys_obj = lt_loio_phio.

SDOK_LOIOS_PROPERTIES_GET CALL FUNCTION 'SDOK_LOIOS_PROPERTIES_GET' TABLES object_list = lt_object properties_request = gt_req_properties_loio properties = lt_prop_loio.

ENQUEUE_EKW_REPORTS CALL FUNCTION 'ENQUEUE_EKW_REPORTS' EXPORTING * MODE_TRDIR = 'X' name = iv_rep_name * X_NAME = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

SDOK_LOIOS_PROPERTIES_GET CALL FUNCTION 'SDOK_LOIOS_PROPERTIES_GET' TABLES object_list = it_exc_folders[] PROPERTIES_REQUEST = lt_req_PROPERTIES[] properties = lt_PROPERTIES[].



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name KW_CONTENT_DELETION_BG_F01 or its description.