on 05-07-2012 4:39 AM
Dear all,
Tried to use function HR_INFOTYPE_OPERATION to delete IT2011 record with no luck, anyone have any exprience on that?
Regards
Bill
My code
DATA: WA_RETURN LIKE BAPIRETURN1,
WA_KEY LIKE BAPIPAKEY,
P2011 LIKE P2011.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = '12345678'
IMPORTING
RETURN = WA_RETURN.
P2011-PERNR = '12345678'.
P2011-ENDDA = '20120507'.
P2011-BEGDA = '20120507'.
P2011-LDATE = '20120507'. "Logical Date
P2011-LTIME = '111111'. "Logical time
P2011-SATZA = 'P01'. "Time Event Type
P2011-PDSNR = 2276. "Sequential number for PDC messages
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '2011'
NUMBER = '12345678'
* SUBTYPE =
* OBJECTID =
* LOCKINDICATOR =
VALIDITYEND = '20120507'
VALIDITYBEGIN = '20120507'
* RECORDNUMBER =
RECORD = P2011
OPERATION = 'DEL'
* TCLAS = 'A'
* DIALOG_MODE = ''
* NOCOMMIT =
* VIEW_IDENTIFIER =
* SECONDARY_RECORD =
IMPORTING
RETURN = WA_RETURN
KEY = WA_KEY
.
CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
EXPORTING
NUMBER = '12345678'.
Thanks both for the reply.
But I saw some code use HR_INFOTYPE_OPERATION to insert record into IT2011, did that mean HR_INFOTYPE_OPERATION is not available for modify or delete but available for insert?
And I would like to know if there are some other function call I can use, or I should update the table directly?
Regards
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HR_TMW_DB_UPDATE_TEVENT is working thanks.
Thanks Whiterays for the prompty reply and thanks Anshul for the reference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Bill,
you can use HR_TMW_DB_UPDATE_TEVENT for Updating /deletion of Time Related data.
before That Check the include LHRTIM00_TMWBUFFERCB9 and check how the tables are being filled for deletion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
The entries of IT-2011, will be maintained in TEVEN table, if you want to delete the entries (Records),
you need to follow the below steps:
1) T-coe: SE37
2) SE16N_INTERFACE
3) Process (F8)
Set the values as below:
4) I_TAB = TEVEN
5) I_EDIT = X
6) I_SAPEDIT = X
7) I_NO_TXT = X
😎 I_MAX_LINES = Blank (Default value is 500)
9) Process (F8)
Now you will get a list of all the time events maintained in IT-2011 includes all the Personal numbers, so you need to select your employee personal number alone and can do modifications and deletions.
Note: Before deleting any records make sure that you have chosen the correct employee & corresponding records, if not there is a chance to delete the other employee records.
Hope it will help you,
With warm regards,
Srikanth Naidu. Akula
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
INFOTYPE OPERATION function doesn't work for IT2011, since data doesn't store in PA2011 table .
Please check the TEVEN table for deletion or modification of records for IT2011.
Regards
Whiteraystech
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.