Infotype 2011 behavior
Hi there,
is there a way to change infotype 2011 behavior? I mean, when a user manipulates a time event on this infotype it automatically deletes the original record and creates a new one on it with the new data.
Best regards,
Bruno Krebs.
It depends on how you r uploading data in 2011. If you are using a flat file which is uploaded then it will overwrite the existing one
Similar Messages
-
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. -
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 -
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.
-
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 -
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 -
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.
SohailDear 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 -
In T.Code PA30 under infotype 2011 field editing is required
Hi All,
In t.code <b>PA30</b> <b>under infotype 2011</b> when <b>in create mode</b> i need to have the field (Customer-Specific Field) in edit mode.
Please advice me can i have the edit mode for the field P2011-PDC_USRUP.
Regards
BadariHi badari,
1. This is done thru customization SPRO
by functional consultant.
2. There there is the option
of making this field (for this infotype 2011,
module pool name MP200000)
visible/obligatory,optional etc.
regards,
amit m. -
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? -
Can any body tell me how to upload data for infotype 2011
hi gurus,
please tell me hw to create the bdc for infotype 2011.Go to SHDB and record the Tcode PA30 with Infotype 2011.
~BiSu -
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
Maybe you are looking for
-
Hello all, this footage Im using imported into FCP as 720 x 480 regular ntsc footage. In final cut the video displayes with a letterbox. Unfortunately I went ahead and edited everything before asking questions about this letterbox. So now im running
-
Photo Transfer Problem From Minox Dcc M3 to Ipod via Camera Connector
Hi, I have a minox Dcc M3 digital camera,and i recently purchased a 5th generation ipod with the intention of downloading images from my minox camera direct to the ipod, so that i could delete the images from my camera and carry on taking more pictur
-
Newbie Focus Traversal Problem
I'm trying to do the equivalent of checking the "Tab Stop" checkbox in the MS C++ compiler's dialog layout tool. In other words, I want to go from field to field with the tab key. I've cut and pasted some code from another web site into my code but i
-
Characters not allowed in column names in Siebel table
Hello, I am trying to find out the characters or symbols which are not allowed to be a part of column names in Siebel tables. For instance, I checked and found out ( and ) along with all numbers and alphabets are allowed to be part of column name of
-
First Character " " in shorttext is convertet to " ( ) "
High there, when CONVERT_STREAM_TO_ITF_TEXT is used to convert first 40 characters of a longtext into shorttext and the first Character is a "<", the resulting shorttext starts with "<(><<)>". This is a function of FU CONVERT_STREAM_TO_ITF_TEXT. Some