SAP FRE_ART_SITE_LISTING_CHECK Function Module for check listing condition









FRE_ART_SITE_LISTING_CHECK is a standard fre art site listing check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for check listing condition 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 fre art site listing check FM, simply by entering the name FRE_ART_SITE_LISTING_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function FRE_ART_SITE_LISTING_CHECK 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 'FRE_ART_SITE_LISTING_CHECK'"check listing condition
EXPORTING
IP_DATE_FROM = "Valid-from date
IP_DATE_TO = "Valid to date

TABLES
IT_ARTICLE = "List of material numbers and Un.
* ET_LISTED_ART_SITE = "Listing conditions for material/Un - transfer of result
* ET_PROMOTION = "Listing conditions for material/Un - transfer of result

EXCEPTIONS
NO_LISTING = 1 NO_LISTING_IN_TIME = 2 NO_ARTICLE = 3 ERROR_LISTING_GET_ARTICLE = 4
.



IMPORTING Parameters details for FRE_ART_SITE_LISTING_CHECK

IP_DATE_FROM - Valid-from date

Data type: WLK1-DATAB
Optional: No
Call by Reference: Yes

IP_DATE_TO - Valid to date

Data type: WLK1-DATBI
Optional: No
Call by Reference: Yes

TABLES Parameters details for FRE_ART_SITE_LISTING_CHECK

IT_ARTICLE - List of material numbers and Un.

Data type: WINT_MATNR
Optional: No
Call by Reference: Yes

ET_LISTED_ART_SITE - Listing conditions for material/Un - transfer of result

Data type: WINT_LISTG
Optional: Yes
Call by Reference: Yes

ET_PROMOTION - Listing conditions for material/Un - transfer of result

Data type: WINT_LISTG
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_LISTING - no articles are listed

Data type:
Optional: No
Call by Reference: Yes

NO_LISTING_IN_TIME - no article are listed from sy-date until 31.12.9999

Data type:
Optional: No
Call by Reference: Yes

NO_ARTICLE - no article in IT_ARTICLE_SITE

Data type:
Optional: No
Call by Reference: Yes

ERROR_LISTING_GET_ARTICLE - undefined error in function LISTING_GET_ARTICLE

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FRE_ART_SITE_LISTING_CHECK 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_it_article  TYPE STANDARD TABLE OF WINT_MATNR, "   
lv_no_listing  TYPE WINT_MATNR, "   
lv_ip_date_from  TYPE WLK1-DATAB, "   
lv_ip_date_to  TYPE WLK1-DATBI, "   
lt_et_listed_art_site  TYPE STANDARD TABLE OF WINT_LISTG, "   
lv_no_listing_in_time  TYPE WINT_LISTG, "   
lv_no_article  TYPE WINT_LISTG, "   
lt_et_promotion  TYPE STANDARD TABLE OF WINT_LISTG, "   
lv_error_listing_get_article  TYPE WINT_LISTG. "   

  CALL FUNCTION 'FRE_ART_SITE_LISTING_CHECK'  "check listing condition
    EXPORTING
         IP_DATE_FROM = lv_ip_date_from
         IP_DATE_TO = lv_ip_date_to
    TABLES
         IT_ARTICLE = lt_it_article
         ET_LISTED_ART_SITE = lt_et_listed_art_site
         ET_PROMOTION = lt_et_promotion
    EXCEPTIONS
        NO_LISTING = 1
        NO_LISTING_IN_TIME = 2
        NO_ARTICLE = 3
        ERROR_LISTING_GET_ARTICLE = 4
. " FRE_ART_SITE_LISTING_CHECK




ABAP code using 7.40 inline data declarations to call FM FRE_ART_SITE_LISTING_CHECK

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_ip_date_from).
 
"SELECT single DATBI FROM WLK1 INTO @DATA(ld_ip_date_to).
 
 
 
 
 
 


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!