May 2019
Beginner to intermediate
548 pages
12h 39m
English
This example shows you how to read XML files using ST. If you did the serialization example, you are halfway done, at least from an ST perspective. ST works both ways, so it can be used both for serialization and deserialization. Copy the previous example into the ZMSA_R_CHAPTER6_04 report and delete everything you had in the main method.
First, we need to read a file. We will again use our local PC as a starting point. We will use the cl_gui_frontend_services and gui_upload methods. Put everything in the main method, as we did in every previous example:
CONSTANTS: lv_filepath TYPE string VALUE 'C:\temp\carr.xml'. DATA: lt_carr TYPE TABLE OF scarr.DATA: lt_filetable TYPE STANDARD TABLE OF string.DATA: lv_filecontent ...Read now
Unlock full access