Created
April 2, 2012 09:50
-
-
Save mydoghasworms/2282244 to your computer and use it in GitHub Desktop.
ABAP code to test JSON to ABAP subroutine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Code to test https://gist.github.com/2282070 | |
* Should result in COMP1 structure filled and an entry in COMP2 of LS_DEEP | |
data: ls_deep type veri_deep1. | |
json = | |
'{"COMP1": {"F1": "0123", F5: "ab cd\nef", F7: 20090802, "F8": 23123, "F11": 123.23}, ' | |
& 'COMP2: [{"F1": "0123", F5: "gh ij\nkl", F7: 20090802, "F8": 1000, "F11": 543.23}] }'. | |
perform json_to_data using json ls_deep. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment