10-16-2020 7:14 AM
When I am Seriliazing ABAP DEEP Structure to JSON using code.
------------------------------------------------------------------------------------------------------------------------
-converting GT_MAIN into JSON
ls_json-value = /ui2/cl_json=>serialize( data =GT_MAIN compress = abap_false
pretty_name = /ui2/cl_json=>pretty_mode-camel_case ).
ls_json-key = 'Detail'.
APPEND ls_json TO et_json.
------------------------------------------------------------------------------------------------------------------
it is not converting all data in JSON.
So Please guide me on how to convert Deep structure to JSON.
My Deep Structure Format is
ZHN_FI_PV_ST is also encapsulated in Table Type.
the format is Table Type----> Structure ---- > Table type ----> Structure..
10-16-2020 7:54 AM
You say "it is not converting". What do you get and what do you expect? (please provide an example, table type/structure is not sufficient to understand) Or do you mean the issue is that the JSON doesn't contain "ZHN_FI_PV_DTL_TT":[{...}], or contains "ZHN_FI_PV_DTL_TT":[] (?), although the component is not empty?
10-16-2020 8:10 AM
Hello hafiz_naeem
There is plenty of SAP OSS notes for /UI2/CL_JSON class. Do you have them all implemented?
Kind regards,05-05-2021 3:08 PM
Hi hafiz_naeem
Have you found a way to resolve the problem. I'm facing a same problem please let me know the way if you resolved it.
Regards,
Saran
05-05-2021 9:32 PM
Thanks for coming to SAP Community for answers. Please post your question as a new question here:
https://answers.sap.com/questions/ask.htmlSince you're new in asking questions here, check out our tutorial about asking and answering questions (if you haven't already), as it provides tips for preparing questions more effectively, that draw responses from our members. Please note, that your post here won't be answered.