SAP FTBP_READ_PARTNER Function Module for Business Partner: Read General Data









FTBP_READ_PARTNER is a standard ftbp read partner 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 General 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 partner FM, simply by entering the name FTBP_READ_PARTNER into the relevant SAP transaction such as SE37 or SE38.

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



Function FTBP_READ_PARTNER 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_PARTNER'"Business Partner: Read General Data
EXPORTING
I_PARTNER = "Partner
* I_RELEASE = ' ' "Check Release of Partner
* I_READ_FROM_DB = ' ' "Always Read from the Database
* I_DATE = SY-DATUM "
* I_XMEMORY = ' ' "Kennzeichen: Lokales Memory durchsuchen
* I_XWA = ' ' "Kennzeichen: Arbeitsbereich durchsuchen
* I_ADDRNUMBER = "Adressnummer (für Adressfindung)
* I_CP_EXCLUDE = ' ' "Keine Daten zur Zentralen Person (Performance!)
* I_IS_EXCLUDE = ' ' "Standardbranche nicht ermitteln

IMPORTING
E_BUS000 = "
E_BUS001 = "
E_BP001 = "
E_BUT0BANK = "Business Partner: Bank Data
E_CUSTOMER = "

EXCEPTIONS
PARTNER = 1 PARTNER_NOT_RELEASED = 2 WRONG_PARAMETERS = 3 DATA_FOR_DATA_NOT_ACT = 4
.



IMPORTING Parameters details for FTBP_READ_PARTNER

I_PARTNER - Partner

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

I_RELEASE - Check Release of Partner

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

I_READ_FROM_DB - Always Read from the Database

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DATE -

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

I_XMEMORY - Kennzeichen: Lokales Memory durchsuchen

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XWA - Kennzeichen: Arbeitsbereich durchsuchen

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ADDRNUMBER - Adressnummer (für Adressfindung)

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

I_CP_EXCLUDE - Keine Daten zur Zentralen Person (Performance!)

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_IS_EXCLUDE - Standardbranche nicht ermitteln

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FTBP_READ_PARTNER

E_BUS000 -

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

E_BUS001 -

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

E_BP001 -

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

E_BUT0BANK - Business Partner: Bank Data

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

E_CUSTOMER -

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

EXCEPTIONS details

PARTNER -

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

PARTNER_NOT_RELEASED - Partner is not released

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

WRONG_PARAMETERS -

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

DATA_FOR_DATA_NOT_ACT -

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

Copy and paste ABAP code example for FTBP_READ_PARTNER 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_e_bus000  TYPE BUS000, "   
lv_i_partner  TYPE BUT000-PARTNER, "   
lv_e_bus001  TYPE BUS001, "   
lv_i_release  TYPE C, "   SPACE
lv_partner_not_released  TYPE C, "   
lv_e_bp001  TYPE BP001, "   
lv_i_read_from_db  TYPE BOOLE-BOOLE, "   SPACE
lv_wrong_parameters  TYPE BOOLE, "   
lv_i_date  TYPE SY-DATUM, "   SY-DATUM
lv_e_but0bank  TYPE BUT0BANK, "   
lv_data_for_data_not_act  TYPE BUT0BANK, "   
lv_i_xmemory  TYPE BOOLE-BOOLE, "   SPACE
lv_e_customer  TYPE KNA1-KUNNR, "   
lv_i_xwa  TYPE BOOLE-BOOLE, "   SPACE
lv_i_addrnumber  TYPE BUT020-ADDRNUMBER, "   
lv_i_cp_exclude  TYPE BOOLE-BOOLE, "   SPACE
lv_i_is_exclude  TYPE BOOLE-BOOLE. "   SPACE

  CALL FUNCTION 'FTBP_READ_PARTNER'  "Business Partner: Read General Data
    EXPORTING
         I_PARTNER = lv_i_partner
         I_RELEASE = lv_i_release
         I_READ_FROM_DB = lv_i_read_from_db
         I_DATE = lv_i_date
         I_XMEMORY = lv_i_xmemory
         I_XWA = lv_i_xwa
         I_ADDRNUMBER = lv_i_addrnumber
         I_CP_EXCLUDE = lv_i_cp_exclude
         I_IS_EXCLUDE = lv_i_is_exclude
    IMPORTING
         E_BUS000 = lv_e_bus000
         E_BUS001 = lv_e_bus001
         E_BP001 = lv_e_bp001
         E_BUT0BANK = lv_e_but0bank
         E_CUSTOMER = lv_e_customer
    EXCEPTIONS
        PARTNER = 1
        PARTNER_NOT_RELEASED = 2
        WRONG_PARAMETERS = 3
        DATA_FOR_DATA_NOT_ACT = 4
. " FTBP_READ_PARTNER




ABAP code using 7.40 inline data declarations to call FM FTBP_READ_PARTNER

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 PARTNER FROM BUT000 INTO @DATA(ld_i_partner).
 
 
DATA(ld_i_release) = ' '.
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_read_from_db).
DATA(ld_i_read_from_db) = ' '.
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_date).
DATA(ld_i_date) = SY-DATUM.
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xmemory).
DATA(ld_i_xmemory) = ' '.
 
"SELECT single KUNNR FROM KNA1 INTO @DATA(ld_e_customer).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xwa).
DATA(ld_i_xwa) = ' '.
 
"SELECT single ADDRNUMBER FROM BUT020 INTO @DATA(ld_i_addrnumber).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_cp_exclude).
DATA(ld_i_cp_exclude) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_is_exclude).
DATA(ld_i_is_exclude) = ' '.
 


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!