Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem: Extend ODATA service Approve Timesheet show new field

Hello Experts:

I am having a problema with the extension of an ODATA for showing a new field in the APPROVE_TIMESHEET APP. I want to add new field information in the details table of the app.

First thing I have done is to extend the corresponding ODATA service of APPROVE TIMESHEET app in the SEGW transaction, in the correct entity TIME_DETAILS_EMP, adding my new field, called ZZ_STATUS_HR.

After that I have added in the corresponding structures with an APPEND structure the new field.

After that in the WEB IDE I add the column and the cells in the extension points SAP indicates for this App. Replacing the S3view I obtain the titles in the extension point of “columns” section but I can’t see my added information for the table in the “cells” section. Here is the code in the WEB IDE:

Then I put a breakpoint in the clas CL_HCM_TIMESHEET_APPRO_DPC_EXT in the method TIME_DETAILS_EMP_GET_ENTITYSET to check if the table is has data to show in detail view.

I can see that ZZ_STATUS_HR field has data but I cannot see in the app

Here we can see the result in the fiori app without my Z field ZZ_STATUS_HR

I have left any step in the process?

Thank you very much for your help

Best Regards

Not what you were looking for? View more on this topic or Ask a question