当前位置:网站首页>The SAP ABAP JSON format data processing
The SAP ABAP JSON format data processing
2022-08-11 00:33:00 【Please enter the nickname of puffed buns】
SAP ABAP JSON format data processing
Article table of contents
JSON to Workspace or Internal Table
When converting data in JSON format into workspace or internal table, you need to pay attention to whether the JSON data itself contains a single piece of data or multiple pieces of data
Single data{"key": "value"} can only be converted into a workspace
That is to say, only a workspace can be defined to receive the converted data
Multiple pieces of data[{"key1": "value1"}, {"key2": "value2"}] can only be converted into an internal table
In other words, only the internal table can be definedtable to receive the converted data
* JSON data converted to workspaceCALL METHOD /ui2/cl_json=>deserializeEXPORTINGjson = v_input_jsonpretty_name = /ui2/cl_json=>pretty_mode-camel_caseCHANGINGdata = wa_input_data.* Convert JSON data to internal tableCALL METHOD /ui2/cl_json=>deserializeEXPORTINGjson = v_input_jsonpretty_name = /ui2/cl_json=>pretty_mode-camel_caseCHANGINGdata = it_input_data.Workspace or internal table to JSON
It is much simpler to convert the workspace or internal table to JSON
Whether the incoming is an internal table or a workspace
CALL METHOD /ui2/cl_json=>serializeEXPORTINGdata = it_input_dataRECEIVINGr_json = v_output_json.边栏推荐
- sqlmap combined with dnslog fast injection
- 云原生-VMware虚拟机安装Kubesphere实战(一)
- 20张图,全面掌握MVCC原理!
- 什么是数组
- LeetCode_优先级队列_692.前K个高频单词
- Design and Realization of Employment Management System in Colleges and Universities
- I caught a 10-year-old Ali test developer, and after talking about it, I made a lot of money...
- [Excel知识技能] 将“假“日期转为“真“日期格式
- 5. Lombok
- sed of the Three Musketeers of Shell Programming
猜你喜欢
随机推荐
YOLOv5的Tricks | 【Trick11】在线模型训练可视化工具wandb(Weights & Biases)
Design and Realization of Employment Management System in Colleges and Universities
Mysql数据库安装配置详细教程
How to do patent mining, the key is to find patent points, in fact, it is not too difficult
Go项目配置管理神器之viper使用详解
【mysql】mysql分别按年/月/日/周分组统计数据
如何做专利挖掘,关键是寻找专利点,其实并不太难
In 22 years, the salary of programmers nationwide in January was released, only to know that there are so many with annual salary of more than 400,000?
【21天学习挑战赛】折半插入排序
How to easily obtain the citation format of references?
Where can I download IEEE papers?
Kunpeng compilation and debugging and basic knowledge of native development tools
SAP ABAP JSON 格式数据处理
I caught a 10-year-old Ali test developer, and after talking about it, I made a lot of money...
Lens filter---about day and night dual-pass filter
[Excel knowledge and skills] Convert "false" date to "true" date format
20张图,全面掌握MVCC原理!
Software protection scenario of NOR FLASH flash memory chip ID application
“蔚来杯“2022牛客暑期多校训练营2 DGHJKL题解
Which foreign language journals and conferences can be submitted for software engineering/system software/programming language?









