Skip to Content
0

Smarttable Extension for Standard Fiori App

Jan 03 at 11:40 AM

95

avatar image

I am trying to extend the Manage Customer Line Items App on S4H 1511 implementation.

I have extended the oData and have registered the Extended Service. I have created a Extension Project for the Standard UI application and have deployed it back to my system. I have also registered the Extended App on my Fiori Launchpad.

The Metadata call for my extended service is also working fine.

In the extended App, when I try to run the App, there is a call first to the Metadata, with sap-documentation: heading,quickinfo & sap-value-list: none .

Post this call, there is a call to Metadata, with sap-value-list. The part of URL for the same is as follows -

sap/opu/odata/sap/ZFAR_CUSTOMER_LINE_ITEMS_SRV/$metadata?sap-value-list=ZFAR_CUSTOMER_LINE_ITEMS_SRV.Item/AccountingClerk

Here the Service - ZFAR_CUSTOMER_LINE_ITEMS_SRV, is the extended service. I my call to the Metadata, I can see the Annotations still available for FAR_CUSTOMER_LINE_ITEMS.Item/AccountingClerk, but my question is while extending a Standard Service for a App, with SmartTable, will I also have to create custom Annotations, with my Service.

I have also tried, the call with - sap/opu/odata/sap/ZFAR_CUSTOMER_LINE_ITEMS_SRV/$metadata?sap-value-list=FAR_CUSTOMER_LINE_ITEMS.Item/AccountingClerk, but even that call is not successful.

I have checked various blogs for Manage Customer Line Item Extensions, but none have been useful.

I have also tried to put code in my Z...MPC_EXT->DEFINE method, for auto generating the Annotations for the Custom service, but that leads to other errors like - 'Entity VL_FV_KOART already exists'

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jocelyn Dart
Jan 05 at 04:09 AM
0

Hi Rohit,

Ok so you don't access the annotations directly in the OData Service. The annotations are provided by calling the CATALOG_SERVICE

You'll find more info on this here:

https://help.sap.com/viewer/68bf513362174d54b58cddec28794093/7.5.9/en-US/7ca326519eff236ee10000000a445394.html

Rgds,

Jocelyn

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Jocelyn,

I am aware of the CATALOG_SERVICE, but my issue is very specific, after extending the Standard oData Service for Manage Customer Line Items, how do I get the Annotations for my custom service.

0