SAP MPP_SPLIT_GET Function Module for NOTRANSL: Supplies a split
MPP_SPLIT_GET is a standard mpp split get 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: Supplies a split 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 mpp split get FM, simply by entering the name MPP_SPLIT_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: MP03
Program Name: SAPLMP03
Main Program: SAPLMP03
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MPP_SPLIT_GET 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 'MPP_SPLIT_GET'"NOTRANSL: Supplies a split.
EXPORTING
BEDID = "ID of the Capacity Requirements Record
BEDZL = "Internal counter
CANUM = "Counters for cap. rqmts. records (various caps. + indiv.caps
* PP_OBJTY = 'A' "Object types of the CIM resource
* PP_OBJID = "Object ID of the resource
* PERSON_OTYPE = 'P' "Object types of the CIM resource
* PERSON_OBJID = "Object ID of the resource
IMPORTING
SPLIT = "
EXCEPTIONS
PARAMETERS_NOT_VALID = 1
IMPORTING Parameters details for MPP_SPLIT_GET
BEDID - ID of the Capacity Requirements Record
Data type: KPER-BEDIDOptional: No
Call by Reference: No ( called with pass by value option)
BEDZL - Internal counter
Data type: KPER-BEDZLOptional: No
Call by Reference: No ( called with pass by value option)
CANUM - Counters for cap. rqmts. records (various caps. + indiv.caps
Data type: KPER-CANUMOptional: No
Call by Reference: No ( called with pass by value option)
PP_OBJTY - Object types of the CIM resource
Data type: CRHD-OBJTYDefault: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PP_OBJID - Object ID of the resource
Data type: CRHD-OBJIDOptional: Yes
Call by Reference: No ( called with pass by value option)
PERSON_OTYPE - Object types of the CIM resource
Data type: CRHD-OBJTYDefault: 'P'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PERSON_OBJID - Object ID of the resource
Data type: CRHD-OBJIDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MPP_SPLIT_GET
SPLIT -
Data type: MPDB_SPLITS_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PARAMETERS_NOT_VALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MPP_SPLIT_GET 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: | ||||
| lv_bedid | TYPE KPER-BEDID, " | |||
| lv_split | TYPE MPDB_SPLITS_TYPE, " | |||
| lv_parameters_not_valid | TYPE MPDB_SPLITS_TYPE, " | |||
| lv_bedzl | TYPE KPER-BEDZL, " | |||
| lv_canum | TYPE KPER-CANUM, " | |||
| lv_pp_objty | TYPE CRHD-OBJTY, " 'A' | |||
| lv_pp_objid | TYPE CRHD-OBJID, " | |||
| lv_person_otype | TYPE CRHD-OBJTY, " 'P' | |||
| lv_person_objid | TYPE CRHD-OBJID. " |
|   CALL FUNCTION 'MPP_SPLIT_GET' "NOTRANSL: Supplies a split |
| EXPORTING | ||
| BEDID | = lv_bedid | |
| BEDZL | = lv_bedzl | |
| CANUM | = lv_canum | |
| PP_OBJTY | = lv_pp_objty | |
| PP_OBJID | = lv_pp_objid | |
| PERSON_OTYPE | = lv_person_otype | |
| PERSON_OBJID | = lv_person_objid | |
| IMPORTING | ||
| SPLIT | = lv_split | |
| EXCEPTIONS | ||
| PARAMETERS_NOT_VALID = 1 | ||
| . " MPP_SPLIT_GET | ||
ABAP code using 7.40 inline data declarations to call FM MPP_SPLIT_GET
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 BEDID FROM KPER INTO @DATA(ld_bedid). | ||||
| "SELECT single BEDZL FROM KPER INTO @DATA(ld_bedzl). | ||||
| "SELECT single CANUM FROM KPER INTO @DATA(ld_canum). | ||||
| "SELECT single OBJTY FROM CRHD INTO @DATA(ld_pp_objty). | ||||
| DATA(ld_pp_objty) | = 'A'. | |||
| "SELECT single OBJID FROM CRHD INTO @DATA(ld_pp_objid). | ||||
| "SELECT single OBJTY FROM CRHD INTO @DATA(ld_person_otype). | ||||
| DATA(ld_person_otype) | = 'P'. | |||
| "SELECT single OBJID FROM CRHD INTO @DATA(ld_person_objid). | ||||
Search for further information about these or an SAP related objects