on 2015 Apr 14 9:40 AM
Hello,
we are trying to implement the 'Export to Excel' function on our SmartTable in our app and have been told that we need to make some changes to our OData Service to make this possible. I've performed the usual searches in SCN etc but have not found any reference document describing what one needs implement in the service.
Could there be a set of annotations that we need to add to the Model Class perhaps?
We would be grateful for any help/tips/links.
Kind regards,
Keith Sanderson
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandra,
thanks, but I'd already looked at your blog and was looking for an annotation.
I finally found a sentence in the Netweaver Gateway documentation which reads as follows:
The entity container in the $metadata document of all services has a new annotation listing the supported formats:
sap:supported-formats="atom json xlsx"
but this is only supported from Netweaver Gateway 7.40.
Kind regards,
Keith
I guess you are referring to Excel Support - SAP NetWeaver Gateway Foundation (SAP_GWFND) - SAP Library
I am not on Gateway 7.4 and hence cannot test it but this seems excellent!
Regards,
Chandra
Hi Ekansh,
I checked new features of SP09 What's New in SAP NetWeaver Gateway 2.0 SPS 09 - SAP NetWeaver Gateway - SAP Library but Excel support was not mentioned.
I am not sure from what SP level it is available. I posted comment on Andre Fischer blog and waiting for his reply.
Regards,
Chandra
Hi Chandra,
the feaure is only available on 7.40 not in all implementations of SAP Gateway on lower releases.
Excel Support - SAP NetWeaver Gateway Foundation (SAP_GWFND) - SAP Library
Best Regards,
Andre
Hi Andre,
As I understand correctly SCN Trial Edition of SAP Gateway is based on AS ABAP 7.40 but below query does not give any result.
https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZGWSAMPLE_SRV/ProductCollection?$format=xlsx
Is there any additional coding changes need to be done for OData service implementation to support excel format?
Regards,
Chandra
User | Count |
---|---|
68 | |
8 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.