Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3019

Extend ODATA service Approve Timesheet show new field

$
0
0

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.

 

1.png

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

2.png

 

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:

3.png

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

 

4.PNG

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

 

5.png

I have left any step in the process?

 

Thank you very much for your help

 

 

Best Regards


Viewing all articles
Browse latest Browse all 3019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>