SAP COM_PARTNER_GET_PFT_OBJ_RULES Function Module for Liefert die Regeln für Funktionstypen in BOR-Objekten
COM_PARTNER_GET_PFT_OBJ_RULES is a standard com partner get pft obj rules SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Liefert die Regeln für Funktionstypen in BOR-Objekten 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 com partner get pft obj rules FM, simply by entering the name COM_PARTNER_GET_PFT_OBJ_RULES into the relevant SAP transaction such as SE37 or SE38.
Function Group: COM_PARTNER_CB
Program Name: SAPLCOM_PARTNER_CB
Main Program: SAPLCOM_PARTNER_CB
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function COM_PARTNER_GET_PFT_OBJ_RULES 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 'COM_PARTNER_GET_PFT_OBJ_RULES'"Liefert die Regeln für Funktionstypen in BOR-Objekten.
EXPORTING
* IV_DETERM_PROC = "Identification of a Partner Determination Procedure
* IT_OBJECTS = "Table of Users (as a BOR Object)
IMPORTING
ET_PFT_RULES = "Table of BOR Object Partner Function Rules
ET_OBJECTS = "Object types supported by partner determination
ET_MESSAGES = "Meldungen zur Konsistenz der Regeln
EXCEPTIONS
NO_RULES_DEFINED = 1 PARAMETER_ERROR = 2
IMPORTING Parameters details for COM_PARTNER_GET_PFT_OBJ_RULES
IV_DETERM_PROC - Identification of a Partner Determination Procedure
Data type: COMT_PARTNER_DETERM_PROCOptional: Yes
Call by Reference: Yes
IT_OBJECTS - Table of Users (as a BOR Object)
Data type: COMT_PARTNER_SWO_OBJTYP_TABOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for COM_PARTNER_GET_PFT_OBJ_RULES
ET_PFT_RULES - Table of BOR Object Partner Function Rules
Data type: COMT_PARTNER_PFR_TABOptional: No
Call by Reference: Yes
ET_OBJECTS - Object types supported by partner determination
Data type: COMT_PARTNER_SWO_OBJECTS_TABOptional: No
Call by Reference: Yes
ET_MESSAGES - Meldungen zur Konsistenz der Regeln
Data type: COMT_PARTNER_MSG_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_RULES_DEFINED -
Data type:Optional: No
Call by Reference: Yes
PARAMETER_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for COM_PARTNER_GET_PFT_OBJ_RULES 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_et_pft_rules | TYPE COMT_PARTNER_PFR_TAB, " | |||
| lv_iv_determ_proc | TYPE COMT_PARTNER_DETERM_PROC, " | |||
| lv_no_rules_defined | TYPE COMT_PARTNER_DETERM_PROC, " | |||
| lv_et_objects | TYPE COMT_PARTNER_SWO_OBJECTS_TAB, " | |||
| lv_it_objects | TYPE COMT_PARTNER_SWO_OBJTYP_TAB, " | |||
| lv_parameter_error | TYPE COMT_PARTNER_SWO_OBJTYP_TAB, " | |||
| lv_et_messages | TYPE COMT_PARTNER_MSG_TAB. " |
|   CALL FUNCTION 'COM_PARTNER_GET_PFT_OBJ_RULES' "Liefert die Regeln für Funktionstypen in BOR-Objekten |
| EXPORTING | ||
| IV_DETERM_PROC | = lv_iv_determ_proc | |
| IT_OBJECTS | = lv_it_objects | |
| IMPORTING | ||
| ET_PFT_RULES | = lv_et_pft_rules | |
| ET_OBJECTS | = lv_et_objects | |
| ET_MESSAGES | = lv_et_messages | |
| EXCEPTIONS | ||
| NO_RULES_DEFINED = 1 | ||
| PARAMETER_ERROR = 2 | ||
| . " COM_PARTNER_GET_PFT_OBJ_RULES | ||
ABAP code using 7.40 inline data declarations to call FM COM_PARTNER_GET_PFT_OBJ_RULES
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