SAP LISTING_GET_ARTICLE Function Module for NOTRANSL: Lesen aller Listungskonditionen zu einem oder mehreren Artikeln









LISTING_GET_ARTICLE is a standard listing get article 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: Lesen aller Listungskonditionen zu einem oder mehreren Artikeln 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 listing get article FM, simply by entering the name LISTING_GET_ARTICLE into the relevant SAP transaction such as SE37 or SE38.

Function Group: WSOT
Program Name: SAPLWSOT
Main Program: SAPLWSOT
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function LISTING_GET_ARTICLE 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 'LISTING_GET_ARTICLE'"NOTRANSL: Lesen aller Listungskonditionen zu einem oder mehreren Artikeln
EXPORTING
DATE_BEGIN = "
DATE_END = "
* GET_DISTR_CHANNELS = ' ' "
* LISTED_STATUS = '0' "
* ALL_LISTED_STATUS = 'X' "
* LIST_LOCAL_ASSORTMENTS = ' ' "List Local Assortments Also
* MULTIPLE_ASSIGNMENT = ' ' "
* NO_PROMOTION = ' ' "

TABLES
ARTICLES = "
LISTINGS = "
* DISTRIB_CHANNELS = "

EXCEPTIONS
NO_LISTING = 1 NO_LISTING_IN_TIME = 2
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLWSOT_001 User Exit for Controling Listing Condition Maintenance

IMPORTING Parameters details for LISTING_GET_ARTICLE

DATE_BEGIN -

Data type: WLK1-DATAB
Optional: No
Call by Reference: No ( called with pass by value option)

DATE_END -

Data type: WLK1-DATBI
Optional: No
Call by Reference: No ( called with pass by value option)

GET_DISTR_CHANNELS -

Data type: WTDY-TYP01
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LISTED_STATUS -

Data type: WTDY-TYP01
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ALL_LISTED_STATUS -

Data type: WTDY-TYP01
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

LIST_LOCAL_ASSORTMENTS - List Local Assortments Also

Data type: WTDY-TYP01
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MULTIPLE_ASSIGNMENT -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_PROMOTION -

Data type: WTDY-TYP01
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for LISTING_GET_ARTICLE

ARTICLES -

Data type: WINT_MATNR
Optional: No
Call by Reference: No ( called with pass by value option)

LISTINGS -

Data type: WINT_LISTG
Optional: No
Call by Reference: No ( called with pass by value option)

DISTRIB_CHANNELS -

Data type: WINT_MVKE3
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_LISTING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_LISTING_IN_TIME -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for LISTING_GET_ARTICLE 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_articles  TYPE STANDARD TABLE OF WINT_MATNR, "   
lv_date_begin  TYPE WLK1-DATAB, "   
lv_no_listing  TYPE WLK1, "   
lv_date_end  TYPE WLK1-DATBI, "   
lt_listings  TYPE STANDARD TABLE OF WINT_LISTG, "   
lv_no_listing_in_time  TYPE WINT_LISTG, "   
lt_distrib_channels  TYPE STANDARD TABLE OF WINT_MVKE3, "   
lv_get_distr_channels  TYPE WTDY-TYP01, "   SPACE
lv_listed_status  TYPE WTDY-TYP01, "   '0'
lv_all_listed_status  TYPE WTDY-TYP01, "   'X'
lv_list_local_assortments  TYPE WTDY-TYP01, "   SPACE
lv_multiple_assignment  TYPE CHAR1, "   SPACE
lv_no_promotion  TYPE WTDY-TYP01. "   SPACE

  CALL FUNCTION 'LISTING_GET_ARTICLE'  "NOTRANSL: Lesen aller Listungskonditionen zu einem oder mehreren Artikeln
    EXPORTING
         DATE_BEGIN = lv_date_begin
         DATE_END = lv_date_end
         GET_DISTR_CHANNELS = lv_get_distr_channels
         LISTED_STATUS = lv_listed_status
         ALL_LISTED_STATUS = lv_all_listed_status
         LIST_LOCAL_ASSORTMENTS = lv_list_local_assortments
         MULTIPLE_ASSIGNMENT = lv_multiple_assignment
         NO_PROMOTION = lv_no_promotion
    TABLES
         ARTICLES = lt_articles
         LISTINGS = lt_listings
         DISTRIB_CHANNELS = lt_distrib_channels
    EXCEPTIONS
        NO_LISTING = 1
        NO_LISTING_IN_TIME = 2
. " LISTING_GET_ARTICLE




ABAP code using 7.40 inline data declarations to call FM LISTING_GET_ARTICLE

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 DATAB FROM WLK1 INTO @DATA(ld_date_begin).
 
 
"SELECT single DATBI FROM WLK1 INTO @DATA(ld_date_end).
 
 
 
 
"SELECT single TYP01 FROM WTDY INTO @DATA(ld_get_distr_channels).
DATA(ld_get_distr_channels) = ' '.
 
"SELECT single TYP01 FROM WTDY INTO @DATA(ld_listed_status).
DATA(ld_listed_status) = '0'.
 
"SELECT single TYP01 FROM WTDY INTO @DATA(ld_all_listed_status).
DATA(ld_all_listed_status) = 'X'.
 
"SELECT single TYP01 FROM WTDY INTO @DATA(ld_list_local_assortments).
DATA(ld_list_local_assortments) = ' '.
 
DATA(ld_multiple_assignment) = ' '.
 
"SELECT single TYP01 FROM WTDY INTO @DATA(ld_no_promotion).
DATA(ld_no_promotion) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!