READ_DATA_FOR_STRATEGY SAP Method Read Strategy Cycles
Below is documentation, parameters and attributes of ABAP Method READ_DATA_FOR_STRATEGY within SAP class MPLAN_CYCLE_DB_ACCESS. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name MPLAN_CYCLE_DB_ACCESS 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 READ_DATA_FOR_STRATEGY can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method READ_DATA_FOR_STRATEGY
.| Name | Type | Data Type | Description | Default Value |
| CALL_OBJECT | Importing | TYPE CALL_TYPE | Call Object for Maintenance Plan | |
| ITEMS | Importing | TYPE MPLAN_MPOS_T | Maintenance Plan Items | |
| MULTICOUNTERPLAN | Importing | TYPE BOOLEAN | X=Multiple Counter Plan | |
| STRATEGY | Importing | TYPE STRAT | Maintenance Strategy | |
| WARPL | Importing | TYPE WARPL | ||
| KEY_DATE | Importing | TYPE SY-DATUM | Date on which the task list are read by startegy plans | |
| CYCLES | Exporting | TYPE MPLAN_MMPT_T | Maintenance Plan Cycle Definitions | |
| STRATEGY_DATA | Exporting | TYPE T351 | Maintenance Strategy |
Exceptions of Method READ_DATA_FOR_STRATEGY
CX_MPLAN_EXCEPTION_ROOT - General Exception Maintenance Plan APIExample ABAP coding
This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.DATA: lo_class TYPE REF TO MPLAN_CYCLE_DB_ACCESS.
DATA: lv_CALL_OBJECT TYPE CALL_TYPE,
lv_CYCLES TYPE MPLAN_MMPT_T,
lv_ITEMS TYPE MPLAN_MPOS_T,
lv_MULTICOUNTERPLAN TYPE BOOLEAN,
lv_STRATEGY TYPE STRAT,
lv_STRATEGY_DATA TYPE T351,
lv_WARPL TYPE WARPL,
lv_KEY_DATE TYPE SY-DATUM,
lv_other TYPE c.
CALL METHOD lo_class=>READ_DATA_FOR_STRATEGY(
EXPORTING
CALL_OBJECT = lv_CALL_OBJECT
ITEMS = lv_ITEMS
MULTICOUNTERPLAN = lv_MULTICOUNTERPLAN
STRATEGY = lv_STRATEGY
WARPL = lv_WARPL
KEY_DATE = lv_KEY_DATE
IMPORTING
CYCLES = lv_CYCLES
STRATEGY_DATA = lv_STRATEGY_DATA ).
Links to Related Class(s)
MPLAN_CY...Full list of available SAP object classes
Search for further information about these or an SAP related objects