Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI for insert time events.

BALAMURUGANG
Participant
0 Likes
2,320

Hi,

I have searched in forum.But no solution.Please mention BAPI to insert Time events(Infotype 2011).

Thanks,

Bala

Balamurugan Gunasekaran
10 REPLIES 10
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,979

I think you can make use of HR_INFOTYPE_OPERATION itself.

Kesav

Read only

0 Likes
1,979

Keshav,

I want to insert the following fields.But DALLF is not in the mentioned BAPI.

PERNR LDATE

LTIME SATZA

DALLF TERID

Thanks,

Bala

Balamurugan Gunasekaran
Read only

0 Likes
1,979

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

Read only

0 Likes
1,979

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

Read only

0 Likes
1,979

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

Balamurugan Gunasekaran
Read only

0 Likes
1,979

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.

Read only

0 Likes
1,979

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

Balamurugan Gunasekaran
Read only

0 Likes
1,979

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

Read only

0 Likes
1,979

Keshav,

Asked as a clarification.I did not mention wrong.

Bala

Balamurugan Gunasekaran
Read only

0 Likes
1,979

Hi ,

I did not mean anything wrong

Anyways Good Luck.

Kesav