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

How to update infotype 2011 using BAPI_CC1_UPLOAD_TIMEEVENT

Former Member
0 Likes
2,388

Hi,

I am insisted to use only this BAPI to insert time events data.I have Passed the following values.Still the data s not created in 2011 infotype. Am i missing any mandatory fields

SOURCE_SYS                    ERP_00_200 (My Current system logical Name)

TEVENTTYPE                     P01

TERMINALID                       01

LOGDATE                          17.10.2012

LOGTIME                           12:41:30

PHYSDATE                       17.10.2012

PHYSTIME                        12:41:30

TIMEID_NO                       00000000

PERNO                            01000002

ATT_ABS_REASON

OBJECT_TYPE

OBJ_ID                            00000000

COMP_CODE

COSTCENTER

ORDER

WBS_ELEMENT

CUSTOMER_FIELD_1

CUSTOMER_FIELD_2

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,448

Then call BAPI_TRANSACTION_COMMIT, and HR_CC1_TIMEEVENT_POST.

Regards,

Raymond

Hi,

I am insisted to use only this BAPI to insert time events data.I have Passed the following values.Still the data s not created in 2011 infotype. Am i missing any mandatory fields

SOURCE_SYS                    ERP_00_200 (My Current system logical Name)

TEVENTTYPE                     P01

TERMINALID                       01

LOGDATE                          17.10.2012

LOGTIME                           12:41:30

PHYSDATE                       17.10.2012

PHYSTIME                        12:41:30

TIMEID_NO                       00000000

PERNO                            01000002

ATT_ABS_REASON

OBJECT_TYPE

OBJ_ID                            00000000

COMP_CODE

COSTCENTER

ORDER

WBS_ELEMENT

CUSTOMER_FIELD_1

CUSTOMER_FIELD_2

6 REPLIES 6
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,449

Then call BAPI_TRANSACTION_COMMIT, and HR_CC1_TIMEEVENT_POST.

Regards,

Raymond

Read only

0 Likes
1,448

(Or call report SAPCDT45)

Read only

0 Likes
1,448

Thanks Its Working fine,If I call the below BAPIs in sequence.

BAPI_CC1_UPLOAD_TIMEEVENT,BAPI_TRANSACTION_COMMIT, and HR_CC1_TIMEEVENT_POST,I habe unknowingly typed as Useful answer instead of correct answer.Sorry BOss..

Thanks'

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,448

Are you able to get an entry in the table CC1TEV.?

Read only

0 Likes
1,448

Yup,I am able to view the data s in CC1TEV table...Should i have to use transaction commit

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,448

Yes Please.. Commit the data after Function module Call. Use BAPI_TRANSACTION_COMMIT.

Check your data is available or not by giving the respective table for Infotype 2011. You can check this by going to Table T777D and enter infotype 2011 and execute in the field DBTAB your Mapping table for Infotype 2011 will be seen.

Check your entry in that table with your PERNR.

As suggested by Raymond check this report SAPCDT45 to get clarification on Errors.