CREATE_FROM_SESSION SAP Method Create Task List Run from different Task List Run









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

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


Parameters of Method CREATE_FROM_SESSION

.

NameTypeData TypeDescriptionDefault Value
IR_SESSIONImportingTYPE REF TO
CL_STCTM_SESSION
TC Task List Run
IS_CALLER_INFOImportingTYPE
STC_EXT_CALLER_INFO
External Caller Information
I_SESSION_IDImportingTYPE
STC_SESSION_ID
TC Task List Run
ER_MESSAGESExportingTYPE REF TO
CL_STCTM_MESSAGES
Task Manager Messages
ER_SESSIONExportingTYPE REF TO
CL_STCTM_SESSION
TC Task List Run
RR_SESSIONReturningTYPE REF TO
CL_STCTM_SESSION
TC Task List Run



Exceptions of Method CREATE_FROM_SESSION

NOT_EXISTS - Task List Run don't exists

Example ABAP coding


DATA: lv_IR_SESSION TYPE CL_STCTM_SESSION,
lv_IS_CALLER_INFO TYPE STC_EXT_CALLER_INFO,
lv_I_SESSION_ID TYPE STC_SESSION_ID,
lv_RR_SESSION TYPE CL_STCTM_SESSION,
lv_ER_MESSAGES TYPE CL_STCTM_MESSAGES,
lv_ER_SESSION TYPE CL_STCTM_SESSION,
lv_other TYPE c.

CALL METHOD CL_STCTM_SESSION=>CREATE_FROM_SESSION(
EXPORTING
IR_SESSION = lv_IR_SESSION
IS_CALLER_INFO = lv_IS_CALLER_INFO
I_SESSION_ID = lv_I_SESSION_ID
IMPORTING
ER_MESSAGES = lv_ER_MESSAGES
ER_SESSION = lv_ER_SESSION
RECEIVING
RR_SESSION = lv_RR_SESSION )



"Alternate coding for Method Call with returning parameter
lv_RR_SESSION = CL_STCTM_SESSION=>CREATE_FROM_SESSION(
EXPORTING
IR_SESSION = lv_IR_SESSION
IS_CALLER_INFO = lv_IS_CALLER_INFO
I_SESSION_ID = lv_I_SESSION_ID
IMPORTING
ER_MESSAGES = lv_ER_MESSAGES
ER_SESSION = lv_ER_SESSION ).

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!