Skip to Content
Author's profile photo Prakash Saurav

Extend oData Services for My Travel & Expenses Fiori App – Part 2

Extend oData Services for My Travel & Expenses Fiori App – Part 1

1 Logic to read & manipulate Entity Information

In this scenario we are only extending Expense entity type. Therefore we will have to provide logic to read and manipulate only Expense Type data.


Identified Methods:

/wp-content/uploads/2015/08/2015_08_05_14h47_46_765914.png

Note:
GET_ENTITY in Super Class of standard method calls GET_ENTITY_SET for individual entity read. Therefore we dont have to take care of GET_ENTITY in extension

1.1 Logical flow for EXPENSES_GET_ENTITYSET
/wp-content/uploads/2015/08/2015_08_05_14h51_18_765908.png

1.2 Logical flow for EXPENSES_UPDATE_ENTITY
/wp-content/uploads/2015/08/2015_08_05_14h56_31_765909.png

1.3 Logical flow for EXPENSES_CREATE_ENTITY

/wp-content/uploads/2015/08/2015_08_05_15h04_06_765910.png

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Shakeeluddin Khaja
      Shakeeluddin Khaja

      Thanks Prakash. Very useful document.

      Author's profile photo Former Member
      Former Member

      Hello everyone.

      I need your help, I am trying to add a new field at the head of the trip, exactly below the dates of the trip.

      Perform the steps in the document, add append to the spaoc_trv_header structure, add the field to the data model and implement the badi.

      In the webide add the extension project TRV_TE_CREE. By extending the S4_belowReportDetailDatesCustom.fragment.xml view, add the input field.

      When saving the trip the value of the input field is not displayed in the method IF_PAOC_MY_TRAVEL_EXPENSES ~ TRAVELANDEXPENSE_GET_ENTITY.

      I do not know what would be wrong.

      I would appreciate the help.

      Author's profile photo Karlyn Mongeau
      Karlyn Mongeau

      Hello,

       

      I have the same problem. Do find a solution?

      Thanks.

       

      Author's profile photo NOC Monitoring
      NOC Monitoring

      Hi Prakash Saurav,

      i followed this blog to extend my travel request V2 oData service SEGW some of the strings are missing from the annotation.

      Please refer below mentioned my blog for more info about the error.

      After Extending Standard Odata Service strings are missing in Annotation meta data

      https://answers.sap.com/questions/13667709/after-extending-standard-odata-service-strings-are.html

       

      Please help us to sort this issue.