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

Schema problem with new Action in SAP Build

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos
999

I have 2 actions for my S/4HANA sales orders, both on the same tenant using the same destination.

The pre-existing action -- meaning before the new action interface in the lobby -- works when I test it.

But I get a schema mismatch issue with the one I just created now, using the same API and parameters.

For example, for TotalNetAmount it is expecting a number:

But in the API it is returned as string, and apparently cannot be converted.

In the old action, the schema for totalNetAmount is a string, and therefore works OK.

Why is that and what can I do?

Accepted Solutions (0)

Answers (2)

Answers (2)

Jana_dK
SAP Mentor
SAP Mentor

I'm actually experiencing the same with BAPI's. Some fields expect a number, but a string is given .. In this case it was the "ROW" in the return table that was causing a lot of problems in the generated type for the return table.

Karthik-Thiru
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Daniel,

While this issue is being checked by the development team, you can use the below workaround.

Delete the problem causing field eg TotalNetAmount of type number and add back a same named field with the right type of String.

Steps:

1. In Output tab, select the problematic field ( TotalNetAmount ) and click on Remove

2. Click on Add. Before adding back a new field, permanently delete TotalNetAmount from the Available fields list

3. Under Add, under new field add field TotalNetAmount of type String under the node of d/results

Regards,

Karthik

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Thanks ... if I have only 1 or 2 such fields, than OK, but I'm worried this will be true of every number field, and you know there are hundreds of potential fields.

Anyway, I will do the workaround for my limited number of fields, but I'll keep the question open -- please update when there is a response from dev.

sunny-work
Explorer
0 Kudos
Thank you Karthik for the workaround. I just want to follow-up if any progress has been made.