ON_CONTEXT_INIT SAP Method Inititialize Context on Project Creation and on Project Load









Below is documentation, parameters and attributes of ABAP Method ON_CONTEXT_INIT within SAP class IF_SIW_CONFIGURATION_SETUP_EXT. 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 IF_SIW_CONFIGURATION_SETUP_EXT into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method ON_CONTEXT_INIT can also be found below:

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


Parameters of Method ON_CONTEXT_INIT

.

NameTypeData TypeDescriptionDefault Value
I_CONTEXTImportingTYPE REF TO
IF_SIW_CONTEXT
Kontext für eine Serviceimplementierung
I_FLG_PROJECT_CREATIONImportingTYPE
XFELD
Checkbox
I_CONTEXTImportingTYPE REF TO
IF_SIW_CONTEXT
Kontext für eine Serviceimplementierung



Exceptions of Method ON_CONTEXT_INIT

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO IF_SIW_CONFIGURATION_SETUP_EXT.
DATA: lv_I_CONTEXT TYPE IF_SIW_CONTEXT,
lv_I_FLG_PROJECT_CREATION TYPE XFELD,
lv_I_CONTEXT TYPE IF_SIW_CONTEXT,
lv_other TYPE c.

CALL METHOD lo_class=>ON_CONTEXT_INIT(
EXPORTING
I_CONTEXT = lv_I_CONTEXT
I_FLG_PROJECT_CREATION = lv_I_FLG_PROJECT_CREATION
I_CONTEXT = lv_I_CONTEXT ).

Links to Related Class(s)

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