SAP PRODUCT_LIST_EXCLUSION Function Module for Material listing & material exclusion
PRODUCT_LIST_EXCLUSION is a standard product list exclusion SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Material listing & material exclusion 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 product list exclusion FM, simply by entering the name PRODUCT_LIST_EXCLUSION into the relevant SAP transaction such as SE37 or SE38.
Function Group: V61G
Program Name: SAPLV61G
Main Program: SAPLV61G
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PRODUCT_LIST_EXCLUSION 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 'PRODUCT_LIST_EXCLUSION'"Material listing & material exclusion.
EXPORTING
APPLICATION = "Application
DATE = "Date for Listing/Exclusion
HEADER_COMMUNICATION = "Document Header Fields
ITEM_COMMUNICATION = "Item Header Fields
LIST = "Listing ( not exclusion )
* VERLI = "
SCHEME = "Plan (listing or exclusion)
* PROTOKOLL = ' ' "
IMPORTING
ENTRY_FOUND = "Entries were found
IMPORTING Parameters details for PRODUCT_LIST_EXCLUSION
APPLICATION - Application
Data type: T683-KAPPLOptional: No
Call by Reference: No ( called with pass by value option)
DATE - Date for Listing/Exclusion
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
HEADER_COMMUNICATION - Document Header Fields
Data type: KOMKGOptional: No
Call by Reference: No ( called with pass by value option)
ITEM_COMMUNICATION - Item Header Fields
Data type: KOMPGOptional: No
Call by Reference: No ( called with pass by value option)
LIST - Listing ( not exclusion )
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VERLI -
Data type: TVAK-VERLIOptional: Yes
Call by Reference: No ( called with pass by value option)
SCHEME - Plan (listing or exclusion)
Data type: T683-KALSMOptional: No
Call by Reference: No ( called with pass by value option)
PROTOKOLL -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PRODUCT_LIST_EXCLUSION
ENTRY_FOUND - Entries were found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PRODUCT_LIST_EXCLUSION 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_application | TYPE T683-KAPPL, " | |||
| lv_entry_found | TYPE T683, " | |||
| lv_date | TYPE SY-DATUM, " | |||
| lv_header_communication | TYPE KOMKG, " | |||
| lv_item_communication | TYPE KOMPG, " | |||
| lv_list | TYPE KOMPG, " | |||
| lv_verli | TYPE TVAK-VERLI, " | |||
| lv_scheme | TYPE T683-KALSM, " | |||
| lv_protokoll | TYPE T683. " ' ' |
|   CALL FUNCTION 'PRODUCT_LIST_EXCLUSION' "Material listing & material exclusion |
| EXPORTING | ||
| APPLICATION | = lv_application | |
| DATE | = lv_date | |
| HEADER_COMMUNICATION | = lv_header_communication | |
| ITEM_COMMUNICATION | = lv_item_communication | |
| LIST | = lv_list | |
| VERLI | = lv_verli | |
| SCHEME | = lv_scheme | |
| PROTOKOLL | = lv_protokoll | |
| IMPORTING | ||
| ENTRY_FOUND | = lv_entry_found | |
| . " PRODUCT_LIST_EXCLUSION | ||
ABAP code using 7.40 inline data declarations to call FM PRODUCT_LIST_EXCLUSION
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 KAPPL FROM T683 INTO @DATA(ld_application). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_date). | ||||
| "SELECT single VERLI FROM TVAK INTO @DATA(ld_verli). | ||||
| "SELECT single KALSM FROM T683 INTO @DATA(ld_scheme). | ||||
| DATA(ld_protokoll) | = ' '. | |||
Search for further information about these or an SAP related objects