SAP PRODUCT_LIST_EXCLUSION_RETAIL Function Module for NOTRANSL: Verbindung Retail- und SD-Konditionen für den Kundenauftrag
PRODUCT_LIST_EXCLUSION_RETAIL is a standard product list exclusion retail SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Verbindung Retail- und SD-Konditionen für den Kundenauftrag 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 retail FM, simply by entering the name PRODUCT_LIST_EXCLUSION_RETAIL into the relevant SAP transaction such as SE37 or SE38.
Function Group: WSO6
Program Name: SAPLWSO6
Main Program: SAPLWSO6
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function PRODUCT_LIST_EXCLUSION_RETAIL 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_RETAIL'"NOTRANSL: Verbindung Retail- und SD-Konditionen für den Kundenauftrag.
EXPORTING
DATE = "Access date
* DATBI = "Valid-To Date
HEADER_COMMUNICATION = "Header data from order
ITEM_COMMUNICATION = "Item data from order
* US_ERROR = 'E' "
* PROMOTION = "Promotion
* PROMOTION_THEME = "Promotion theme
* DETAILS = ' ' "System logging, reason for being listed or not
* CHECK_DURING_BATCH = ' ' "
* DATAB = "Valid-From Date
IMPORTING
ASORT_FOR_CUSTOMER = "
TABLES
* DETAILS_TABLE = "Detail log
EXCEPTIONS
NO_LISTING = 1 NO_LISTING_IN_TIME = 2 EXISTING_EXCLUSION_LISTING = 3 NO_COMPLETE_LISTING_IN_TIME = 4 NO_LISTING_CONDITONS_CHECK = 5
IMPORTING Parameters details for PRODUCT_LIST_EXCLUSION_RETAIL
DATE - Access date
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
DATBI - Valid-To Date
Data type: DATBIOptional: Yes
Call by Reference: No ( called with pass by value option)
HEADER_COMMUNICATION - Header data from order
Data type: KOMKGOptional: No
Call by Reference: No ( called with pass by value option)
ITEM_COMMUNICATION - Item data from order
Data type: KOMPGOptional: No
Call by Reference: No ( called with pass by value option)
US_ERROR -
Data type:Default: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PROMOTION - Promotion
Data type: WLK1-AKTIOOptional: Yes
Call by Reference: No ( called with pass by value option)
PROMOTION_THEME - Promotion theme
Data type: WLK1-THEMAOptional: Yes
Call by Reference: No ( called with pass by value option)
DETAILS - System logging, reason for being listed or not
Data type: WTDY-TYP01Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_DURING_BATCH -
Data type: WTDY-TYP01Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATAB - Valid-From Date
Data type: DATABOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PRODUCT_LIST_EXCLUSION_RETAIL
ASORT_FOR_CUSTOMER -
Data type: WRS1-ASORTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PRODUCT_LIST_EXCLUSION_RETAIL
DETAILS_TABLE - Detail log
Data type: WSCOROptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_LISTING - No listing
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_LISTING_IN_TIME - No listing at this time
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXISTING_EXCLUSION_LISTING - Exclusion listing (at this time)
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_COMPLETE_LISTING_IN_TIME - No complete listing (???)
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_LISTING_CONDITONS_CHECK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PRODUCT_LIST_EXCLUSION_RETAIL 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_date | TYPE SY-DATUM, " | |||
lv_no_listing | TYPE SY, " | |||
lt_details_table | TYPE STANDARD TABLE OF WSCOR, " | |||
lv_asort_for_customer | TYPE WRS1-ASORT, " | |||
lv_datbi | TYPE DATBI, " | |||
lv_no_listing_in_time | TYPE DATBI, " | |||
lv_header_communication | TYPE KOMKG, " | |||
lv_item_communication | TYPE KOMPG, " | |||
lv_existing_exclusion_listing | TYPE KOMPG, " | |||
lv_us_error | TYPE KOMPG, " 'E' | |||
lv_no_complete_listing_in_time | TYPE KOMPG, " | |||
lv_promotion | TYPE WLK1-AKTIO, " | |||
lv_no_listing_conditons_check | TYPE WLK1, " | |||
lv_promotion_theme | TYPE WLK1-THEMA, " | |||
lv_details | TYPE WTDY-TYP01, " SPACE | |||
lv_check_during_batch | TYPE WTDY-TYP01, " SPACE | |||
lv_datab | TYPE DATAB. " |
  CALL FUNCTION 'PRODUCT_LIST_EXCLUSION_RETAIL' "NOTRANSL: Verbindung Retail- und SD-Konditionen für den Kundenauftrag |
EXPORTING | ||
DATE | = lv_date | |
DATBI | = lv_datbi | |
HEADER_COMMUNICATION | = lv_header_communication | |
ITEM_COMMUNICATION | = lv_item_communication | |
US_ERROR | = lv_us_error | |
PROMOTION | = lv_promotion | |
PROMOTION_THEME | = lv_promotion_theme | |
DETAILS | = lv_details | |
CHECK_DURING_BATCH | = lv_check_during_batch | |
DATAB | = lv_datab | |
IMPORTING | ||
ASORT_FOR_CUSTOMER | = lv_asort_for_customer | |
TABLES | ||
DETAILS_TABLE | = lt_details_table | |
EXCEPTIONS | ||
NO_LISTING = 1 | ||
NO_LISTING_IN_TIME = 2 | ||
EXISTING_EXCLUSION_LISTING = 3 | ||
NO_COMPLETE_LISTING_IN_TIME = 4 | ||
NO_LISTING_CONDITONS_CHECK = 5 | ||
. " PRODUCT_LIST_EXCLUSION_RETAIL |
ABAP code using 7.40 inline data declarations to call FM PRODUCT_LIST_EXCLUSION_RETAIL
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 DATUM FROM SY INTO @DATA(ld_date). | ||||
"SELECT single ASORT FROM WRS1 INTO @DATA(ld_asort_for_customer). | ||||
DATA(ld_us_error) | = 'E'. | |||
"SELECT single AKTIO FROM WLK1 INTO @DATA(ld_promotion). | ||||
"SELECT single THEMA FROM WLK1 INTO @DATA(ld_promotion_theme). | ||||
"SELECT single TYP01 FROM WTDY INTO @DATA(ld_details). | ||||
DATA(ld_details) | = ' '. | |||
"SELECT single TYP01 FROM WTDY INTO @DATA(ld_check_during_batch). | ||||
DATA(ld_check_during_batch) | = ' '. | |||
Search for further information about these or an SAP related objects