GET_XML_FROM_MODEL SAP Method Create XML from model









Below is documentation, parameters and attributes of ABAP Method GET_XML_FROM_MODEL within SAP class CL_CHTMLB_XML_PROVIDER. 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 CL_CHTMLB_XML_PROVIDER 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_FROM_MODEL can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method GET_XML_FROM_MODEL

.

NameTypeData TypeDescriptionDefault Value
IT_CONFIGImportingTYPE
BSP_DLC_COLUMN_DESCR_TAB
Table column definitions
IV_NAMEImportingTYPE
STRING
Structure name
IV_TABLE_MODELImportingTYPE REF TO
CL_BSP_WD_CONTEXT_NODE_TV
Context Node for Binding Against Table Views
IV_VIEW_CONTROLLERImportingTYPE REF TO
CL_BSP_WD_VIEW_CONTROLLER
BSP Page Context for Element Handler
IV_EXCEL_MODEImportingTYPE
BOOLE_D
Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
EV_XMLReturningTYPE
XSTRING
Data XML



Exceptions of Method GET_XML_FROM_MODEL

This method does not have any exceptions

Example ABAP coding


DATA: lv_EV_XML TYPE XSTRING,
lv_IT_CONFIG TYPE BSP_DLC_COLUMN_DESCR_TAB,
lv_IV_NAME TYPE STRING,
lv_IV_TABLE_MODEL TYPE CL_BSP_WD_CONTEXT_NODE_TV,
lv_IV_VIEW_CONTROLLER TYPE CL_BSP_WD_VIEW_CONTROLLER,
lv_IV_EXCEL_MODE TYPE BOOLE_D,
lv_other TYPE c.

CALL METHOD CL_CHTMLB_XML_PROVIDER=>GET_XML_FROM_MODEL(
EXPORTING
IT_CONFIG = lv_IT_CONFIG
IV_NAME = lv_IV_NAME
IV_TABLE_MODEL = lv_IV_TABLE_MODEL
IV_VIEW_CONTROLLER = lv_IV_VIEW_CONTROLLER
IV_EXCEL_MODE = lv_IV_EXCEL_MODE
RECEIVING
EV_XML = lv_EV_XML )



"Alternate coding for Method Call with returning parameter
lv_EV_XML = CL_CHTMLB_XML_PROVIDER=>GET_XML_FROM_MODEL(
EXPORTING
IT_CONFIG = lv_IT_CONFIG
IV_NAME = lv_IV_NAME
IV_TABLE_MODEL = lv_IV_TABLE_MODEL
IV_VIEW_CONTROLLER = lv_IV_VIEW_CONTROLLER
IV_EXCEL_MODE = lv_IV_EXCEL_MODE ).

Links to Related Class(s)

CL_CHTML...
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!