Skip to Content

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

1.png (110.8 kB)
2.png (131.1 kB)
3.png (129.1 kB)
4.PNG (42.2 kB)
5.png (57.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jul 01, 2016 at 04:37 AM

    This message was moderated.

    Add comment
    10|10000 characters needed characters exceeded

  • Hi Mart,

    Were you able to sort this out? Can you help with the solution you followed. We have a similar issue and exactly the same situation as yours.

    Thanks

    Sab

    Add comment
    10|10000 characters needed characters exceeded