/scripts/ahub.form.attachments.js
0

JSON TO ABAP using a generic type

Nov 03, 2016 at 08:32 PM

77

avatar image

Hi all,

A web-service provides the following JSON (Look at the Value which can have different types per object!):

[{ "Name": "Customerfield", "Value": "A Company Inc."},
 { "Name": "Addresslist", "Value": ["Street1","Street2"]}]

I would like to parse this JSON-Array to ABAP using call transformation id ...

However the call transformation dumps cause my corresponding ABAP-Type for the Value-field doesn't match. I have tried string and string_table, but it doesn't work. Do you have any idea which ABAP-type for the value-field could work? Is it possible at all using call transformation id?

Thanks and regards

Oliver

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

0 Answers

Skip to Content