SAP CHECK_SALES_INTERVAL Function Module for NOTRANSL: Check sales interval









CHECK_SALES_INTERVAL is a standard check sales interval 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: Check sales interval 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 check sales interval FM, simply by entering the name CHECK_SALES_INTERVAL into the relevant SAP transaction such as SE37 or SE38.

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



Function CHECK_SALES_INTERVAL 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 'CHECK_SALES_INTERVAL'"NOTRANSL: Check sales interval
EXPORTING
PI_ARTICLE = "Material Number
* PI_NOT_CHECK_SALES_PER = "New Input Values
* PI_MARM_READ = "New Input Values
* PI_DATAB = '00000000' "Valid-From Date
* PI_DATBI = '00000000' "Valid To Date
* PI_FILIA = ' ' "Plant
* PI_VRKME = ' ' "Sales unit
* PI_VKORG = ' ' "Sales organization for intercompany billing
* PI_VTWEG = ' ' "Distribution channel for intercompany billing
* PI_LOCNR = ' ' "Customer Number
* BUFFER_WLK2_FILIA_ENTRIES = ' ' "Indicator: reset buffer for Material_Pre_Fetch

TABLES
* PET_BEW_KOND = "Extended WLK1 structure for POS interface

EXCEPTIONS
VRKME_NOT_FOUND = 1 VKDAT_NOT_FOUND = 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 CHECK_SALES_INTERVAL

PI_ARTICLE - Material Number

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

PI_NOT_CHECK_SALES_PER - New Input Values

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

PI_MARM_READ - New Input Values

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

PI_DATAB - Valid-From Date

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

PI_DATBI - Valid To Date

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

PI_FILIA - Plant

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

PI_VRKME - Sales unit

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

PI_VKORG - Sales organization for intercompany billing

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

PI_VTWEG - Distribution channel for intercompany billing

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

PI_LOCNR - Customer Number

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

BUFFER_WLK2_FILIA_ENTRIES - Indicator: reset buffer for Material_Pre_Fetch

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

TABLES Parameters details for CHECK_SALES_INTERVAL

PET_BEW_KOND - Extended WLK1 structure for POS interface

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

EXCEPTIONS details

VRKME_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

VKDAT_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CHECK_SALES_INTERVAL 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_pi_article  TYPE MARA-MATNR, "   
lt_pet_bew_kond  TYPE STANDARD TABLE OF WPWLK1, "   
lv_vrkme_not_found  TYPE WPWLK1, "   
lv_pi_not_check_sales_per  TYPE XFLAG, "   
lv_pi_marm_read  TYPE XFLAG, "   
lv_pi_datab  TYPE WLK1-DATAB, "   '00000000'
lv_vkdat_not_found  TYPE WLK1, "   
lv_pi_datbi  TYPE WLK1-DATBI, "   '00000000'
lv_pi_filia  TYPE T001W-WERKS, "   SPACE
lv_pi_vrkme  TYPE WPWLK1-VRKME, "   SPACE
lv_pi_vkorg  TYPE T001W-VKORG, "   SPACE
lv_pi_vtweg  TYPE T001W-VTWEG, "   SPACE
lv_pi_locnr  TYPE WRF1-LOCNR, "   SPACE
lv_buffer_wlk2_filia_entries  TYPE MTCOM-KZRFB. "   SPACE

  CALL FUNCTION 'CHECK_SALES_INTERVAL'  "NOTRANSL: Check sales interval
    EXPORTING
         PI_ARTICLE = lv_pi_article
         PI_NOT_CHECK_SALES_PER = lv_pi_not_check_sales_per
         PI_MARM_READ = lv_pi_marm_read
         PI_DATAB = lv_pi_datab
         PI_DATBI = lv_pi_datbi
         PI_FILIA = lv_pi_filia
         PI_VRKME = lv_pi_vrkme
         PI_VKORG = lv_pi_vkorg
         PI_VTWEG = lv_pi_vtweg
         PI_LOCNR = lv_pi_locnr
         BUFFER_WLK2_FILIA_ENTRIES = lv_buffer_wlk2_filia_entries
    TABLES
         PET_BEW_KOND = lt_pet_bew_kond
    EXCEPTIONS
        VRKME_NOT_FOUND = 1
        VKDAT_NOT_FOUND = 2
. " CHECK_SALES_INTERVAL




ABAP code using 7.40 inline data declarations to call FM CHECK_SALES_INTERVAL

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 MATNR FROM MARA INTO @DATA(ld_pi_article).
 
 
 
 
 
"SELECT single DATAB FROM WLK1 INTO @DATA(ld_pi_datab).
DATA(ld_pi_datab) = '00000000'.
 
 
"SELECT single DATBI FROM WLK1 INTO @DATA(ld_pi_datbi).
DATA(ld_pi_datbi) = '00000000'.
 
"SELECT single WERKS FROM T001W INTO @DATA(ld_pi_filia).
DATA(ld_pi_filia) = ' '.
 
"SELECT single VRKME FROM WPWLK1 INTO @DATA(ld_pi_vrkme).
DATA(ld_pi_vrkme) = ' '.
 
"SELECT single VKORG FROM T001W INTO @DATA(ld_pi_vkorg).
DATA(ld_pi_vkorg) = ' '.
 
"SELECT single VTWEG FROM T001W INTO @DATA(ld_pi_vtweg).
DATA(ld_pi_vtweg) = ' '.
 
"SELECT single LOCNR FROM WRF1 INTO @DATA(ld_pi_locnr).
DATA(ld_pi_locnr) = ' '.
 
"SELECT single KZRFB FROM MTCOM INTO @DATA(ld_buffer_wlk2_filia_entries).
DATA(ld_buffer_wlk2_filia_entries) = ' '.
 


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!