SAP SLS_LORD_GET_VALUES_SAREA Function Module for NOTRANSL: Wertehilfe für Vertriebsbereich
SLS_LORD_GET_VALUES_SAREA is a standard sls lord get values sarea 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: Wertehilfe für Vertriebsbereich 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 sls lord get values sarea FM, simply by entering the name SLS_LORD_GET_VALUES_SAREA into the relevant SAP transaction such as SE37 or SE38.
Function Group: SLS_LORD_SHLP
Program Name: SAPLSLS_LORD_SHLP
Main Program: SAPLSLS_LORD_SHLP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function SLS_LORD_GET_VALUES_SAREA 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 'SLS_LORD_GET_VALUES_SAREA'"NOTRANSL: Wertehilfe für Vertriebsbereich.
EXPORTING
* IV_MAX_ENTRIES = GC_IMAX "
* IV_VKORG = "Sales Organization
* IV_VTWEG = "Distribution Channel
* IV_SPART = "Division
* IV_AUART = "Sales Document Type
* IV_KUNNR = "Debtor Number 1
* IV_AUTH_ACT = "Component of Version Number
IMPORTING
ET_SALESAREA = "Table Type for Structure TDS_SALESAREA
EF_MORE_ENTRIES = "Checkbox
EXCEPTIONS
EXC_AUART_NOT_EXISTING = 1 EXC_KUNNR_NOT_EXISTING = 2 EXC_NO_REFCUST_FOUND = 3
IMPORTING Parameters details for SLS_LORD_GET_VALUES_SAREA
IV_MAX_ENTRIES -
Data type: IDefault: GC_IMAX
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_VKORG - Sales Organization
Data type: VKORGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_VTWEG - Distribution Channel
Data type: VTWEGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_SPART - Division
Data type: SPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_AUART - Sales Document Type
Data type: AUARTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_KUNNR - Debtor Number 1
Data type: KUNNROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_AUTH_ACT - Component of Version Number
Data type: CHAR2Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SLS_LORD_GET_VALUES_SAREA
ET_SALESAREA - Table Type for Structure TDS_SALESAREA
Data type: TDT_SALESAREAOptional: No
Call by Reference: No ( called with pass by value option)
EF_MORE_ENTRIES - Checkbox
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
EXC_AUART_NOT_EXISTING -
Data type:Optional: No
Call by Reference: Yes
EXC_KUNNR_NOT_EXISTING -
Data type:Optional: No
Call by Reference: Yes
EXC_NO_REFCUST_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SLS_LORD_GET_VALUES_SAREA 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_et_salesarea | TYPE TDT_SALESAREA, " | |||
lv_iv_max_entries | TYPE I, " GC_IMAX | |||
lv_exc_auart_not_existing | TYPE I, " | |||
lv_iv_vkorg | TYPE VKORG, " | |||
lv_ef_more_entries | TYPE XFELD, " | |||
lv_exc_kunnr_not_existing | TYPE XFELD, " | |||
lv_iv_vtweg | TYPE VTWEG, " | |||
lv_exc_no_refcust_found | TYPE VTWEG, " | |||
lv_iv_spart | TYPE SPART, " | |||
lv_iv_auart | TYPE AUART, " | |||
lv_iv_kunnr | TYPE KUNNR, " | |||
lv_iv_auth_act | TYPE CHAR2. " |
  CALL FUNCTION 'SLS_LORD_GET_VALUES_SAREA' "NOTRANSL: Wertehilfe für Vertriebsbereich |
EXPORTING | ||
IV_MAX_ENTRIES | = lv_iv_max_entries | |
IV_VKORG | = lv_iv_vkorg | |
IV_VTWEG | = lv_iv_vtweg | |
IV_SPART | = lv_iv_spart | |
IV_AUART | = lv_iv_auart | |
IV_KUNNR | = lv_iv_kunnr | |
IV_AUTH_ACT | = lv_iv_auth_act | |
IMPORTING | ||
ET_SALESAREA | = lv_et_salesarea | |
EF_MORE_ENTRIES | = lv_ef_more_entries | |
EXCEPTIONS | ||
EXC_AUART_NOT_EXISTING = 1 | ||
EXC_KUNNR_NOT_EXISTING = 2 | ||
EXC_NO_REFCUST_FOUND = 3 | ||
. " SLS_LORD_GET_VALUES_SAREA |
ABAP code using 7.40 inline data declarations to call FM SLS_LORD_GET_VALUES_SAREA
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_iv_max_entries) | = GC_IMAX. | |||
Search for further information about these or an SAP related objects