Skip to Content
0

How to expose .XSJS as a service like in .XSOData

Dec 08, 2016 at 08:22 AM

170

avatar image

Hello Experts,

How to get the metadata in .xsjs service

Ex : I have one "insert.xsjs" service which inserts data into DB . But here the question is how can i get the metadata of the table in which am inserting the value , like we do in .XSOData ($metadata).

Or is it possible to consume the .XSJS in .XSOData .

Regards,

Aisurya

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

1 Answer

Florian Pfeffer
Dec 08, 2016 at 08:57 AM
0

XSJS services do not expose meta-data information like it is done by an XSOData service. If you wanna see the e.g. column information for the table you are inserting data you can get it from system view TABLE_COLUMNS (you can expose that information also via an XSJS or XSOData service if it is necessary for you).

Regarding the question if XSJS coding can be used in XSOData: XSJS coding can be used in XSOData Custom Exits.

Regards,
Florian

Share
10 |10000 characters needed characters left characters exceeded