Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Generate a structure from JSON

raffinkira
Participant
0 Likes
1,825

Hi all,

Is it possible that generating a SE11 structure based on a given JSON if I don't want to define the structure field one by one. In Java, I can use file writer class to generate a class file, I am not sure if ABAP can do the same thing.

5 REPLIES 5
Read only

SimoneMilesi
Active Contributor
1,576

If i understood correctly, raffinkira wants to create and not to fill a dictionary table/structure .

But i'm not so sure if it's to create or to fill the table

Read only

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
1,576

/UI2/CL_JSON can create dynamic structure (local, not DDIC).

-- Tomas --
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,576

Why a SE11 structure? Don't you just want to parse the JSON dynamically (sXML)?

Read only

DoanManhQuynh
Active Contributor
1,576

you can generate structure dynamically, look into function group: SDIF.

Read only

0 Likes
1,117

Hi Sandra,

sometimes you have to SEND in JSON. Means:  First fill an internal Structure in ABAP Code.
The internal strukture refers to SE11.

That is what raffinkira wants.
Regards
Mario