SAP BPAR_C_RELATION_CHECK Function Module for NOTRANSL: Prüfung des GP-GP-Beziehung
BPAR_C_RELATION_CHECK is a standard bpar c relation check 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: Prüfung des GP-GP-Beziehung 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 bpar c relation check FM, simply by entering the name BPAR_C_RELATION_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: BPC0
Program Name: SAPLBPC0
Main Program: SAPLBPC0
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BPAR_C_RELATION_CHECK 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 'BPAR_C_RELATION_CHECK'"NOTRANSL: Prüfung des GP-GP-Beziehung.
EXPORTING
RELATION = "BP-BP relationship
* ACTIVITY = ' ' "
EXCEPTIONS
PARTNER = 1 PARTNER_NOT_VALID = 2 RELAT = 3 REL_DAT = 4 REL_TYP_NOT_VALID = 5
IMPORTING Parameters details for BPAR_C_RELATION_CHECK
RELATION - BP-BP relationship
Data type: BP2000Optional: No
Call by Reference: No ( called with pass by value option)
ACTIVITY -
Data type: TP105-AKTYPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PARTNER - Identical partner
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARTNER_NOT_VALID - Partner category not defined for relationship
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RELAT - Relationship type not defined for relationship category
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
REL_DAT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
REL_TYP_NOT_VALID - Relationship category not defined for BP
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BPAR_C_RELATION_CHECK 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_partner | TYPE STRING, " | |||
| lv_relation | TYPE BP2000, " | |||
| lv_activity | TYPE TP105-AKTYP, " SPACE | |||
| lv_partner_not_valid | TYPE TP105, " | |||
| lv_relat | TYPE TP105, " | |||
| lv_rel_dat | TYPE TP105, " | |||
| lv_rel_typ_not_valid | TYPE TP105. " |
|   CALL FUNCTION 'BPAR_C_RELATION_CHECK' "NOTRANSL: Prüfung des GP-GP-Beziehung |
| EXPORTING | ||
| RELATION | = lv_relation | |
| ACTIVITY | = lv_activity | |
| EXCEPTIONS | ||
| PARTNER = 1 | ||
| PARTNER_NOT_VALID = 2 | ||
| RELAT = 3 | ||
| REL_DAT = 4 | ||
| REL_TYP_NOT_VALID = 5 | ||
| . " BPAR_C_RELATION_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM BPAR_C_RELATION_CHECK
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 AKTYP FROM TP105 INTO @DATA(ld_activity). | ||||
| DATA(ld_activity) | = ' '. | |||
Search for further information about these or an SAP related objects