SAP ERPSLS_CUSTOMERS Function Module for NOTRANSL: Kundenstamm: Selektion (Vertriebs- und Adressdaten)









ERPSLS_CUSTOMERS is a standard erpsls customers 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: Kundenstamm: Selektion (Vertriebs- und Adressdaten) 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 erpsls customers FM, simply by entering the name ERPSLS_CUSTOMERS into the relevant SAP transaction such as SE37 or SE38.

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



Function ERPSLS_CUSTOMERS 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 'ERPSLS_CUSTOMERS'"NOTRANSL: Kundenstamm: Selektion (Vertriebs- und Adressdaten)
EXPORTING
* IT_RG_KUNNR = "Range Table: CHAR10
* IT_RG_MCOD1 = "Range Table: CHAR25
* IT_RG_MCOD3 = "Range Table: CHAR25
* IT_RG_VKORG = "Range Table: CHAR4
* IT_RG_VTWEG = "Range Table: CHAR2
* IT_RG_SPART = "Range Table: CHAR2
* IT_RG_VKBUR = "Range Table: CHAR4
* IT_RG_VKGRP = "Range Table: CHAR3
* IF_WOORG = ' ' "Single-character Indicator
* IT_RG_AUFSDZ = "Range Table: CHAR2
* IT_RG_AUFSDV = "Range Table: CHAR2
* IT_RG_NAME = "Range Table: CHAR35
* IT_RG_LIFSDZ = "Range Table: CHAR2
* IT_RG_LIFSDV = "Range Table: CHAR2
* IT_RG_FAKSDZ = "Range Table: CHAR2
* IT_RG_FAKSDV = "Range Table: CHAR2
* IF_LOEVMZ = ' ' "Central Deletion Indicator for Master Record
* IF_LOEVMV = ' ' "Deletion flag for customer (sales level)
* IF_NODEL = ' ' "Single-Character Indicator
* IF_NO_LOEVMZ = ' ' "Single-Character Indicator
* IF_NO_LOEVMV = ' ' "Single-Character Indicator
* IF_ANY_DEL = ' ' "Single-Character Indicator
* IT_RG_STREET = "Range Table: CHAR60
* IT_RG_STREET_NO = "Range Table: CHAR10
* IT_RG_PCODE = "Range Table: CHAR10
* IT_RG_CITY = "Range Table: CHAR35
* IT_RG_REGION = "Range Table: CHAR3
* IT_RG_COUNTRY = "Range Table: CHAR4
* IT_RG_SORTL = "Range Table: CHAR10

IMPORTING
ET_CUSTOMERS2 = "Customer Master Data: Sales Area and Address Data
ET_AUTH_CUST2 = "BALMI, Sorted Acc.to Type, ID, Number, Var 1 -4, ALTEXT

TABLES
ET_CUSTOMERS = "Generated Table for View SDCUSTVIEW
.



IMPORTING Parameters details for ERPSLS_CUSTOMERS

IT_RG_KUNNR - Range Table: CHAR10

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

IT_RG_MCOD1 - Range Table: CHAR25

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

IT_RG_MCOD3 - Range Table: CHAR25

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

IT_RG_VKORG - Range Table: CHAR4

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

IT_RG_VTWEG - Range Table: CHAR2

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

IT_RG_SPART - Range Table: CHAR2

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

IT_RG_VKBUR - Range Table: CHAR4

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

IT_RG_VKGRP - Range Table: CHAR3

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

IF_WOORG - Single-character Indicator

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

IT_RG_AUFSDZ - Range Table: CHAR2

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

IT_RG_AUFSDV - Range Table: CHAR2

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

IT_RG_NAME - Range Table: CHAR35

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

IT_RG_LIFSDZ - Range Table: CHAR2

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

IT_RG_LIFSDV - Range Table: CHAR2

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

IT_RG_FAKSDZ - Range Table: CHAR2

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

IT_RG_FAKSDV - Range Table: CHAR2

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

IF_LOEVMZ - Central Deletion Indicator for Master Record

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

IF_LOEVMV - Deletion flag for customer (sales level)

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

IF_NODEL - Single-Character Indicator

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

IF_NO_LOEVMZ - Single-Character Indicator

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

IF_NO_LOEVMV - Single-Character Indicator

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

IF_ANY_DEL - Single-Character Indicator

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

IT_RG_STREET - Range Table: CHAR60

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

IT_RG_STREET_NO - Range Table: CHAR10

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

IT_RG_PCODE - Range Table: CHAR10

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

IT_RG_CITY - Range Table: CHAR35

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

IT_RG_REGION - Range Table: CHAR3

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

IT_RG_COUNTRY - Range Table: CHAR4

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

IT_RG_SORTL - Range Table: CHAR10

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

EXPORTING Parameters details for ERPSLS_CUSTOMERS

ET_CUSTOMERS2 - Customer Master Data: Sales Area and Address Data

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

ET_AUTH_CUST2 - BALMI, Sorted Acc.to Type, ID, Number, Var 1 -4, ALTEXT

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

TABLES Parameters details for ERPSLS_CUSTOMERS

ET_CUSTOMERS - Generated Table for View SDCUSTVIEW

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

