SAP FTBP_READ_BPSREP Function Module for Business Partner: Read Reporting-Relevant Data
FTBP_READ_BPSREP is a standard ftbp read bpsrep SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Business Partner: Read Reporting-Relevant Data 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 ftbp read bpsrep FM, simply by entering the name FTBP_READ_BPSREP into the relevant SAP transaction such as SE37 or SE38.
Function Group: FTBP_READ
Program Name: SAPLFTBP_READ
Main Program: SAPLFTBP_READ
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FTBP_READ_BPSREP 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 'FTBP_READ_BPSREP'"Business Partner: Read Reporting-Relevant Data.
EXPORTING
I_PARTNER = "Business Partner Number
* I_BUKRS = ' ' "Company Code
* I_DB = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* I_XMEMORY = ' ' "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* I_XWA = ' ' "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* I_VALDT = SY-DATLO "Date and time, local date of user
* I_BP1010 = 'X' "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* I_BP1030 = 'X' "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
IMPORTING
E_BPSREP = "Business Partner: Partner Data Relevant for Reporting
EXCEPTIONS
NO_PARTNER = 1
IMPORTING Parameters details for FTBP_READ_BPSREP
I_PARTNER - Business Partner Number
Data type: BU_PARTNEROptional: No
Call by Reference: No ( called with pass by value option)
I_BUKRS - Company Code
Data type: T001-BUKRSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DB - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_XMEMORY - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XWA - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VALDT - Date and time, local date of user
Data type: SY-DATLODefault: SY-DATLO
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BP1010 - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BP1030 - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FTBP_READ_BPSREP
E_BPSREP - Business Partner: Partner Data Relevant for Reporting
Data type: BPSREPOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_PARTNER - übergebener Geschäftspartner ist nicht vorhanden
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FTBP_READ_BPSREP 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_e_bpsrep | TYPE BPSREP, " | |||
| lv_i_partner | TYPE BU_PARTNER, " | |||
| lv_no_partner | TYPE BU_PARTNER, " | |||
| lv_i_bukrs | TYPE T001-BUKRS, " SPACE | |||
| lv_i_db | TYPE BOOLE-BOOLE, " | |||
| lv_i_xmemory | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_i_xwa | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_i_valdt | TYPE SY-DATLO, " SY-DATLO | |||
| lv_i_bp1010 | TYPE BOOLE-BOOLE, " 'X' | |||
| lv_i_bp1030 | TYPE BOOLE-BOOLE. " 'X' |
|   CALL FUNCTION 'FTBP_READ_BPSREP' "Business Partner: Read Reporting-Relevant Data |
| EXPORTING | ||
| I_PARTNER | = lv_i_partner | |
| I_BUKRS | = lv_i_bukrs | |
| I_DB | = lv_i_db | |
| I_XMEMORY | = lv_i_xmemory | |
| I_XWA | = lv_i_xwa | |
| I_VALDT | = lv_i_valdt | |
| I_BP1010 | = lv_i_bp1010 | |
| I_BP1030 | = lv_i_bp1030 | |
| IMPORTING | ||
| E_BPSREP | = lv_e_bpsrep | |
| EXCEPTIONS | ||
| NO_PARTNER = 1 | ||
| . " FTBP_READ_BPSREP | ||
ABAP code using 7.40 inline data declarations to call FM FTBP_READ_BPSREP
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 BUKRS FROM T001 INTO @DATA(ld_i_bukrs). | ||||
| DATA(ld_i_bukrs) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_db). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xmemory). | ||||
| DATA(ld_i_xmemory) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xwa). | ||||
| DATA(ld_i_xwa) | = ' '. | |||
| "SELECT single DATLO FROM SY INTO @DATA(ld_i_valdt). | ||||
| DATA(ld_i_valdt) | = SY-DATLO. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_bp1010). | ||||
| DATA(ld_i_bp1010) | = 'X'. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_bp1030). | ||||
| DATA(ld_i_bp1030) | = 'X'. | |||
Search for further information about these or an SAP related objects