cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Timesheet problem

pierosilve
Explorer
0 Kudos

Hello,

I'm configuring SAP Timesheet and I have a problem: I can see the calendar view correctly, but when i tap on a single day and go to the screen of time entries for that day, i can't see time entries!

I have tested from the Gateway the service and this works:

http://xxx:8000/sap/opu/sdata/GBHCM/TIMESHEET/WorkCalendarCollection?$filter=FilterStartDate EQ '2012-05-01T00:00:00’ AND FilterEndDate EQ '2012-05-31T00:00:00’

it gives me list of month days

but this one return nothing (empty list):

http://xxx:8000/sap/opu/sdata/GBHCM/TIMESHEET/TimeEntryCollection?$filter=FilterStartDate EQ '2012-05-01T00:00:00’ AND FilterEndDate EQ '2012-05-31T00:00:00’

If I go in SAP system and test methods in the class /GBHCM/CL_MGW_RDT_TCS they works correctly, giving me list of time entries!

I'm connected in SAP systme with the same user of the RFC connection between Gateway and SAP that execute RFC's...

I have no errors in the gateway error log and no authorization problems (cheched with ST01).

Another problem is whn I try to create a new time entry from the app: it gives me an error, and in the gateway error log I can se an error like this:

Backend error occurred. T100 Info:ZCAT-003.

Any ideas?

thanks

Piero

Accepted Solutions (1)

Accepted Solutions (1)

pierosilve
Explorer
0 Kudos

Ok, I found the cause: debugging the execution of GET_ENTITYSET method of the class that implements the service, I found this code:

* Mobile scenario supports only these entries
CHECK <ls_catsrecord>-wagetype     IS NOT INITIAL OR
<ls_catsrecord>
-abs_att_type IS NOT INITIAL.

I need a value for one of these filelds, but in the example that I was testing these fields were empty!

I'm asking why SAP doesn't talk about these constraints in the app guide!

bye

Piero

Answers (0)