SAP Reports / Programs | Personnel Management | Personnel Administration | Taiwan(PA-PA-TW) SAP PA

SAPTWDPS SAP ABAP Report - Delete Personnel Numbers Completely (Taiwan)







SAPTWDPS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report deletes an employee's data in the system...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 SAPTWDPS 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 SAPTWDPS. "Basic submit
SUBMIT SAPTWDPS AND RETURN. "Return to original report after report execution complete
SUBMIT SAPTWDPS VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: TESTX = Test
Selection Text: SELPERNR = Personnel numbers
Selection Text: PROTOCOL = Detailed log
Title: Delete Personnel Numbers Completely (Taiwan)
Text Symbol: U05 = Error while deleting IT0031
Text Symbol: U04 = Error while updating IT0121
Text Symbol: TE5 = Incorrect personnel numbers:
Text Symbol: TE4 = To delete, set Test parameter to OFF
Text Symbol: TE3 = No data was deleted
Text Symbol: TE2 = This was only a test run.
Text Symbol: TE1 = No. of personnel numbers processed:
Text Symbol: PRO = Report log
Text Symbol: PQU = Do you really want to delete all data for the selected personnel numbers?
Text Symbol: PQS = Selection is initial
Text Symbol: PQR = All personnel numbers will be deleted; do you want to continue?
Text Symbol: ORD = No entry in ASSHR although REFEX = "X"
Text Symbol: LST = Personnel numbers processed:
Text Symbol: ER9 = Error code
Text Symbol: ER3 = Personnel number locked
Text Symbol: ER2 = Cannot delete integration
Text Symbol: ER1 = Cannot unlock personnel number
Text Symbol: ER0 = Cannot lock personnel number
Text Symbol: D05 = Error while updating IT0031
Text Symbol: D04 = Error while deleting IT0121
Text Symbol: D03 = Error while deleting ASSHR
Text Symbol: D02 = Error while deleting PDSNR
Text Symbol: D01 = Error while deleting ASSOB
Text Symbol: BP2 = Process
Text Symbol: BP1 = Selection
Text Symbol: ABR = Report was terminated
Text Symbol: 379 = TEVEN/_MORE: Personnel number set to "00000000" for:
Text Symbol: 005 = You are not authorized to maintain all HR info(sub)types
Text Symbol: 004 = Direct run not allowed
Text Symbol: 003 = Delete Personnel Numbers
Text Symbol: 002 = No
Text Symbol: 001 = Yes


INCLUDES used within this REPORT SAPTWDPS

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:

HR_CHECK_AUTHORITY_INFTY CALL FUNCTION 'HR_CHECK_AUTHORITY_INFTY' "QICAHRK029467 EXPORTING "QICAHRK029467 pernr = '00000000' "QICAHRK029467 infty = '*' "QICAHRK029467 subty = '*' "QICAHRK029467 level = 'W' "QICAHRK029467 EXCEPTIONS "QICAHRK029467 no_authorization = 1 "QICAHRK029467 internal_error = 2 "QICAHRK029467 OTHERS = 3. "QICAHRK029467

INTERN_DD_CHECK_EXIST CALL FUNCTION 'INTERN_DD_CHECK_EXIST' EXPORTING objname = dbtabname objtype = 'T' err_message = ' ' objstate = 'A' exists = 'X' EXCEPTIONS object_not_found = 01 other_object_class = 02.

RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' IMPORTING act_plvar = t_change_pointers-plvar EXCEPTIONS no_active_plvar = 1 OTHERS = 2.

RH_INFTY_CHANGE_PROT CALL FUNCTION 'RH_INFTY_CHANGE_PROT' TABLES changed_objects = t_change_pointers.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = bal_header IMPORTING e_log_handle = bal_handle EXCEPTIONS OTHERS = 1.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = bal_handle i_s_msg = bal_msg EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING i_save_all = 'X' EXCEPTIONS OTHERS = 1.



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 SAPTWDPS or its description.