SAP FKK_BP_EXTRACT_GET Function Module for Gets Business Partner Data from BP Shadow Table FKK_GPSHAD









FKK_BP_EXTRACT_GET is a standard fkk bp extract get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Gets Business Partner Data from BP Shadow Table FKK_GPSHAD 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 fkk bp extract get FM, simply by entering the name FKK_BP_EXTRACT_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: FKG0
Program Name: SAPLFKG0
Main Program: SAPLFKG0
Appliation area: F
Release date: 10-Dec-2009
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FKK_BP_EXTRACT_GET 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 'FKK_BP_EXTRACT_GET'"Gets Business Partner Data from BP Shadow Table FKK_GPSHAD
EXPORTING
* I_PARTNER = "Business Partner Number
* IX_ORG_NAMESWITCH = ' ' "Exchange Name Fields for Organizations
* I_MKK_ONLY = 'X' "DB is only read with role category MKK
* I_READ_WITHOUT_EXCEPTION = ' ' "No exception if data not found
* I_VALDT_SEL = SY-DATLO "Business Selection Date for Time-Dependency
* I_IBAN_REQUIRED = ' ' "IBAN Required
* I_XADDR = 'X' "Indicator: Read Address
* I_ADDRNUMBER = "Address Number for Business Partner
* I_XADDR_OBLIGATORY = 'X' "Indicator: Address Must Exist
* I_XBANK = ' ' "Indicator: Read Bank Details
* I_BKVID = "Bank ID for Business Partner
* I_XCCARD = ' ' "Indicator: Read Credit Card Data
* I_CCARD_ID = "Credit Card ID
* I_X_POINTER = ' ' "Indicator: Read in Sort Sequence

IMPORTING
E_BP_EXTRACT = "Business Partner Data Read

EXCEPTIONS
PARTNER_NOT_FOUND = 1 ADDRESS_NOT_FOUND = 2 BANK_NOT_FOUND = 3 CREDITCARD_NOT_FOUND = 4
.



IMPORTING Parameters details for FKK_BP_EXTRACT_GET

I_PARTNER - Business Partner Number

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

IX_ORG_NAMESWITCH - Exchange Name Fields for Organizations

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

I_MKK_ONLY - DB is only read with role category MKK

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

I_READ_WITHOUT_EXCEPTION - No exception if data not found

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

I_VALDT_SEL - Business Selection Date for Time-Dependency

Data type: SY-DATLO
Default: SY-DATLO
Optional: Yes
Call by Reference: Yes

I_IBAN_REQUIRED - IBAN Required

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

I_XADDR - Indicator: Read Address

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

I_ADDRNUMBER - Address Number for Business Partner

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

I_XADDR_OBLIGATORY - Indicator: Address Must Exist

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

I_XBANK - Indicator: Read Bank Details

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

I_BKVID - Bank ID for Business Partner

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

I_XCCARD - Indicator: Read Credit Card Data

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

I_CCARD_ID - Credit Card ID

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

I_X_POINTER - Indicator: Read in Sort Sequence

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

EXPORTING Parameters details for FKK_BP_EXTRACT_GET

E_BP_EXTRACT - Business Partner Data Read

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

EXCEPTIONS details

PARTNER_NOT_FOUND - Partner Not Found

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

ADDRESS_NOT_FOUND - Address not found for partner

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

BANK_NOT_FOUND - No bank details found for partner

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

CREDITCARD_NOT_FOUND - No credit card found for partner

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

Copy and paste ABAP code example for FKK_BP_EXTRACT_GET 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_i_partner  TYPE BUT000-PARTNER, "   
lv_e_bp_extract  TYPE FKK_GPSHAD, "   
lv_partner_not_found  TYPE FKK_GPSHAD, "   
lv_ix_org_nameswitch  TYPE BOOLE-BOOLE, "   SPACE
lv_i_mkk_only  TYPE BOOLE-BOOLE, "   'X'
lv_i_read_without_exception  TYPE BOOLE-BOOLE, "   SPACE
lv_i_valdt_sel  TYPE SY-DATLO, "   SY-DATLO
lv_i_iban_required  TYPE BOOLE-BOOLE, "   SPACE
lv_i_xaddr  TYPE BOOLE-BOOLE, "   'X'
lv_address_not_found  TYPE BOOLE, "   
lv_i_addrnumber  TYPE BUT020-ADDRNUMBER, "   
lv_bank_not_found  TYPE BUT020, "   
lv_i_xaddr_obligatory  TYPE BOOLE-BOOLE, "   'X'
lv_creditcard_not_found  TYPE BOOLE, "   
lv_i_xbank  TYPE BOOLE-BOOLE, "   SPACE
lv_i_bkvid  TYPE BUT0BK-BKVID, "   
lv_i_xccard  TYPE BOOLE-BOOLE, "   SPACE
lv_i_ccard_id  TYPE BUT0CC-CCARD_ID, "   
lv_i_x_pointer  TYPE C. "   SPACE

  CALL FUNCTION 'FKK_BP_EXTRACT_GET'  "Gets Business Partner Data from BP Shadow Table FKK_GPSHAD
    EXPORTING
         I_PARTNER = lv_i_partner
         IX_ORG_NAMESWITCH = lv_ix_org_nameswitch
         I_MKK_ONLY = lv_i_mkk_only
         I_READ_WITHOUT_EXCEPTION = lv_i_read_without_exception
         I_VALDT_SEL = lv_i_valdt_sel
         I_IBAN_REQUIRED = lv_i_iban_required
         I_XADDR = lv_i_xaddr
         I_ADDRNUMBER = lv_i_addrnumber
         I_XADDR_OBLIGATORY = lv_i_xaddr_obligatory
         I_XBANK = lv_i_xbank
         I_BKVID = lv_i_bkvid
         I_XCCARD = lv_i_xccard
         I_CCARD_ID = lv_i_ccard_id
         I_X_POINTER = lv_i_x_pointer
    IMPORTING
         E_BP_EXTRACT = lv_e_bp_extract
    EXCEPTIONS
        PARTNER_NOT_FOUND = 1
        ADDRESS_NOT_FOUND = 2
        BANK_NOT_FOUND = 3
        CREDITCARD_NOT_FOUND = 4
. " FKK_BP_EXTRACT_GET




ABAP code using 7.40 inline data declarations to call FM FKK_BP_EXTRACT_GET

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).
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_ix_org_nameswitch).
DATA(ld_ix_org_nameswitch) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_mkk_only).
DATA(ld_i_mkk_only) = 'X'.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_read_without_exception).
DATA(ld_i_read_without_exception) = ' '.
 
"SELECT single DATLO FROM SY INTO @DATA(ld_i_valdt_sel).
DATA(ld_i_valdt_sel) = SY-DATLO.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_iban_required).
DATA(ld_i_iban_required) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xaddr).
DATA(ld_i_xaddr) = 'X'.
 
 
"SELECT single ADDRNUMBER FROM BUT020 INTO @DATA(ld_i_addrnumber).
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xaddr_obligatory).
DATA(ld_i_xaddr_obligatory) = 'X'.
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xbank).
DATA(ld_i_xbank) = ' '.
 
"SELECT single BKVID FROM BUT0BK INTO @DATA(ld_i_bkvid).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xccard).
DATA(ld_i_xccard) = ' '.
 
"SELECT single CCARD_ID FROM BUT0CC INTO @DATA(ld_i_ccard_id).
 
DATA(ld_i_x_pointer) = ' '.
 


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!