GET_XML_SEGMENT SAP Method Reading a segment from the XML string
Below is documentation, parameters and attributes of ABAP Method GET_XML_SEGMENT within SAP class EDX. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name EDX into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Static
This is a Static Method so you can call it directlyThe following technical details of method GET_XML_SEGMENT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_XML_SEGMENT
.| Name | Type | Data Type | Description | Default Value |
| I_QUAL_TAG | Importing | TYPE STRING | Qualifier Tag | |
| I_QUAL_VALUE | Importing | TYPE STRING | Qualifier Value | |
| I_SEGMENT_TAG | Importing | TYPE STRING | Start Tag | |
| I_XML_DATA | Importing | TYPE STRING | XML Data | |
| E_XML_SEGMENT | Exporting | TYPE STRING | XML Segment Being Searched For |
Exceptions of Method GET_XML_SEGMENT
STRING
Example ABAP coding
DATA: lv_E_XML_SEGMENT TYPE STRING,
lv_I_QUAL_TAG TYPE STRING,
lv_I_QUAL_VALUE TYPE STRING,
lv_I_SEGMENT_TAG TYPE STRING,
lv_I_XML_DATA TYPE STRING,
lv_other TYPE c.
CALL METHOD EDX=>GET_XML_SEGMENT(
EXPORTING
I_QUAL_TAG = lv_I_QUAL_TAG
I_QUAL_VALUE = lv_I_QUAL_VALUE
I_SEGMENT_TAG = lv_I_SEGMENT_TAG
I_XML_DATA = lv_I_XML_DATA
IMPORTING
E_XML_SEGMENT = lv_E_XML_SEGMENT ).
Links to Related Class(s)
EDX...Full list of available SAP object classes
Search for further information about these or an SAP related objects