SAP MAINTENANCE_PLAN_SELECTION Function Module for NOTRANSL: Selektion von Wartungplänen
MAINTENANCE_PLAN_SELECTION is a standard maintenance plan selection SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Selektion von Wartungplänen processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for maintenance plan selection FM, simply by entering the name MAINTENANCE_PLAN_SELECTION into the relevant SAP transaction such as SE37 or SE38.
Function Group: IPML
Program Name: SAPLIPML
Main Program: SAPLIPML
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MAINTENANCE_PLAN_SELECTION pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'MAINTENANCE_PLAN_SELECTION'"NOTRANSL: Selektion von Wartungplänen.
IMPORTING
I_COUNT_MPLAN = "ABAP System Field: Row Index of Internal Tables
NO_SELECTION_GIVEN = "
TABLES
I_WARPL = "Maintenance Plan
I_MPTYP = "Maintenance Plan Category
I_STRAT = "Maintenance Strategy
I_EQUNR = "Equipment Number
I_TPLNR = "Functional location number
I_KDAUF = "Sales Order
I_KDPOS = "Sales Order Item
I_SELC = "Selection Table
I_PROT = "Log Table
EXPORTING Parameters details for MAINTENANCE_PLAN_SELECTION
I_COUNT_MPLAN - ABAP System Field: Row Index of Internal Tables
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
NO_SELECTION_GIVEN -
Data type: IPML_CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MAINTENANCE_PLAN_SELECTION
I_WARPL - Maintenance Plan
Data type: IPML_RWARPLOptional: No
Call by Reference: No ( called with pass by value option)
I_MPTYP - Maintenance Plan Category
Data type: IPML_RMPTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_STRAT - Maintenance Strategy
Data type: IPML_RSTRATOptional: No
Call by Reference: No ( called with pass by value option)
I_EQUNR - Equipment Number
Data type: IPML_REQUNROptional: No
Call by Reference: No ( called with pass by value option)
I_TPLNR - Functional location number
Data type: IPML_RTPLNROptional: No
Call by Reference: No ( called with pass by value option)
I_KDAUF - Sales Order
Data type: IPML_RKDAUFOptional: No
Call by Reference: No ( called with pass by value option)
I_KDPOS - Sales Order Item
Data type: IPML_RKDPOSOptional: No
Call by Reference: No ( called with pass by value option)
I_SELC - Selection Table
Data type: IPML_SELCOptional: No
Call by Reference: No ( called with pass by value option)
I_PROT - Log Table
Data type: SPROT_UOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MAINTENANCE_PLAN_SELECTION Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_i_warpl | TYPE STANDARD TABLE OF IPML_RWARPL, " | |||
| lv_i_count_mplan | TYPE SY-TABIX, " | |||
| lt_i_mptyp | TYPE STANDARD TABLE OF IPML_RMPTYP, " | |||
| lv_no_selection_given | TYPE IPML_CHAR1, " | |||
| lt_i_strat | TYPE STANDARD TABLE OF IPML_RSTRAT, " | |||
| lt_i_equnr | TYPE STANDARD TABLE OF IPML_REQUNR, " | |||
| lt_i_tplnr | TYPE STANDARD TABLE OF IPML_RTPLNR, " | |||
| lt_i_kdauf | TYPE STANDARD TABLE OF IPML_RKDAUF, " | |||
| lt_i_kdpos | TYPE STANDARD TABLE OF IPML_RKDPOS, " | |||
| lt_i_selc | TYPE STANDARD TABLE OF IPML_SELC, " | |||
| lt_i_prot | TYPE STANDARD TABLE OF SPROT_U. " |
|   CALL FUNCTION 'MAINTENANCE_PLAN_SELECTION' "NOTRANSL: Selektion von Wartungplänen |
| IMPORTING | ||
| I_COUNT_MPLAN | = lv_i_count_mplan | |
| NO_SELECTION_GIVEN | = lv_no_selection_given | |
| TABLES | ||
| I_WARPL | = lt_i_warpl | |
| I_MPTYP | = lt_i_mptyp | |
| I_STRAT | = lt_i_strat | |
| I_EQUNR | = lt_i_equnr | |
| I_TPLNR | = lt_i_tplnr | |
| I_KDAUF | = lt_i_kdauf | |
| I_KDPOS | = lt_i_kdpos | |
| I_SELC | = lt_i_selc | |
| I_PROT | = lt_i_prot | |
| . " MAINTENANCE_PLAN_SELECTION | ||
ABAP code using 7.40 inline data declarations to call FM MAINTENANCE_PLAN_SELECTION
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single TABIX FROM SY INTO @DATA(ld_i_count_mplan). | ||||
Search for further information about these or an SAP related objects