CREATE_FROM_XML SAP Method Create Task List Variant from XML









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

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


Parameters of Method CREATE_FROM_XML

.

NameTypeData TypeDescriptionDefault Value
I_CHECK_SCENARIO_IDImportingTYPE
STC_SCENARIO_ID
Task List
I_CHECK_TEMPLATE_IDImportingTYPE
STC_TEMPLATE_ID
Task List Variant
I_XMLImportingTYPE
XSTRING
ER_MESSAGESExportingTYPE REF TO
CL_STCTM_MESSAGES
Task Manager Messages
ER_TEMPLATEExportingTYPE REF TO
CL_STCTM_TEMPLATE
TC Task List Variant
RR_TEMPLATEReturningTYPE REF TO
CL_STCTM_TEMPLATE
TC Task List Variant



Exceptions of Method CREATE_FROM_XML

INVALID - Task List Run can't be created

Example ABAP coding


DATA: lv_I_CHECK_SCENARIO_ID TYPE STC_SCENARIO_ID,
lv_I_CHECK_TEMPLATE_ID TYPE STC_TEMPLATE_ID,
lv_I_XML TYPE XSTRING,
lv_RR_TEMPLATE TYPE CL_STCTM_TEMPLATE,
lv_ER_MESSAGES TYPE CL_STCTM_MESSAGES,
lv_ER_TEMPLATE TYPE CL_STCTM_TEMPLATE,
lv_other TYPE c.

CALL METHOD CL_STCTM_TEMPLATE=>CREATE_FROM_XML(
EXPORTING
I_CHECK_SCENARIO_ID = lv_I_CHECK_SCENARIO_ID
I_CHECK_TEMPLATE_ID = lv_I_CHECK_TEMPLATE_ID
I_XML = lv_I_XML
IMPORTING
ER_MESSAGES = lv_ER_MESSAGES
ER_TEMPLATE = lv_ER_TEMPLATE
RECEIVING
RR_TEMPLATE = lv_RR_TEMPLATE )



"Alternate coding for Method Call with returning parameter
lv_RR_TEMPLATE = CL_STCTM_TEMPLATE=>CREATE_FROM_XML(
EXPORTING
I_CHECK_SCENARIO_ID = lv_I_CHECK_SCENARIO_ID
I_CHECK_TEMPLATE_ID = lv_I_CHECK_TEMPLATE_ID
I_XML = lv_I_XML
IMPORTING
ER_MESSAGES = lv_ER_MESSAGES
ER_TEMPLATE = lv_ER_TEMPLATE ).

Links to Related Class(s)

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