Infotype 2011 TEVEN table
Dear All,
TEVEN is a time event table of infotype 2011. satza is a field which has P10 value as clock-in time of an employee. I want to select first P10(Clock-In time) of an employee on a distinct date. How can i do that.
there is a field of pdsnr which is a unique number, but in which table i have to join it to get a first P10 record of an employee on a particular date.
Thanks.
Sohail
Dear Muhammed,
First please close all the threads which were answered,also please give points to the answers which helped you.Its a motivation factor for us.
I have seen all the threads posted by you. None of them have been closed or given points.
We are here to help you.
Regards,
Pankaj
Similar Messages
-
Hi Experts,
In which table data for infotype 2011 stored (Time Event)?
Im looking that table PA2011, but table is empty.
Thanks
RRHi,
Check out table TEVEN.
Clock in & out info is there.
Regards,
Dilek -
How to Add data in HR infotype 2011 through ABAP
Hi All,
Can any one please give me an idea about how to insert time record in Infotype 2011 through ABAP. I cannot use the front end recording (SHDB) as it locks the person's master data. I need to Add the record through ABAP Query. I have inserted record in Table TEven and it works fine but then there is a conflict of sequence number field and system does not allow to change the data in infotype 2011 and gives error message.
ThanksHi amit
even i have same requirement i tried with the same code but i'm getting error No data stored for infotype 2011 in the period.
code:
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = wa_modify-pernr
IMPORTING
RETURN = return
clear return.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = p_infty
number = wa_modify-pernr
* SUBTYPE =
* OBJECTID =
* LOCKINDICATOR =
* VALIDITYEND = wa_modify-ldate
* VALIDITYBEGIN =
* RECORDNUMBER =
record = wa_modify
operation = 'MOD'
TCLAS = 'A'
DIALOG_MODE = '0'
* NOCOMMIT =
* VIEW_IDENTIFIER =
* SECONDARY_RECORD =
IMPORTING
RETURN = return
* KEY =
CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
EXPORTING
number = wa_modify-pernr
* IMPORTING
* RETURN = -
Hello people,
I have a question about infotype 2011.
I made a follow code:
INFOTYPE: 2011
PROVIDE .... P2011 BETWEEN PN-BEGDA AND PN-ENDDA
On screen parameter I put 21.06 until 20.07 in Other period , and same period in P.SelcPeriod.
But the table p2011 is load all period with current person. All data the current person the infotype p2011 is loaded! My report be slowly...
what's solution for this? I need only the period 21.06 until 20.07 in table p2011.
thanks in advance,
AndréHi,
Thanks for help-me.
I used TEVEN table with SELECT .
but still don't understand , Why get pernr, load all data in INFOTYPE 2011.
My report is very speed now
Thanks again!
André -
Hello experts,
we have and requirement where we have to insert/delete or modify specific clock in/out posts from infotype 2011. Looking trough this forum I was not able to find how to delete or modify specific events from SAP correctly.
We are able to insert new record via FM : HR_INFOTYPE_OPERATION with ease, but can not use the same function module to either delete or modify the same record.
I was able to find FM: HR_TMW_DB_UPDATE_TEVENT and tried it in combination with HR_TMW_DB_READ_TEVENT, with out any succes.
My question is: in what way must the tables be filled for deletion or modification, for FM HR_TMW_DB_UPDATE_TEVENT to work?
With testing deleting a record, function explicitly demands taht all four tables are set
del_teven = t_teven_del
ins_teven = t_teven_ind
del_teven_more = t_teven_more_del
ins_teven_more = t_teven_more_ins
, but still the record is not deleted form table TEVEN.
Thank you in advance for any given anwsers,
MatevžHello Rajesh,
the code goes:
* get original data:
CALL FUNCTION 'HR_TMW_DB_READ_TEVENT'
EXPORTING
pernr = iv_pernr
fromdate = iv_begda
todate = iv_endda
IMPORTING
result = result_tmw.
* get next seq. nr.:
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = lv_ragne
object = lv_object
IMPORTING
NUMBER = lv_number
EXCEPTIONS
INTERVAL_NOT_FOUND = 1
NUMBER_RANGE_NOT_INTERN = 2
OBJECT_NOT_FOUND = 3
QUANTITY_IS_0 = 4
QUANTITY_IS_NOT_1 = 5
INTERVAL_OVERFLOW = 6
BUFFER_OVERFLOW = 7
OTHERS = 8.
LOOP AT result_tmw INTO s_result_tmw.
s_teven = s_result_tmw-teven.
IF s_teven-ldate = iv_ldate AND s_teven-ltime = iv_ltime AND s_teven-satza = iv_satza.
"set TEVEN_DEL tables for reading
APPEND s_teven TO t_teven_del.
APPEND s_teven_more TO t_teven_more_del.
"set status for change to TEVEN_INS tables
s_teven-pdsnr = lv_number.
s_teven-ldate = iv_ldate.
s_teven-ltime = iv_ltime.
s_teven-satza = iv_satza.
APPEND s_teven TO t_teven_ins.
MOVE-CORRESPONDING s_teven TO s_teven_more.
APPEND s_teven_more TO t_teven_more_ins.
EXIT.
ENDIF.
ENDLOOP.
* execute deletion of current record:
CALL FUNCTION 'HR_TMW_DB_UPDATE_TEVENT'
TABLES
del_teven = t_teven_del
ins_teven = t_teven_ins
del_teven_more = t_teven_more_del
ins_teven_more = t_teven_more_ins
EXCEPTIONS
insert_failed = 1
update_failed = 2
OTHERS = 3.
COMMIT WORK.
Now I am using the following code, that is working:
* get original data:
CALL FUNCTION 'HR_TMW_DB_READ_TEVENT'
EXPORTING
pernr = iv_pernr
fromdate = iv_begda
todate = iv_endda
IMPORTING
result = result_tmw.
********************************************************************** modification
* CODE : MODIFY CLOCK IN/OUT
IF iv_operation = 'MOD'.
LOOP AT result_tmw INTO s_result_tmw.
s_teven = s_result_tmw-teven.
IF s_teven-ldate = iv_ldate AND s_teven-ltime = iv_ltime AND s_teven-satza = iv_satza.
"set TEVEN_DEL tables for reading
APPEND s_teven TO t_teven_del.
APPEND s_teven_more TO t_teven_more_del.
"set status for change to TEVEN_INS tables
APPEND s_teven TO t_teven_ins.
MOVE-CORRESPONDING s_teven TO s_teven_more.
APPEND s_teven_more TO t_teven_more_ins.
EXIT.
ENDIF.
ENDLOOP.
* execute deletion of current record:
CALL FUNCTION 'HR_TMW_DB_UPDATE_TEVENT'
TABLES
del_teven = t_teven_del
ins_teven = t_teven_ins
del_teven_more = t_teven_more_del
ins_teven_more = t_teven_more_ins
EXCEPTIONS
insert_failed = 1
update_failed = 2
OTHERS = 3.
COMMIT WORK.
* insert new (updated) record of clock registration:
s_p2011-pernr = iv_pernr.
s_p2011-infty = '2011'.
s_p2011-ldate = iv_ldate_new.
s_p2011-ltime = iv_ltime_new.
s_p2011-erdat = sy-datum.
s_p2011-ertim = sy-uzeit.
s_p2011-satza = iv_satza_new.
s_p2011-origf = 'E'.
s_p2011-begda = iv_ldate.
s_p2011-endda = iv_ldate.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '2011'
number = iv_pernr
* SUBTYPE =
* OBJECTID =
* LOCKINDICATOR =
validityend = iv_begda
validitybegin = iv_endda
recordnumber = f_recordnumber
record = s_p2011
operation = 'INS'
tclas = 'A'
dialog_mode = '0'
* NOCOMMIT =
* VIEW_IDENTIFIER =
* SECONDARY_RECORD =
IMPORTING
return = fm_return
key = personaldatakey.
COMMIT WORK.
ENDIF.
Kind regards,
Matevž -
Bapi or function mudule to insert or update enteries in Infotype 2011.
Hello Experts,
I am working on travel request workflow where I need to feel attendance for employee for those travel days journey.
For that I need to use Infotype 2011( Table TEVEN).
Anyone please tell me the Function module name or BAPI name to update attendance with input as employee number and trip begin date and starting date?, or suggest me with other possibility if any there.Hi,
The link you send me out of that I think below can help me, Can you please tell me the possible entries in HR_TMW_DB_UPDATE_TEVENT function module if I want to update the table for subtype 0001 and giving employee number with trip start date and end date as I am trying to use the same but my record is not getting update.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'PD_SEQ_NR'
quantity = '00000000000000000001'
IMPORTING
number = lw_nextnr
quantity = lw_qty
returncode = lw_return
EXCEPTIONS "#EC
CALL FUNCTION 'HR_TMW_DB_UPDATE_TEVENT'
TABLES
del_teven = p_del_teven
ins_teven = p_ins_teven
del_teven_more = t_del_teven_more
ins_teven_more = t_ins_teven_more
EXCEPTIONS
insert_failed = 1
update_failed = 2
OTHERS = 3. -
Infotype 2011 corresponding RFC in Component version 5.0
Hi all ,
I am very new to SAP. Basicaly i am a XI consutnat. Now i am working on HR scenario infotype 2011. what my task is i have to insert employee, third party access control data to the R/3 system. I am woking on SAP ERP Central Component 5.0. What my question is through which RFC i can insert value manullay and in which table the data will store. I have gone thourugh the TEVEN table but those value I inserted through infotype 2011 is not store to the TEVEN table. Its is saving some other table, because i can see those value through infotype 2011 . How can i find it out the actual table ? Please help me .What was the exact wording of the error message? If it said network timeout, try disabling the antivirus and firewall on the computer during the download and update. Kaspersky is especially bad.
-
how to check the data is getting stored in infotype2011 , i cannot c any recored in infotype2011,please advice me to trouble shoot.
dear sujit
thanx a lot for your answer, can u plz advice me as i have check the table in that data is getting store, but when i select form pa30 infotype 2011 for any employ it gives an error like no data is store for any period like monthly ,weekly and yearly for any employ but when i check the data in TEVEN TABLE It is there .kindly advice me help.if u can. -
Hi Gurus,
I am working on BDC which updates 2011 infotyeps.
by mistake i have tried to generate infotype 2011 from PM01 Transaction code.
when i am executing my BDC program infotype 2011 is not updated.
Also it is telling module pool program Mxxxx doesnot exist.
can i replace the old infotype ?
or how i can generate the standard infotype 2011 once gain?
Whai i need to do for the updation of records in infotype 2011?
Please suggest me..
Regards,
Imran2011 is a time infotype, this one is not a true Infotype, the actual database table is TEVEN and not PA2011. Transaction to maintain is PA61 for time Infotype.
Check SAP reports RPTEUP00 and RPTEUP10 (or FM HR_CC1_TIMEEVENT_INSERT and HR_CC1_TIMEEVENT_POST)
Regards,
Raymond -
Manipulation of TEVEN table??
Hi experts!
After uploading time events records to TEVEN with BAPI, I can see those records in infotype 2011 in PA30.
But in TM schema, function P2011 can NOT read those time events records into TIP table.
Can anybody have some idea about this problem?
BTW, cauze those deleted records of TEVEN is not really deleted but just marked as CANCELLED=X. Is there a way to delete those records physically?
Thanks in adv!
Br,KeeHi experts!
After uploading time events records to TEVEN with BAPI, I can see those records in infotype 2011 in PA30.
But in TM schema, function P2011 can NOT read those time events records into TIP table.
Can anybody have some idea about this problem?
BTW, cauze those deleted records of TEVEN is not really deleted but just marked as CANCELLED=X. Is there a way to delete those records physically?
Thanks in adv!
Br,Kee -
Unable to Determine the Change Date and Time for records in infotype 2011
Hi Everyone,
We need to know on when the clock-in and clock-out records were interfaced to SAP in infotype 2011.
The change date/time field in infotype 2011 is blank/not populated. Hence, we're unable to determine on when the clock-in records were updated in infotype 2011.
It is not possible to get the audit logs for infotype 2011 as it is switched off.
We found this table TEVEN and just the same thing, the field "change on" is blank.
Kindly help us on how we can determine the change date and time for records in infotype 2011.Hi Prasad,
Here's the scenario.
On June 3, it was reported that staff's clock-in record on june 1, 7:00AM is missing in infotype 2011.
However, when I checked infotype 2011, the record is there.
So, they are now asking me on when this record was updated in infotype 2011 as they are thinking that there might be some delays in sending of the data to SAP.
The created on and created at in table TEVEN shows the same, june 1, 7:00AM which seems to be not true as on june 3, it was reported to be missing.
Can you help further on this? -
Hi experts!!
Is possible to do queries and get information from Infotypes and RT table in the same time.
We would like to do a query with information from infotypes an RT table, we don't want do a query for the data from infotypes and another one to get data from de rt table (PC00_M99_CWTR).
How is possible to do this kind os queries?
Kind regards,
JulianTo check on how to use cl_hr_pay_access class, I would first try google and then the where used list button while reviewing said class in se24 tcode - example of use: RPCGR1K0
DATA: pay_access TYPE REF TO cl_hr_pay_access. "access of payroll result
CREATE OBJECT pay_access.
CALL METHOD pay_access->read_cluster_dir
EXPORTING
pernr = pernr
IMPORTING
cluster_dir = rgdir[]
EXCEPTIONS
OTHERS = 4.
CALL METHOD pay_access->read_pa_result
EXPORTING
pernr = p_pernr
period = p_rgdir
molga = '07'
IMPORTING
payroll_result = pay_result
EXCEPTIONS
no_authorization = 1
read_error = 2
country_version_not_available = 3
OTHERS = 4.
CALL METHOD pay_access->read_pe_result
EXPORTING
pernr = p_pernr
period = p_rgdir
molga = '07'
IMPORTING
payroll_result = pay_result_person
EXCEPTIONS
no_authorization = 1
read_error = 2
country_version_not_available = 3
no_person_data = 4
OTHERS = 5.
result will be held in pay_result_person->inter deep structure
RT is inter-rt
BT is inter-bt
Or you can use function PYXX_READ_PAYROLL_RESULT - again - google or where used in se37 tcode. standard use in RPCDCI00
* FORM GET_PAYRESULT *
* read the internationl part of the payroll result from sequential *
* number I_SEQNR. *
form get_payresult using i_seqnr like pc261-seqnr
changing cs_payxx_result type pay99_international.
field-symbols: <payxx_result> type pay99_international.
call function 'PYXX_READ_PAYROLL_RESULT'
exporting
employeenumber = pernr-pernr
sequencenumber = i_seqnr
changing
payroll_result = <pay_result>
exceptions
illegal_isocode_or_clusterid = 1
error_generating_import = 2
import_mismatch_error = 3
subpool_dir_full = 4
no_read_authority = 5
no_record_found = 6
versions_do_not_match = 7
error_reading_archive = 8
error_reading_relid = 9
others = 10.
if sy-subrc <> 0.
case sy-subrc.
when 5.
perform error using c_er_payauth i_seqnr space
space space c_yes.
when others.
perform error using c_er_readpay i_seqnr sy-subrc
space space c_yes.
endcase.
endif.
assign component 'INTER' of structure <pay_result>
to <payxx_result>.
cs_payxx_result = <payxx_result>.
endform. " GET_PAYRESULT
Good luck. -
Difference between Infotype and Database table
Hi all,
in SAP ABAP-HR we have the concept of INFOTYPE. will anybpdy please tell me , in simple word, what exactly is it? and what are the difference of INFOTYPE with DATABASE TABLE.
Anirban Bhattacharjeehi,
infotypes contains group of logically related fields on a single screen (just like TABLE) and which is bounded by TIME CONSTRIANT (no time constrint for table).
main diffarence is TIME CONSTRAINT, means validity period of data records in infotypes based on time constrint only.
for more information on time constrint follow this link.........
http://help.sap.com/saphelp_erp2005/helpdata/en/48/35c9f24abf11d18a0f0000e816ae6e/content.htm
each infotype contains, its corresponding database table.
ex: 0002---> personal information.
its database table: pa0002.
the table pa0002 contains four strctures pakey, pshd1, ps0002 and ci_p0002.
pakey-->contains key fields information.
psdh1--->contains last logon detils (usename....)
ps0002--->contains infotype specific fields.
ci_p0002--> for furthur addinf an any extra fields
Edited by: Ashok Reddy on Jun 25, 2008 2:12 PM -
i m new one of sap i need to do the mass upload to infotype 2011 please help me..
Hi Vijayan,
Generally the time events (2011) are uploaded thru some Z program which is created by the ABAPers... but the SAP has provided a report to upload the time events in bulk and they are
RPTEUP00
RPTEUP10
run these report in the T.code se38., get the help of ur ABAPer to change the report for your requirement..
hope this will help u.. if its helpful provide me the points
Regards
Gopinath.BKrish -
Hi.
Is there any way to enhance infotype 2011??
I'm going through pm01 transaction but i got an error message??
Anybody can help?No,
Unfortunately, enhancement is only possible for ifty 0002-0999
or
u see this link
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PT/PT.pdf
regards
Giridhar
Maybe you are looking for
-
Can not view applet in browser (IE5.5)
only my appletviewer shows my very simple applet. in the IE5.5 i can not view my applet... ? my applet just have write a string... any help ?
-
Cancellation of parked ERS invoice
Hi Gurus, How will I cancel Parked invoices of ERS? Thanks, Kumar
-
J1ID configuration for Depot purchase
Hi all. At the time of GRN for Depot purchase Excise value is not getting upload on material, because we have to pass on the Excise .So I made certain changes in J1ID as folows: 1. Excise Indicator for Plant :- in Excise Inv. Comp. selected 3 (No Tax
-
I am unable to add songs to a playlist, what do I do?
I am unable to add songs to a playlist. Any suggestions. All of the things I've previously done to add songs don't work now.
-
Why can't I upload photos from iPhoto to Facebook any more?
Since I updated to 10.9 I am not able to upload photos from iphoto (v.8.1.2) to facebook. When I try to upload the "publish" button is not highlighted so I can not click on it. I used to be able to upload from iphoto all the time. Is there some se