SAP Function Modules

BAPI_ISUPARTNER_GETLIST SAP Function module - BAPI: generates list of business partners







BAPI_ISUPARTNER_GETLIST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BAPI_ISUPARTNER_GETLIST into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: EBPBAPIS
Released Date: 22.07.2003
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_ISUPARTNER_GETLIST - BAPI ISUPARTNER GETLIST





CALL FUNCTION 'BAPI_ISUPARTNER_GETLIST' "BAPI: generates list of business partners
* EXPORTING
*   addrfind =                  " bapiisuadrfd  Address fields for which search is carried out
*   bankfind =                  " bapiisubkfd   Bank data for which search is carried out
*   maxrows =                   " bapibppara-maxrows  Maximum number of business partners to be selected
*   tel_number =                " bapibppara-tel_number
*   tel_country =               " bapibppara-tel_country
*   tel_country_iso =           " bapibppara-tel_country_iso
  IMPORTING
    intmaxrowsreached =         " bapibppara-maxrowsr  Internal overflow
    return =                    " bapiret2      Return in case of error
    count =                     " bapibppara-maxcount  Number of business partners
* TABLES
*   tlist =                     " bapiisubpd    List of Business Partners
*   tpartner =                  " bapiisuranges  Selection option: partner number
*   tname1 =                    " bapiisuranges  Selection option: NAME1
*   tname2 =                    " bapiisuranges  Selection option: NAME2
*   ttelnrlong =                " bapiisuranges  Selection option: telephone number
*   tsocsecure =                " bapiisuranges  Selection option: social security number
*   tdrlicense =                " bapiisuranges  Selection option: driver's license number
*   twelfare =                  " bapiisuranges  Selection option: welfare office
    .  "  BAPI_ISUPARTNER_GETLIST

ABAP code example for Function Module BAPI_ISUPARTNER_GETLIST





The ABAP code below is a full code listing to execute function module BAPI_ISUPARTNER_GETLIST including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_intmaxrowsreached  TYPE BAPIBPPARA-MAXROWSR ,
ld_return  TYPE BAPIRET2 ,
ld_count  TYPE BAPIBPPARA-MAXCOUNT ,
it_tlist  TYPE STANDARD TABLE OF BAPIISUBPD,"TABLES PARAM
wa_tlist  LIKE LINE OF it_tlist ,
it_tpartner  TYPE STANDARD TABLE OF BAPIISURANGES,"TABLES PARAM
wa_tpartner  LIKE LINE OF it_tpartner ,
it_tname1  TYPE STANDARD TABLE OF BAPIISURANGES,"TABLES PARAM
wa_tname1  LIKE LINE OF it_tname1 ,
it_tname2  TYPE STANDARD TABLE OF BAPIISURANGES,"TABLES PARAM
wa_tname2  LIKE LINE OF it_tname2 ,
it_ttelnrlong  TYPE STANDARD TABLE OF BAPIISURANGES,"TABLES PARAM
wa_ttelnrlong  LIKE LINE OF it_ttelnrlong ,
it_tsocsecure  TYPE STANDARD TABLE OF BAPIISURANGES,"TABLES PARAM
wa_tsocsecure  LIKE LINE OF it_tsocsecure ,
it_tdrlicense  TYPE STANDARD TABLE OF BAPIISURANGES,"TABLES PARAM
wa_tdrlicense  LIKE LINE OF it_tdrlicense ,
it_twelfare  TYPE STANDARD TABLE OF BAPIISURANGES,"TABLES PARAM
wa_twelfare  LIKE LINE OF it_twelfare .

DATA(ld_addrfind) = 'Check type of data required'.
DATA(ld_bankfind) = 'Check type of data required'.

DATA(ld_maxrows) = 123

DATA(ld_tel_number) = some text here

DATA(ld_tel_country) = some text here

DATA(ld_tel_country_iso) = some text here

"populate fields of struture and append to itab
append wa_tlist to it_tlist.

"populate fields of struture and append to itab
append wa_tpartner to it_tpartner.

"populate fields of struture and append to itab
append wa_tname1 to it_tname1.

