SET_END_DATE_SCHEDULING SAP Method Determine End Date for Scheduling
Below is documentation, parameters and attributes of ABAP Method SET_END_DATE_SCHEDULING within SAP class MPLAN_SCHEDULE. 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_SCHEDULE 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 SET_END_DATE_SCHEDULING can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method SET_END_DATE_SCHEDULING
.| Name | Type | Data Type | Description | Default Value |
| P_CONTRACT_RELATED | Importing | TYPE T399W-MPCONTRACT | Maintenance Plan Created with Ref. to Outline Agreement | |
| P_MPLA | Importing | TYPE MPLA | Maintenance Plan | |
| P_MPOS | Importing | TYPE WC_WMPOS | ||
| P_UNIT | Importing | TYPE MSEHI | Unit of Meas. | |
| P_END_DATE | Changing | TYPE SY-DATUM | Current Date of Application Server | |
| P_END_DATE_CONTRACT | Changing | TYPE SY-DATUM | Current Date of Application Server |
Exceptions of Method SET_END_DATE_SCHEDULING
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_SCHEDULE.
DATA: lv_P_CONTRACT_RELATED TYPE T399W-MPCONTRACT,
lv_P_END_DATE TYPE SY-DATUM,
lv_P_END_DATE_CONTRACT TYPE SY-DATUM,
lv_P_MPLA TYPE MPLA,
lv_P_MPOS TYPE WC_WMPOS,
lv_P_UNIT TYPE MSEHI,
lv_other TYPE c.
CALL METHOD lo_class=>SET_END_DATE_SCHEDULING(
EXPORTING
P_CONTRACT_RELATED = lv_P_CONTRACT_RELATED
P_MPLA = lv_P_MPLA
P_MPOS = lv_P_MPOS
P_UNIT = lv_P_UNIT
CHANGING
P_END_DATE = lv_P_END_DATE
P_END_DATE_CONTRACT = lv_P_END_DATE_CONTRACT ).
Links to Related Class(s)
MPLAN_SC...Full list of available SAP object classes
Search for further information about these or an SAP related objects