Skip to Content
author's profile photo Former Member
Former Member

problem to convert Json schema to ABAP internal table

Dear Experts ,

my database table contains json data , now i have to convert that data into internal table . my tried number of methods but unfortunately i didn't get proper result.

json data is like

{

"userSession": {

"name": "X1234500",

"lastname": "",

"firstname": "",

"emailaddress": "",

"connRegistrationId": "738b584ebf8258c",

"userSystemId": "xxxxx"

},

"bfmData": [

{

"controlArea": "1000",

"rpaGroup": "US"

},

{

"controlArea": "1000",

"rpaGroup": "TS"

},

{

"controlArea": "1000",

"rpaGroup": "AS"

}

]

}

how do i convert that data into internal table .

please guide me.

Regards,

Venkatesh.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 29, 2016 at 09:14 AM

    Please indicate both the expected result, and what you tried.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 29, 2016 at 12:59 PM

    You need to create a structure

    1.

    s_struct {

    userSession type s_user_Session,

    bfmData type t_bfmData

    }

    2.

    s_usersession{

    name,

    lastname,

    firstname ,

    emailaddress,

    connRegistrationId,

    userSystemId

    }

    3. s_bfmData {

    controlArea,

    rpaGroup

    }

    You need to write a simple transformation to covert JSON into internal table ....

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.