‎2011 Nov 29 10:56 AM
Hi,
I have searched in forum.But no solution.Please mention BAPI to insert Time events(Infotype 2011).
Thanks,
Bala
‎2011 Nov 29 11:03 AM
I think you can make use of HR_INFOTYPE_OPERATION itself.
Kesav
‎2011 Nov 29 11:11 AM
Keshav,
I want to insert the following fields.But DALLF is not in the mentioned BAPI.
PERNR LDATE
LTIME SATZA
DALLF TERID
Thanks,
Bala
‎2011 Nov 29 11:15 AM
Those fields are available in the structure TIMEEVENTS of the bapi BAPI_CC1_UPLOAD_TIMEEVENT
Yes DALLF is missing
Also check passing the values to parameter RECORD of function HR_INFOTYPE_OPERATION .
Kesav
‎2011 Nov 29 11:24 AM
Have a look at programs . Please read the documentation of reports before proceeding
RPTEUP00 - Upload Time Events from Sequential File
RPTEUP10 - Upload Time Events
These demo programs internally uses
HR_CC1_TIMEEVENT_INSERT
HR_CC1_TIMEEVENT_POST
Also check RPTIME00
‎2011 Nov 29 11:25 AM
Keshav,
The specified fields in HR_CC1_TIMEEVENT_INSERT function module.But i want to use BAPI.But you mentioned
BAPI_CC1_UPLOAD_TIMEEVENT .It does not have DALLF.
Then how to pass those fields as input for HR_INFOTYPE_OPERATION.Please.....
Bala
‎2011 Nov 29 11:29 AM
Then how to pass those fields as input for HR_INFOTYPE_OPERATION.Please.....
You can search in SCN for how to use HR_INFOTYPE_OPERATION.
The other programs are documented. Also read it
The function INTERNAL_CC1_UPLOAD_TIMEEVENT is called in bapi BAPI_CC1_UPLOAD_TIMEEVENT ( released one) but you donot have the field DALLF. May be you can copy the Bapi to Z and change the parameter to type timeevents instead of BAPICC1UPTEVEN which is internally passed to INTERNAL_CC1_UPLOAD_TIMEEVENT inside the bapi . I think this is a useless idea but wait for others here to answer.
‎2011 Nov 29 11:38 AM
Keshav,
In RPTEUP10 program,they have used HR_CC1_TIMEEVENT_INSERT & HR_CC1_TIMEEVENT_POST.I think in this method will work.But is it correct instead of BAPI.Because they used Insert instead of Commit.Please.
Bala
‎2011 Nov 29 11:45 AM
Because they used Insert instead of Commit
I see a commit work called after the function.
Report documentation
The report reads records from a sequential file and places them in table CC1TEV.
The records are interpreted as postings at a time recording system. The structure of the sequential file is described by the DDIC structure E1HRKK1TEUP; you may have to make modifications to adapt the structure to your external record format. If the conversion from the external to the internal structure CC1_TIMEEVENT requires special code, you can specify the code in the routine SET_EXTREC_TO_IRUECK.
The records are then processed and posted using the function modules.
These two functions are not released but internally its used in the bapi mentioned. Check the code inside bapi. Only the function INTERNAL_CC1_UPLOAD_TIMEEVENTis called and inside it the other fms HR_CC1_TIMEEVENT_INSERT & HR_CC1_TIMEEVENT_POST are called . There are many not released fm used in custom programs. Its used upon our own risks. I cannot provide a comment to use or not to use on it.
In my previous post what i said was incorrect due to some confusions
Kesav
‎2011 Nov 29 11:50 AM
Keshav,
Asked as a clarification.I did not mention wrong.
Bala
‎2011 Nov 29 11:52 AM