SAP PLORD_CAPACITY_OVERVIEW Function Module for NOTRANSL: Ressourcenabgleich in der MPS-Planung
PLORD_CAPACITY_OVERVIEW is a standard plord capacity overview 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: Ressourcenabgleich in der MPS-Planung 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 plord capacity overview FM, simply by entering the name PLORD_CAPACITY_OVERVIEW into the relevant SAP transaction such as SE37 or SE38.
Function Group: M61D
Program Name: SAPLM61D
Main Program: SAPLM61D
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PLORD_CAPACITY_OVERVIEW 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 'PLORD_CAPACITY_OVERVIEW'"NOTRANSL: Ressourcenabgleich in der MPS-Planung.
EXPORTING
IMT61D = "Material Master: MRP
* PERIODE = ' ' "ABAP System Field: Current Date of Application Server
PROFILE_ID = "Overall profile for capacity leveling
SCHED_TYPE = "Scheduling level
* MRPPP = ' ' "PPC planning calendar
IPLAF = "Planned Order
* DISPLAY_ONLY = ' ' "
* IPLSC = ' ' "Planning scenarios in long-term planning
* ARBID = ' ' "Object ID of the resource
* KAPID = ' ' "Capacity ID
IMPORTING
EPLAF = "Planned Order
GRAPH_CAPA_FLAG = "
EXCEPTIONS
NO_PLANNED_ORDER = 1 NO_PROFILE = 2 NO_SCHED_TYPE = 3 WRONG_SCHED_TYPE = 4 PROGRAM_ERROR = 5
IMPORTING Parameters details for PLORD_CAPACITY_OVERVIEW
IMT61D - Material Master: MRP
Data type: MT61DOptional: No
Call by Reference: No ( called with pass by value option)
PERIODE - ABAP System Field: Current Date of Application Server
Data type: SY-DATUMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PROFILE_ID - Overall profile for capacity leveling
Data type: TCY30-PROFILE_IDOptional: No
Call by Reference: No ( called with pass by value option)
SCHED_TYPE - Scheduling level
Data type: RF61D-STYPEOptional: No
Call by Reference: No ( called with pass by value option)
MRPPP - PPC planning calendar
Data type: MDST-MRPPPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IPLAF - Planned Order
Data type: PLAFOptional: No
Call by Reference: No ( called with pass by value option)
DISPLAY_ONLY -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IPLSC - Planning scenarios in long-term planning
Data type: PLSCDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ARBID - Object ID of the resource
Data type: CRHD-OBJIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KAPID - Capacity ID
Data type: KAKO-KAPIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PLORD_CAPACITY_OVERVIEW
EPLAF - Planned Order
Data type: PLAFOptional: No
Call by Reference: No ( called with pass by value option)
GRAPH_CAPA_FLAG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_PLANNED_ORDER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PROFILE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_SCHED_TYPE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_SCHED_TYPE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROGRAM_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PLORD_CAPACITY_OVERVIEW 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_eplaf | TYPE PLAF, " | |||
| lv_imt61d | TYPE MT61D, " | |||
| lv_no_planned_order | TYPE MT61D, " | |||
| lv_periode | TYPE SY-DATUM, " SPACE | |||
| lv_no_profile | TYPE SY, " | |||
| lv_profile_id | TYPE TCY30-PROFILE_ID, " | |||
| lv_graph_capa_flag | TYPE TCY30, " | |||
| lv_sched_type | TYPE RF61D-STYPE, " | |||
| lv_no_sched_type | TYPE RF61D, " | |||
| lv_mrppp | TYPE MDST-MRPPP, " SPACE | |||
| lv_wrong_sched_type | TYPE MDST, " | |||
| lv_iplaf | TYPE PLAF, " | |||
| lv_program_error | TYPE PLAF, " | |||
| lv_display_only | TYPE PLAF, " SPACE | |||
| lv_iplsc | TYPE PLSC, " SPACE | |||
| lv_arbid | TYPE CRHD-OBJID, " SPACE | |||
| lv_kapid | TYPE KAKO-KAPID. " SPACE |
|   CALL FUNCTION 'PLORD_CAPACITY_OVERVIEW' "NOTRANSL: Ressourcenabgleich in der MPS-Planung |
| EXPORTING | ||
| IMT61D | = lv_imt61d | |
| PERIODE | = lv_periode | |
| PROFILE_ID | = lv_profile_id | |
| SCHED_TYPE | = lv_sched_type | |
| MRPPP | = lv_mrppp | |
| IPLAF | = lv_iplaf | |
| DISPLAY_ONLY | = lv_display_only | |
| IPLSC | = lv_iplsc | |
| ARBID | = lv_arbid | |
| KAPID | = lv_kapid | |
| IMPORTING | ||
| EPLAF | = lv_eplaf | |
| GRAPH_CAPA_FLAG | = lv_graph_capa_flag | |
| EXCEPTIONS | ||
| NO_PLANNED_ORDER = 1 | ||
| NO_PROFILE = 2 | ||
| NO_SCHED_TYPE = 3 | ||
| WRONG_SCHED_TYPE = 4 | ||
| PROGRAM_ERROR = 5 | ||
| . " PLORD_CAPACITY_OVERVIEW | ||
ABAP code using 7.40 inline data declarations to call FM PLORD_CAPACITY_OVERVIEW
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 DATUM FROM SY INTO @DATA(ld_periode). | ||||
| DATA(ld_periode) | = ' '. | |||
| "SELECT single PROFILE_ID FROM TCY30 INTO @DATA(ld_profile_id). | ||||
| "SELECT single STYPE FROM RF61D INTO @DATA(ld_sched_type). | ||||
| "SELECT single MRPPP FROM MDST INTO @DATA(ld_mrppp). | ||||
| DATA(ld_mrppp) | = ' '. | |||
| DATA(ld_display_only) | = ' '. | |||
| DATA(ld_iplsc) | = ' '. | |||
| "SELECT single OBJID FROM CRHD INTO @DATA(ld_arbid). | ||||
| DATA(ld_arbid) | = ' '. | |||
| "SELECT single KAPID FROM KAKO INTO @DATA(ld_kapid). | ||||
| DATA(ld_kapid) | = ' '. | |||
Search for further information about these or an SAP related objects