SAP BAPI_ISUACCOUNT_GETLIST Function Module for BAPI: generates list of contract accounts
BAPI_ISUACCOUNT_GETLIST is a standard bapi isuaccount getlist SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BAPI: generates list of contract accounts 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 bapi isuaccount getlist FM, simply by entering the name BAPI_ISUACCOUNT_GETLIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: ECABAPIS
Program Name: SAPLECABAPIS
Main Program: SAPLECABAPIS
Appliation area: E
Release date: 03-Dec-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_ISUACCOUNT_GETLIST 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 'BAPI_ISUACCOUNT_GETLIST'"BAPI: generates list of contract accounts.
EXPORTING
* MAXROWS = "Maximum number of business partners to be selected
* ONLYACCOUNTHOLDER = "Indicator: only select account holder
IMPORTING
INTMAXROWSREACHED = "Internal overflow
RETURN = "Return in case of error
COUNT = "Number of business partners
TABLES
* TLIST = "List of Business Partners
* TACCOUNT = "Selection option: partner number
* TPARTNER = "Selection option: partner number
* TABWRE = "Selection option: NAME1
* TABWRA = "Selection option: NAME2
* TABWRH = "Selection option: telephone number
* TABWMA = "Selection option: social security number
* TABWVK = "Selection option: collective bill
* TVKONV = "Selectin option: clearing account
IMPORTING Parameters details for BAPI_ISUACCOUNT_GETLIST
MAXROWS - Maximum number of business partners to be selected
Data type: BAPIBPPARA-MAXROWSOptional: Yes
Call by Reference: No ( called with pass by value option)
ONLYACCOUNTHOLDER - Indicator: only select account holder
Data type: BAPIBPPARA-ONLY_ACC_HOLDEROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_ISUACCOUNT_GETLIST
INTMAXROWSREACHED - Internal overflow
Data type: BAPIBPPARA-MAXROWSROptional: No
Call by Reference: No ( called with pass by value option)
RETURN - Return in case of error
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
COUNT - Number of business partners
Data type: BAPIBPPARA-MAXCOUNTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_ISUACCOUNT_GETLIST
TLIST - List of Business Partners
Data type: BAPIISUVKPOptional: Yes
Call by Reference: No ( called with pass by value option)
TACCOUNT - Selection option: partner number
Data type: BAPIISURANGESOptional: Yes
Call by Reference: No ( called with pass by value option)
TPARTNER - Selection option: partner number
Data type: BAPIISURANGESOptional: Yes
Call by Reference: No ( called with pass by value option)
TABWRE - Selection option: NAME1
Data type: BAPIISURANGESOptional: Yes
Call by Reference: No ( called with pass by value option)
TABWRA - Selection option: NAME2
Data type: BAPIISURANGESOptional: Yes
Call by Reference: No ( called with pass by value option)
TABWRH - Selection option: telephone number
Data type: BAPIISURANGESOptional: Yes
Call by Reference: No ( called with pass by value option)
TABWMA - Selection option: social security number
Data type: BAPIISURANGESOptional: Yes
Call by Reference: No ( called with pass by value option)
TABWVK - Selection option: collective bill
Data type: BAPIISURANGESOptional: Yes
Call by Reference: No ( called with pass by value option)
TVKONV - Selectin option: clearing account
Data type: BAPIISURANGESOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_ISUACCOUNT_GETLIST 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: | ||||
| lt_tlist | TYPE STANDARD TABLE OF BAPIISUVKP, " | |||
| lv_maxrows | TYPE BAPIBPPARA-MAXROWS, " | |||
| lv_intmaxrowsreached | TYPE BAPIBPPARA-MAXROWSR, " | |||
| lv_return | TYPE BAPIRET2, " | |||
| lt_taccount | TYPE STANDARD TABLE OF BAPIISURANGES, " | |||
| lv_onlyaccountholder | TYPE BAPIBPPARA-ONLY_ACC_HOLDER, " | |||
| lv_count | TYPE BAPIBPPARA-MAXCOUNT, " | |||
| lt_tpartner | TYPE STANDARD TABLE OF BAPIISURANGES, " | |||
| lt_tabwre | TYPE STANDARD TABLE OF BAPIISURANGES, " | |||
| lt_tabwra | TYPE STANDARD TABLE OF BAPIISURANGES, " | |||
| lt_tabwrh | TYPE STANDARD TABLE OF BAPIISURANGES, " | |||
| lt_tabwma | TYPE STANDARD TABLE OF BAPIISURANGES, " | |||
| lt_tabwvk | TYPE STANDARD TABLE OF BAPIISURANGES, " | |||
| lt_tvkonv | TYPE STANDARD TABLE OF BAPIISURANGES. " |
|   CALL FUNCTION 'BAPI_ISUACCOUNT_GETLIST' "BAPI: generates list of contract accounts |
| EXPORTING | ||
| MAXROWS | = lv_maxrows | |
| ONLYACCOUNTHOLDER | = lv_onlyaccountholder | |
| IMPORTING | ||
| INTMAXROWSREACHED | = lv_intmaxrowsreached | |
| RETURN | = lv_return | |
| COUNT | = lv_count | |
| TABLES | ||
| TLIST | = lt_tlist | |
| TACCOUNT | = lt_taccount | |
| TPARTNER | = lt_tpartner | |
| TABWRE | = lt_tabwre | |
| TABWRA | = lt_tabwra | |
| TABWRH | = lt_tabwrh | |
| TABWMA | = lt_tabwma | |
| TABWVK | = lt_tabwvk | |
| TVKONV | = lt_tvkonv | |
| . " BAPI_ISUACCOUNT_GETLIST | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_ISUACCOUNT_GETLIST
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 MAXROWS FROM BAPIBPPARA INTO @DATA(ld_maxrows). | ||||
| "SELECT single MAXROWSR FROM BAPIBPPARA INTO @DATA(ld_intmaxrowsreached). | ||||
| "SELECT single ONLY_ACC_HOLDER FROM BAPIBPPARA INTO @DATA(ld_onlyaccountholder). | ||||
| "SELECT single MAXCOUNT FROM BAPIBPPARA INTO @DATA(ld_count). | ||||
Search for further information about these or an SAP related objects