SAP BAPI_SALESSUPDOCUMENT_GETLIST Function Module for Abstract BAPI Sales Support Document Get List
BAPI_SALESSUPDOCUMENT_GETLIST is a standard bapi salessupdocument 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 Abstract BAPI Sales Support Document Get List 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 salessupdocument getlist FM, simply by entering the name BAPI_SALESSUPDOCUMENT_GETLIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: VBKA
Program Name: SAPLVBKA
Main Program:
Appliation area: V
Release date: 07-Jul-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_SALESSUPDOCUMENT_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_SALESSUPDOCUMENT_GETLIST'"Abstract BAPI Sales Support Document Get List.
EXPORTING
* ACTIVITY_START_DATE = "Start of Sales Activity
* ACTIVITY_END_DATE = "End of Sales Activity
TABLES
* CUSTOMERSEL = "Intervals - Customer
* SDORGANIZATIONALUNITS = "SD Organizational Units (other than intervals)
* SALESACTIVITYID = "BOR ID Sales Support Documents
* RETURN = "Return Code
* EMPLOYEESEL = "
* ACTIVITY_TYPESEL = "Intervals - Sales Activity Type
* STATESEL = "Intervals - Sales Activity Status
* SALESORGANISAZIONSEL = "Intervals - Sales Organization
* DISTRIBUTIONCHANNELS = "Intervals - Distribution Channel
* DIVISIONSEL = "Intervals - Division
* SALESOFFICESEL = "Intervals - Sales Office
* SALESGROUPSEL = "Intervals - Sales Group
IMPORTING Parameters details for BAPI_SALESSUPDOCUMENT_GETLIST
ACTIVITY_START_DATE - Start of Sales Activity
Data type: BAPI_VBKA_MISC-KTABGOptional: Yes
Call by Reference: No ( called with pass by value option)
ACTIVITY_END_DATE - End of Sales Activity
Data type: BAPI_VBKA_MISC-KTAENOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_SALESSUPDOCUMENT_GETLIST
CUSTOMERSEL - Intervals - Customer
Data type: BAPI_RANGESKUNNROptional: Yes
Call by Reference: No ( called with pass by value option)
SDORGANIZATIONALUNITS - SD Organizational Units (other than intervals)
Data type: BAPI_SDORGUNITSOptional: Yes
Call by Reference: No ( called with pass by value option)
SALESACTIVITYID - BOR ID Sales Support Documents
Data type: BAPI_VBKA_BOIDOptional: Yes
Call by Reference: No ( called with pass by value option)
RETURN - Return Code
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
EMPLOYEESEL -
Data type: BAPI_RANGESPARNROptional: Yes
Call by Reference: No ( called with pass by value option)
ACTIVITY_TYPESEL - Intervals - Sales Activity Type
Data type: BAPI_RANGESKTAAROptional: Yes
Call by Reference: No ( called with pass by value option)
STATESEL - Intervals - Sales Activity Status
Data type: BAPI_RANGESKTASTOptional: Yes
Call by Reference: No ( called with pass by value option)
SALESORGANISAZIONSEL - Intervals - Sales Organization
Data type: BAPI_RANGESVKORGOptional: Yes
Call by Reference: No ( called with pass by value option)
DISTRIBUTIONCHANNELS - Intervals - Distribution Channel
Data type: BAPI_RANGESVTWEGOptional: Yes
Call by Reference: No ( called with pass by value option)
DIVISIONSEL - Intervals - Division
Data type: BAPI_RANGESSPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
SALESOFFICESEL - Intervals - Sales Office
Data type: BAPI_RANGESVKBUROptional: Yes
Call by Reference: No ( called with pass by value option)
SALESGROUPSEL - Intervals - Sales Group
Data type: BAPI_RANGESVKGRPOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_SALESSUPDOCUMENT_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_customersel | TYPE STANDARD TABLE OF BAPI_RANGESKUNNR, " | |||
| lv_activity_start_date | TYPE BAPI_VBKA_MISC-KTABG, " | |||
| lt_sdorganizationalunits | TYPE STANDARD TABLE OF BAPI_SDORGUNITS, " | |||
| lt_salesactivityid | TYPE STANDARD TABLE OF BAPI_VBKA_BOID, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_employeesel | TYPE STANDARD TABLE OF BAPI_RANGESPARNR, " | |||
| lv_activity_end_date | TYPE BAPI_VBKA_MISC-KTAEN, " | |||
| lt_activity_typesel | TYPE STANDARD TABLE OF BAPI_RANGESKTAAR, " | |||
| lt_statesel | TYPE STANDARD TABLE OF BAPI_RANGESKTAST, " | |||
| lt_salesorganisazionsel | TYPE STANDARD TABLE OF BAPI_RANGESVKORG, " | |||
| lt_distributionchannels | TYPE STANDARD TABLE OF BAPI_RANGESVTWEG, " | |||
| lt_divisionsel | TYPE STANDARD TABLE OF BAPI_RANGESSPART, " | |||
| lt_salesofficesel | TYPE STANDARD TABLE OF BAPI_RANGESVKBUR, " | |||
| lt_salesgroupsel | TYPE STANDARD TABLE OF BAPI_RANGESVKGRP. " |
|   CALL FUNCTION 'BAPI_SALESSUPDOCUMENT_GETLIST' "Abstract BAPI Sales Support Document Get List |
| EXPORTING | ||
| ACTIVITY_START_DATE | = lv_activity_start_date | |
| ACTIVITY_END_DATE | = lv_activity_end_date | |
| TABLES | ||
| CUSTOMERSEL | = lt_customersel | |
| SDORGANIZATIONALUNITS | = lt_sdorganizationalunits | |
| SALESACTIVITYID | = lt_salesactivityid | |
| RETURN | = lt_return | |
| EMPLOYEESEL | = lt_employeesel | |
| ACTIVITY_TYPESEL | = lt_activity_typesel | |
| STATESEL | = lt_statesel | |
| SALESORGANISAZIONSEL | = lt_salesorganisazionsel | |
| DISTRIBUTIONCHANNELS | = lt_distributionchannels | |
| DIVISIONSEL | = lt_divisionsel | |
| SALESOFFICESEL | = lt_salesofficesel | |
| SALESGROUPSEL | = lt_salesgroupsel | |
| . " BAPI_SALESSUPDOCUMENT_GETLIST | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_SALESSUPDOCUMENT_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 KTABG FROM BAPI_VBKA_MISC INTO @DATA(ld_activity_start_date). | ||||
| "SELECT single KTAEN FROM BAPI_VBKA_MISC INTO @DATA(ld_activity_end_date). | ||||
Search for further information about these or an SAP related objects