2015 Aug 24 1:44 PM
Hello guys,
i want to map a JSON string to a ABAP structure. Because it´s a relative simple 1 : 1 mappnig I dont want to create a simple transformation.
Only problem is that the JSON is generated externally an the attribute key is camel case :
{"custRef" : "123", "projRef" : "Project"}
When i map with
CALL TRANSFORMATION id
SOURCE XML lv_json_string
RESULT custref = lv_custref.
Then there is no result. If i change the JSON keys to uppercase the mapping is OK.
Some ideas how to get an case insensitive mapping without own ST?
Bye Richard
2015 Aug 25 7:56 AM
Found a solution in DEMO Report from SAP.
SE38 DEMO_JSON_NAMES_TO_UPPER
Hello guys,
i want to map a JSON string to a ABAP structure. Because it´s a relative simple 1 : 1 mappnig I dont want to create a simple transformation.
Only problem is that the JSON is generated externally an the attribute key is camel case :
{"custRef" : "123", "projRef" : "Project"}
When i map with
CALL TRANSFORMATION id
SOURCE XML lv_json_string
RESULT custref = lv_custref.
Then there is no result. If i change the JSON keys to uppercase the mapping is OK.
Some ideas how to get an case insensitive mapping without own ST?
Bye Richard
2015 Aug 25 7:56 AM
Found a solution in DEMO Report from SAP.
SE38 DEMO_JSON_NAMES_TO_UPPER