SAPTWDP0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this report to delete an employee's data in the system to ensure data privacy...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter SAPTWDP0 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
PC00_M42_TWDP - Delete Personnel Data
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.
Selection Text: S_REQ_UR = D .
Selection Text: S_REQ_DT = D .
Selection Text: S_PERNR = D .
Selection Text: S_DEL_UR = D .
Selection Text: S_DEL_DT = D .
Selection Text: RB_REQ = Request Deletion
Selection Text: RB_LOG = Display Log
Selection Text: RB_DEL = Perform Deletion
Selection Text: RB_CAN = Withdraw Request
Selection Text: P_TEST = Test Run
Title: Deletion of Employee Data for Data Privacy
Text Symbol: F09 = You are not authorized to delete data
Text Symbol: F08 = You are not authorized to request deletion
Text Symbol: F06 = Deleted successfully
Text Symbol: F04 = Requested successfully
Text Symbol: F03 = Selected items contain executed ones
Text Symbol: F02 = Selected items contain error
Text Symbol: F01 = Select at least one item
Text Symbol: BP2 = Activity
Text Symbol: BP1 = Selection
Text Symbol: 011 = Restrict your selection
Text Symbol: 010 = You are not authorized to maintain all HR info(sub)types
Text Symbol: 009 = Perform Deletion Testing Run
Text Symbol: 008 = Display Log
Text Symbol: 007 = Perform Deletion
Text Symbol: 006 = Withdraw Request
Text Symbol: 005 = Request Deletion
Text Symbol: 004 = Text
Text Symbol: 003 = Status
Text Symbol: 002 = Deleted
Text Symbol: 001 = Requested
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
REUSE_ALV_GRID_DISPLAY_LVC CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC' EXPORTING i_callback_program = gv_program i_callback_pf_status_set = c_pf_status i_callback_user_command = c_user_command * I_GRID_TITLE = * I_GRID_SETTINGS = is_layout_lvc = gs_layout it_fieldcat_lvc = gt_fieldcat[] * IT_EXCLUDING = * IT_SPECIAL_GROUPS_LVC = * IT_SORT_LVC = * I_DEFAULT = 'X' i_save = 'X' * IS_VARIANT = * IT_EVENTS = TABLES t_outtab = gt_itab[] EXCEPTIONS program_error = 1 OTHERS = 2 .
HR_TW_NAME_IN_CHINESE CALL FUNCTION 'HR_TW_NAME_IN_CHINESE' EXPORTING pp0002 = p_0002 pp0182 = p_0182 IMPORTING edit_name = p_name retcode = subrc EXCEPTIONS OTHERS = 1.
RP_EDIT_NAME CALL FUNCTION 'RP_EDIT_NAME' EXPORTING format = p_0002-knznm langu = space molga = '42' pp0002 = p_0002 IMPORTING edit_name = p_name retcode = subrc EXCEPTIONS OTHERS = 1.
HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = 'TWDP0' struc_content = ls_fea IMPORTING back = l_back EXCEPTIONS dummy = 1 error_operation = 2 no_backvalue = 3 feature_not_generated = 4 invalid_sign_in_funid = 5 field_in_report_tab_in_pe03 = 6 OTHERS = 7.
HR_EMPLOYEE_ENQUEUE CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE' EXPORTING number = p_pernr IMPORTING return = ls_return.
RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING curr_report = sy-repid TABLES selection_table = lt_rsparams EXCEPTIONS not_found = 1 no_report = 2 OTHERS = 3.
HR_CHECK_AUTHORITY_INFTY CALL FUNCTION 'HR_CHECK_AUTHORITY_INFTY' EXPORTING pernr = '00000000' infty = '*' subty = '*' level = 'W' EXCEPTIONS no_authorization = 1 internal_error = 2 OTHERS = 3.
HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = 'TWDP1' struc_content = ls_struc * KIND_OF_ERROR = IMPORTING back = auth_check * CHANGING * STATUS = EXCEPTIONS dummy = 1 error_operation = 2 no_backvalue = 3 feature_not_generated = 4 invalid_sign_in_funid = 5 field_in_report_tab_in_pe03 = 6 OTHERS = 7 .
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
SAPTWDP0 - Deletion of Employee Data for Data Privacy SAPTWDP0 - Deletion of Employee Data for Data Privacy SAPTSDEMO2 - Internal; DO NOT USE SAPTSDEMO2 - Internal; DO NOT USE SAPTREX_NODE_STYLES - Example: Node Styles in Tree Control (with Documentation) SAPTREX_NODE_STYLES - Example: Node Styles in Tree Control (with Documentation)