"populate fields of struture and append to itab
append wa_tname2 to it_tname2.

"populate fields of struture and append to itab
append wa_ttelnrlong to it_ttelnrlong.

"populate fields of struture and append to itab
append wa_tsocsecure to it_tsocsecure.

"populate fields of struture and append to itab
append wa_tdrlicense to it_tdrlicense.

"populate fields of struture and append to itab
append wa_twelfare to it_twelfare. . CALL FUNCTION 'BAPI_ISUPARTNER_GETLIST' * EXPORTING * addrfind = ld_addrfind * bankfind = ld_bankfind * maxrows = ld_maxrows * tel_number = ld_tel_number * tel_country = ld_tel_country * tel_country_iso = ld_tel_country_iso IMPORTING intmaxrowsreached = ld_intmaxrowsreached return = ld_return count = ld_count * TABLES * tlist = it_tlist * tpartner = it_tpartner * tname1 = it_tname1 * tname2 = it_tname2 * ttelnrlong = it_ttelnrlong * tsocsecure = it_tsocsecure * tdrlicense = it_tdrlicense * twelfare = it_twelfare . " BAPI_ISUPARTNER_GETLIST
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_intmaxrowsreached  TYPE BAPIBPPARA-MAXROWSR ,
ld_addrfind  TYPE BAPIISUADRFD ,
it_tlist  TYPE STANDARD TABLE OF BAPIISUBPD ,
wa_tlist  LIKE LINE OF it_tlist,
ld_return  TYPE BAPIRET2 ,
ld_bankfind  TYPE BAPIISUBKFD ,
it_tpartner  TYPE STANDARD TABLE OF BAPIISURANGES ,
wa_tpartner  LIKE LINE OF it_tpartner,
ld_count  TYPE BAPIBPPARA-MAXCOUNT ,
ld_maxrows  TYPE BAPIBPPARA-MAXROWS ,
it_tname1  TYPE STANDARD TABLE OF BAPIISURANGES ,
wa_tname1  LIKE LINE OF it_tname1,
ld_tel_number  TYPE BAPIBPPARA-TEL_NUMBER ,
it_tname2  TYPE STANDARD TABLE OF BAPIISURANGES ,
wa_tname2  LIKE LINE OF it_tname2,
ld_tel_country  TYPE BAPIBPPARA-TEL_COUNTRY ,
it_ttelnrlong  TYPE STANDARD TABLE OF BAPIISURANGES ,
wa_ttelnrlong  LIKE LINE OF it_ttelnrlong,
ld_tel_country_iso  TYPE BAPIBPPARA-TEL_COUNTRY_ISO ,
it_tsocsecure  TYPE STANDARD TABLE OF BAPIISURANGES ,
wa_tsocsecure  LIKE LINE OF it_tsocsecure,
it_tdrlicense  TYPE STANDARD TABLE OF BAPIISURANGES ,
wa_tdrlicense  LIKE LINE OF it_tdrlicense,
it_twelfare  TYPE STANDARD TABLE OF BAPIISURANGES ,
wa_twelfare  LIKE LINE OF it_twelfare.

ld_addrfind = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_tlist to it_tlist.
ld_bankfind = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_tpartner to it_tpartner.

ld_maxrows = 123

"populate fields of struture and append to itab
append wa_tname1 to it_tname1.

ld_tel_number = some text here

"populate fields of struture and append to itab
append wa_tname2 to it_tname2.

ld_tel_country = some text here

"populate fields of struture and append to itab
append wa_ttelnrlong to it_ttelnrlong.

ld_tel_country_iso = some text here

"populate fields of struture and append to itab
append wa_tsocsecure to it_tsocsecure.

"populate fields of struture and append to itab
append wa_tdrlicense to it_tdrlicense.

"populate fields of struture and append to itab
append wa_twelfare to it_twelfare.

SAP Documentation for FM BAPI_ISUPARTNER_GETLIST


A list of the business partners that meet the selection criteria is returned, along with their data. ...See here for full SAP fm documentation







Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_ISUPARTNER_GETLIST or its description.