cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CAP Java: how to pass an array of objects to a CDS function?

former_member708468
Participant
2,701

Dear SAP community,

I am trying to build a function like the one below in CDS:

function getDocuments(objectNumbers: array of String) returns array of Documents;
"Documents" here represents a CDS entity.

Question: how should I pass the array of objects as parameter in the HTTP request? Array of Strings for example.

After some time trying I could not figure it out, seems like complex datatypes are not supported as input parameters.

Kind regards,

Vsevolod

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

Hi m4dbr3w,

I have the same issue. Did you get any solution for this?

Regards,

Siddhant

christoffer_fuss
Participant

I got the info from SAP that this is currently not supported.... 😞
As a workaround they suggest using a string with a separator....

Best regards,
Chris