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

.

NameTypeData TypeDescriptionDefault Value
CALL_OBJECTImportingTYPE
CALL_TYPE
Call Object for Maintenance Plan
ITEMSImportingTYPE
MPLAN_MPOS_T
Maintenance Plan Items
MULTICOUNTERPLANImportingTYPE
BOOLEAN
X=Multiple Counter Plan
STRATEGYImportingTYPE
STRAT
Maintenance Strategy
WARPLImportingTYPE
WARPL
KEY_DATEImportingTYPE
SY-DATUM
Date on which the task list are read by startegy plans
CYCLESExportingTYPE
MPLAN_MMPT_T
Maintenance Plan Cycle Definitions
STRATEGY_DATAExportingTYPE
T351
Maintenance Strategy



Exceptions of Method READ_DATA_FOR_STRATEGY

CX_MPLAN_EXCEPTION_ROOT - General Exception Maintenance Plan API

Example 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



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!