SAP BPAR_REPORT_OUTGOING_RELATIONS Function Module for NOTRANSL: Geschäftspartner: Reporting ausgehende Beziehungen eines Partner









BPAR_REPORT_OUTGOING_RELATIONS is a standard bpar report outgoing relations 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: Geschäftspartner: Reporting ausgehende Beziehungen eines Partner 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 report outgoing relations FM, simply by entering the name BPAR_REPORT_OUTGOING_RELATIONS into the relevant SAP transaction such as SE37 or SE38.

Function Group: BPRP
Program Name: SAPLBPRP
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function BPAR_REPORT_OUTGOING_RELATIONS 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_REPORT_OUTGOING_RELATIONS'"NOTRANSL: Geschäftspartner: Reporting ausgehende Beziehungen eines Partner
EXPORTING
* PARTNR = "Business Partner Number
* MAXCOUNT = 5 "Predefined Type
* DATE = SY-DATUM "Start of Validity of BP-BP Relationship

TABLES
* I_BP000 = "Business Partner Master (General Data)
* TAB_BP2000 = "BP: Business Partner - Business Partner - Relationship

EXCEPTIONS
NO_RELATIONS_FOUND = 1
.



IMPORTING Parameters details for BPAR_REPORT_OUTGOING_RELATIONS

PARTNR - Business Partner Number

Data type: BP2000-PARTNR1
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAXCOUNT - Predefined Type

Data type: I
Default: 5
Optional: Yes
Call by Reference: No ( called with pass by value option)

DATE - Start of Validity of BP-BP Relationship

Data type: BPDREL-REL_DAT
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BPAR_REPORT_OUTGOING_RELATIONS

I_BP000 - Business Partner Master (General Data)

Data type: BP000
Optional: Yes
Call by Reference: No ( called with pass by value option)

TAB_BP2000 - BP: Business Partner - Business Partner - Relationship

Data type: BP2000
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_RELATIONS_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for BPAR_REPORT_OUTGOING_RELATIONS 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_partnr  TYPE BP2000-PARTNR1, "   
lt_i_bp000  TYPE STANDARD TABLE OF BP000, "   
lv_no_relations_found  TYPE BP000, "   
lv_maxcount  TYPE I, "   5
lt_tab_bp2000  TYPE STANDARD TABLE OF BP2000, "   
lv_date  TYPE BPDREL-REL_DAT. "   SY-DATUM

  CALL FUNCTION 'BPAR_REPORT_OUTGOING_RELATIONS'  "NOTRANSL: Geschäftspartner: Reporting ausgehende Beziehungen eines Partner
    EXPORTING
         PARTNR = lv_partnr
         MAXCOUNT = lv_maxcount
         DATE = lv_date
    TABLES
         I_BP000 = lt_i_bp000
         TAB_BP2000 = lt_tab_bp2000
    EXCEPTIONS
        NO_RELATIONS_FOUND = 1
. " BPAR_REPORT_OUTGOING_RELATIONS




ABAP code using 7.40 inline data declarations to call FM BPAR_REPORT_OUTGOING_RELATIONS

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 PARTNR1 FROM BP2000 INTO @DATA(ld_partnr).
 
 
 
DATA(ld_maxcount) = 5.
 
 
"SELECT single REL_DAT FROM BPDREL INTO @DATA(ld_date).
DATA(ld_date) = SY-DATUM.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!