1
头图

As mentioned in the introductory article SAP OData Development Tutorial - From Getting Started to Upgrading (including SEGW, RAP and CDP) , SAP OData service development, technically speaking, can be divided into three categories. Therefore, this tutorial is also divided into three parts, which will be introduced separately. This article is the article directory for this tutorial.

About the Author

Jerry Wang, joined the SAP Chengdu Research Institute after graduating from the University of Electronic Science and Technology of China with a master's degree in computer science in 2007. Jerry is a SAP Community Mentor and a SAP China Technology Ambassador. In his 15-year career in SAP standard product development, Jerry has participated in the research and development of standard products such as SAP Business ByDesign, SAP CRM, SAP Cloud for Customer, SAP S/4HANA, and SAP Commerce Cloud (e-commerce cloud).

Jerry has in-depth research on the development, testing, publishing, deployment, testing of SAP OData services, as well as the behind-the-scenes technical implementation details and usage scenarios of OData services based on various SAP technologies.

Development tutorial based on SEGW - Gateway Service Builder

Develop OData services using the Restful ABAP Programming model (RAP for short)

  • Currently writing, stay tuned

Develop OData services using the SAP Cloud Application Programming programming model

  • Currently writing, stay tuned
    XML format is a data format that is often used in SAP actual project integration, such as SAP ABAP OData service, which supports both XML and JSON data formats.

The following figure is the metadata in XML format returned by the OData service developed in the author's SAP ABAP OData practical development tutorial :

In this step, we will learn how to parse data in XML format using the ABAP programming language.

Create a new text file locally, paste the following content into it, and save:

 <?xml version="1.0"?>
<order number="4711"><head><status>confirmed</status>
<date format="mm-dd-yyyy">07-19-2012</date>
</head>
<body><item units="2" price="17.00">Part No. 0110</item><item units="1" price="10.50">Part No. 1609</item><item units="5" price="12.30">Part No. 1710</item></body>
</order>

We will introduce how to write an ABAP program to parse the above XML content. Results as shown below.

The specific explanation is here .


注销
1k 声望1.6k 粉丝

invalid