SAP /SAPAPO/PRES_OBJECTS_MARK Function Module for Selection Function for Product Planning Table
/SAPAPO/PRES_OBJECTS_MARK is a standard /sapapo/pres objects mark SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Selection Function for Product Planning Table 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 /sapapo/pres objects mark FM, simply by entering the name /SAPAPO/PRES_OBJECTS_MARK into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPAPO/CDPS_PRESENTATION
Program Name: /SAPAPO/SAPLCDPS_PRESENTATION
Main Program: /SAPAPO/SAPLCDPS_PRESENTATION
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SAPAPO/PRES_OBJECTS_MARK 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 '/SAPAPO/PRES_OBJECTS_MARK'"Selection Function for Product Planning Table.
EXPORTING
* I_ORDERS_TAB = "Tabelle mit Auftrags-GUID's
* I_RESOURCES_TAB = "Tabelle mit Ressourcen (keys)
* I_PEGIDS_TAB = "Tabelle von IDs zum Planungsbereich
* I_PCMIDS_TAB = "Tabelle mit GUIDs von Produktionskampagnen
* I_OPERS_TAB = "Tabelle mit Vorgangs UID
* I_CAPREQ_TAB = "Schlüssel für Kapazitätsbedarfe
* I_BLOCK_TAB = "Blöcke für Blockplanung (identifiziert durch interne ID)
IMPORTING Parameters details for /SAPAPO/PRES_OBJECTS_MARK
I_ORDERS_TAB - Tabelle mit Auftrags-GUID's
Data type: /SAPAPO/OM_ORDERID_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RESOURCES_TAB - Tabelle mit Ressourcen (keys)
Data type: /SAPAPO/RESID_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PEGIDS_TAB - Tabelle von IDs zum Planungsbereich
Data type: /SAPAPO/PEGID_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PCMIDS_TAB - Tabelle mit GUIDs von Produktionskampagnen
Data type: /SAPAPO/OM_PCMID_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OPERS_TAB - Tabelle mit Vorgangs UID
Data type: /SAPAPO/OPR_KEY_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CAPREQ_TAB - Schlüssel für Kapazitätsbedarfe
Data type: /SAPAPO/CDPS_CAPREQ_KEY_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BLOCK_TAB - Blöcke für Blockplanung (identifiziert durch interne ID)
Data type: /SAPAPO/MC01_BLOCKID_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for /SAPAPO/PRES_OBJECTS_MARK 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_i_orders_tab | TYPE /SAPAPO/OM_ORDERID_TAB, " | |||
| lv_i_resources_tab | TYPE /SAPAPO/RESID_TAB, " | |||
| lv_i_pegids_tab | TYPE /SAPAPO/PEGID_TAB, " | |||
| lv_i_pcmids_tab | TYPE /SAPAPO/OM_PCMID_TAB, " | |||
| lv_i_opers_tab | TYPE /SAPAPO/OPR_KEY_TAB, " | |||
| lv_i_capreq_tab | TYPE /SAPAPO/CDPS_CAPREQ_KEY_TAB, " | |||
| lv_i_block_tab | TYPE /SAPAPO/MC01_BLOCKID_TAB. " |
|   CALL FUNCTION '/SAPAPO/PRES_OBJECTS_MARK' "Selection Function for Product Planning Table |
| EXPORTING | ||
| I_ORDERS_TAB | = lv_i_orders_tab | |
| I_RESOURCES_TAB | = lv_i_resources_tab | |
| I_PEGIDS_TAB | = lv_i_pegids_tab | |
| I_PCMIDS_TAB | = lv_i_pcmids_tab | |
| I_OPERS_TAB | = lv_i_opers_tab | |
| I_CAPREQ_TAB | = lv_i_capreq_tab | |
| I_BLOCK_TAB | = lv_i_block_tab | |
| . " /SAPAPO/PRES_OBJECTS_MARK | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/PRES_OBJECTS_MARK
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.Search for further information about these or an SAP related objects