SAP TH_ARFC_SET_QUOTAS Function Module for
TH_ARFC_SET_QUOTAS is a standard th arfc set quotas SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 th arfc set quotas FM, simply by entering the name TH_ARFC_SET_QUOTAS into the relevant SAP transaction such as SE37 or SE38.
Function Group: THFB
Program Name: SAPLTHFB
Main Program: SAPLTHFB
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function TH_ARFC_SET_QUOTAS 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 'TH_ARFC_SET_QUOTAS'".
EXPORTING
* USE_QUOTAS = -1 "
* MAX_QUEUE = -1 "
* MAX_LOGIN = -1 "
* MAX_OWN_LOGIN = -1 "
* MAX_OWN_USED_WP = -1 "
* MIN_WAIT_DIA_WP = -1 "
* MAX_COMM_ENTRIES = -1 "
* MAX_WAIT_TIME = -1 "
IMPORTING
RET_USE_QUOTAS = "
RET_MAX_QUEUE = "
RET_MAX_LOGIN = "
RET_MAX_OWN_LOGIN = "
RET_MAX_OWN_USED_WP = "
RET_MIN_WAIT_DIA_WP = "
RET_MAX_COMM_ENTRIES = "
RET_MAX_WAIT_TIME = "
EXCEPTIONS
NOT_IN_SAME_SYSTEM = 1
IMPORTING Parameters details for TH_ARFC_SET_QUOTAS
USE_QUOTAS -
Data type: SY-TABIXDefault: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)
MAX_QUEUE -
Data type: SY-TABIXDefault: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)
MAX_LOGIN -
Data type: SY-TABIXDefault: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)
MAX_OWN_LOGIN -
Data type: SY-TABIXDefault: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)
MAX_OWN_USED_WP -
Data type: SY-TABIXDefault: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)
MIN_WAIT_DIA_WP -
Data type: SY-TABIXDefault: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)
MAX_COMM_ENTRIES -
Data type: SY-TABIXDefault: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)
MAX_WAIT_TIME -
Data type: SY-TABIXDefault: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TH_ARFC_SET_QUOTAS
RET_USE_QUOTAS -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
RET_MAX_QUEUE -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
RET_MAX_LOGIN -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
RET_MAX_OWN_LOGIN -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
RET_MAX_OWN_USED_WP -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
RET_MIN_WAIT_DIA_WP -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
RET_MAX_COMM_ENTRIES -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
RET_MAX_WAIT_TIME -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_IN_SAME_SYSTEM -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for TH_ARFC_SET_QUOTAS 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_use_quotas | TYPE SY-TABIX, " -1 | |||
lv_ret_use_quotas | TYPE SY-TABIX, " | |||
lv_not_in_same_system | TYPE SY, " | |||
lv_max_queue | TYPE SY-TABIX, " -1 | |||
lv_ret_max_queue | TYPE SY-TABIX, " | |||
lv_max_login | TYPE SY-TABIX, " -1 | |||
lv_ret_max_login | TYPE SY-TABIX, " | |||
lv_max_own_login | TYPE SY-TABIX, " -1 | |||
lv_ret_max_own_login | TYPE SY-TABIX, " | |||
lv_max_own_used_wp | TYPE SY-TABIX, " -1 | |||
lv_ret_max_own_used_wp | TYPE SY-TABIX, " | |||
lv_min_wait_dia_wp | TYPE SY-TABIX, " -1 | |||
lv_ret_min_wait_dia_wp | TYPE SY-TABIX, " | |||
lv_max_comm_entries | TYPE SY-TABIX, " -1 | |||
lv_ret_max_comm_entries | TYPE SY-TABIX, " | |||
lv_max_wait_time | TYPE SY-TABIX, " -1 | |||
lv_ret_max_wait_time | TYPE SY-TABIX. " |
  CALL FUNCTION 'TH_ARFC_SET_QUOTAS' " |
EXPORTING | ||
USE_QUOTAS | = lv_use_quotas | |
MAX_QUEUE | = lv_max_queue | |
MAX_LOGIN | = lv_max_login | |
MAX_OWN_LOGIN | = lv_max_own_login | |
MAX_OWN_USED_WP | = lv_max_own_used_wp | |
MIN_WAIT_DIA_WP | = lv_min_wait_dia_wp | |
MAX_COMM_ENTRIES | = lv_max_comm_entries | |
MAX_WAIT_TIME | = lv_max_wait_time | |
IMPORTING | ||
RET_USE_QUOTAS | = lv_ret_use_quotas | |
RET_MAX_QUEUE | = lv_ret_max_queue | |
RET_MAX_LOGIN | = lv_ret_max_login | |
RET_MAX_OWN_LOGIN | = lv_ret_max_own_login | |
RET_MAX_OWN_USED_WP | = lv_ret_max_own_used_wp | |
RET_MIN_WAIT_DIA_WP | = lv_ret_min_wait_dia_wp | |
RET_MAX_COMM_ENTRIES | = lv_ret_max_comm_entries | |
RET_MAX_WAIT_TIME | = lv_ret_max_wait_time | |
EXCEPTIONS | ||
NOT_IN_SAME_SYSTEM = 1 | ||
. " TH_ARFC_SET_QUOTAS |
ABAP code using 7.40 inline data declarations to call FM TH_ARFC_SET_QUOTAS
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 TABIX FROM SY INTO @DATA(ld_use_quotas). | ||||
DATA(ld_use_quotas) | = -1. | |||
"SELECT single TABIX FROM SY INTO @DATA(ld_ret_use_quotas). | ||||
"SELECT single TABIX FROM SY INTO @DATA(ld_max_queue). | ||||
DATA(ld_max_queue) | = -1. | |||
"SELECT single TABIX FROM SY INTO @DATA(ld_ret_max_queue). | ||||
"SELECT single TABIX FROM SY INTO @DATA(ld_max_login). | ||||
DATA(ld_max_login) | = -1. | |||
"SELECT single TABIX FROM SY INTO @DATA(ld_ret_max_login). | ||||
"SELECT single TABIX FROM SY INTO @DATA(ld_max_own_login). | ||||
DATA(ld_max_own_login) | = -1. | |||
"SELECT single TABIX FROM SY INTO @DATA(ld_ret_max_own_login). | ||||
"SELECT single TABIX FROM SY INTO @DATA(ld_max_own_used_wp). | ||||
DATA(ld_max_own_used_wp) | = -1. | |||
"SELECT single TABIX FROM SY INTO @DATA(ld_ret_max_own_used_wp). | ||||
"SELECT single TABIX FROM SY INTO @DATA(ld_min_wait_dia_wp). | ||||
DATA(ld_min_wait_dia_wp) | = -1. | |||
"SELECT single TABIX FROM SY INTO @DATA(ld_ret_min_wait_dia_wp). | ||||
"SELECT single TABIX FROM SY INTO @DATA(ld_max_comm_entries). | ||||
DATA(ld_max_comm_entries) | = -1. | |||
"SELECT single TABIX FROM SY INTO @DATA(ld_ret_max_comm_entries). | ||||
"SELECT single TABIX FROM SY INTO @DATA(ld_max_wait_time). | ||||
DATA(ld_max_wait_time) | = -1. | |||
"SELECT single TABIX FROM SY INTO @DATA(ld_ret_max_wait_time). | ||||
Search for further information about these or an SAP related objects