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

SAP Ariba APIs custom field question

fl4825386
Explorer
0 Kudos
771

I've been testing two specific APIs, and I had a question about the custom fields in each.

https://api.sap.com/api/retrieve_contract_workspaces/path/searchContractWorkspaces

https://api.sap.com/api/supplierdatapagination_v4/overview

The sample JSON response in the sandbox is very lacking but shows that a group/array of custom fields is returned in the response.

Is it the same list of custom fields in every vendor/contract? Meaning if Vendor1 has [CustomField1 -> Value1, CustomField2 -> Value2].

Will Vendor2 have the same custom fields (like [CustomField1 -> OtherValue, CustomField2 -> OtherValue])? Or does every Vendor have its own set of custom fields?

Assuming every Vendor has the same custom fields, is the order of the custom fields guaranteed to be the same per every Vendor in the response?

If a custom field is empty/null/no value for a specific vendor, will it still be in the response?

Is it a situation like below or something completely random?

Any help or sample response with more than one result would be greatly appreciated.

Accepted Solutions (0)

Answers (1)

Answers (1)

yoswisnu
Product and Topic Expert
Product and Topic Expert

Hi Erwin,
The custom field should apply to all vendors. (Same custom fields, different value).
I would suggest creating an application from ariba developer portal to your test realm and grab real data from there instead of using sandbox data.

This way, it is very similar to real life application, except its going to your test realm instead of production.