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 directly

The 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

.

NameTypeData TypeDescriptionDefault Value
I_QUAL_TAGImportingTYPE
STRING
Qualifier Tag
I_QUAL_VALUEImportingTYPE
STRING
Qualifier Value
I_SEGMENT_TAGImportingTYPE
STRING
Start Tag
I_XML_DATAImportingTYPE
STRING
XML Data
E_XML_SEGMENTExportingTYPE
STRING
XML Segment Being Searched For



Exceptions of Method GET_XML_SEGMENT

E_XML_SEGMENTExportingTYPE
STRINGXML Segment Being Searched ForNO_DATA_FOUND - XML Segment Not Found

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!