Copy and paste ABAP code example for ERPSLS_CUSTOMERS 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_it_rg_kunnr  TYPE TRG_CHAR10, "   
lt_et_customers  TYPE STANDARD TABLE OF SDCUSTVIEW, "   
lv_et_customers2  TYPE TDT_CUSTOMER, "   
lv_it_rg_mcod1  TYPE TRG_CHAR25, "   
lv_it_rg_mcod3  TYPE TRG_CHAR25, "   
lv_it_rg_vkorg  TYPE TRG_CHAR4, "   
lv_it_rg_vtweg  TYPE TRG_CHAR2, "   
lv_it_rg_spart  TYPE TRG_CHAR2, "   
lv_it_rg_vkbur  TYPE TRG_CHAR4, "   
lv_it_rg_vkgrp  TYPE TRG_CHAR3, "   
lv_if_woorg  TYPE CHAR1, "   SPACE
lv_it_rg_aufsdz  TYPE TRG_CHAR2, "   
lv_it_rg_aufsdv  TYPE TRG_CHAR2, "   
lv_it_rg_name  TYPE TRG_CHAR35, "   
lv_et_auth_cust2  TYPE TDT_BALMI_SORTED, "   
lv_it_rg_lifsdz  TYPE TRG_CHAR2, "   
lv_it_rg_lifsdv  TYPE TRG_CHAR2, "   
lv_it_rg_faksdz  TYPE TRG_CHAR2, "   
lv_it_rg_faksdv  TYPE TRG_CHAR2, "   
lv_if_loevmz  TYPE CHAR1, "   SPACE
lv_if_loevmv  TYPE CHAR1, "   SPACE
lv_if_nodel  TYPE CHAR1, "   SPACE
lv_if_no_loevmz  TYPE CHAR1, "   SPACE
lv_if_no_loevmv  TYPE CHAR1, "   SPACE
lv_if_any_del  TYPE CHAR1, "   SPACE
lv_it_rg_street  TYPE TRG_CHAR60, "   
lv_it_rg_street_no  TYPE TRG_CHAR10, "   
lv_it_rg_pcode  TYPE TRG_CHAR10, "   
lv_it_rg_city  TYPE TRG_CHAR35, "   
lv_it_rg_region  TYPE TRG_CHAR3, "   
lv_it_rg_country  TYPE TRG_CHAR3, "   
lv_it_rg_sortl  TYPE TRG_CHAR10. "   

  CALL FUNCTION 'ERPSLS_CUSTOMERS'  "NOTRANSL: Kundenstamm: Selektion (Vertriebs- und Adressdaten)
    EXPORTING
         IT_RG_KUNNR = lv_it_rg_kunnr
         IT_RG_MCOD1 = lv_it_rg_mcod1
         IT_RG_MCOD3 = lv_it_rg_mcod3
         IT_RG_VKORG = lv_it_rg_vkorg
         IT_RG_VTWEG = lv_it_rg_vtweg
         IT_RG_SPART = lv_it_rg_spart
         IT_RG_VKBUR = lv_it_rg_vkbur
         IT_RG_VKGRP = lv_it_rg_vkgrp
         IF_WOORG = lv_if_woorg
         IT_RG_AUFSDZ = lv_it_rg_aufsdz
         IT_RG_AUFSDV = lv_it_rg_aufsdv
         IT_RG_NAME = lv_it_rg_name
         IT_RG_LIFSDZ = lv_it_rg_lifsdz
         IT_RG_LIFSDV = lv_it_rg_lifsdv
         IT_RG_FAKSDZ = lv_it_rg_faksdz
         IT_RG_FAKSDV = lv_it_rg_faksdv
         IF_LOEVMZ = lv_if_loevmz
         IF_LOEVMV = lv_if_loevmv
         IF_NODEL = lv_if_nodel
         IF_NO_LOEVMZ = lv_if_no_loevmz
         IF_NO_LOEVMV = lv_if_no_loevmv
         IF_ANY_DEL = lv_if_any_del
         IT_RG_STREET = lv_it_rg_street
         IT_RG_STREET_NO = lv_it_rg_street_no
         IT_RG_PCODE = lv_it_rg_pcode
         IT_RG_CITY = lv_it_rg_city
         IT_RG_REGION = lv_it_rg_region
         IT_RG_COUNTRY = lv_it_rg_country
         IT_RG_SORTL = lv_it_rg_sortl
    IMPORTING
         ET_CUSTOMERS2 = lv_et_customers2
         ET_AUTH_CUST2 = lv_et_auth_cust2
    TABLES
         ET_CUSTOMERS = lt_et_customers
. " ERPSLS_CUSTOMERS




ABAP code using 7.40 inline data declarations to call FM ERPSLS_CUSTOMERS

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.

 
 
 
 
 
 
 
 
 
 
DATA(ld_if_woorg) = ' '.
 
 
 
 
 
 
 
 
 
DATA(ld_if_loevmz) = ' '.
 
DATA(ld_if_loevmv) = ' '.
 
DATA(ld_if_nodel) = ' '.
 
DATA(ld_if_no_loevmz) = ' '.
 
DATA(ld_if_no_loevmv) = ' '.
 
DATA(ld_if_any_del) = ' '.
 
 
 
 
 
 
 
 


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!