SAP GET_PARAMETER Function Module for









GET_PARAMETER is a standard get parameter 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 get parameter FM, simply by entering the name GET_PARAMETER into the relevant SAP transaction such as SE37 or SE38.

Function Group: SMON
Program Name: SAPLSMON
Main Program: SAPLSMON
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function GET_PARAMETER 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 'GET_PARAMETER'"
EXPORTING
* LOCAL_REMOTE = 'LOCAL' "
* LOGICAL_DESTINATION = "

IMPORTING
FP_RECCOUNT = "
FP_DETAILSREQI = "
FP_DETAILSMODE = "
FP_LASTCOLLWRT = "
FP_LASTCOLLINT = "
FP_NORMCOLLINT = "
FP_TRACELEVEL = "
FP_IDLEINTERVAL = "
FP_IDLEAFTER = "
FP_MAXRECORDS = "
FP_RECORDSIZE = "
FP_ACTIVEFLAG = "
FP_INTERVAL = "
FP_COLLVERSION = "
FP_COLLSINCE = "
FP_OPSYSTEM = "
FP_DETAILSCOLL = "

EXCEPTIONS
INTERNAL_ERROR_ADRESS_FAILED = 1 COMMUNICATION_FAILURE = 10 INTERNAL_ERROR_DIFFERENT_FIELD = 2 INTERNAL_ERROR_NO_NEW_LINE = 3 COLLECTOR_NOT_RUNNING = 4 SHARED_MEMORY_NOT_AVAILABLE = 5 COLLECTOR_BUSY = 6 VERSION_CONFLICT = 7 NO_NETWORK_COLLECTOR_RUNNING = 8 SYSTEM_FAILURE = 9
.



IMPORTING Parameters details for GET_PARAMETER

LOCAL_REMOTE -

Data type: DEF_PAR_FU-LOC_REMOTE
Default: 'LOCAL'
Optional: Yes
Call by Reference: No ( called with pass by value option)

LOGICAL_DESTINATION -

Data type: RFCDES-RFCDEST
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for GET_PARAMETER

FP_RECCOUNT -

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

FP_DETAILSREQI -

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

FP_DETAILSMODE -

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

FP_LASTCOLLWRT -

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

FP_LASTCOLLINT -

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

FP_NORMCOLLINT -

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

FP_TRACELEVEL -

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

FP_IDLEINTERVAL -

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

FP_IDLEAFTER -

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

FP_MAXRECORDS -

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

FP_RECORDSIZE -

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

FP_ACTIVEFLAG -

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

FP_INTERVAL -

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

FP_COLLVERSION -

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

FP_COLLSINCE -

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

FP_OPSYSTEM -

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

FP_DETAILSCOLL -

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

EXCEPTIONS details

INTERNAL_ERROR_ADRESS_FAILED -

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

COMMUNICATION_FAILURE -

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

INTERNAL_ERROR_DIFFERENT_FIELD -

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

INTERNAL_ERROR_NO_NEW_LINE -

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

COLLECTOR_NOT_RUNNING -

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

SHARED_MEMORY_NOT_AVAILABLE -

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

COLLECTOR_BUSY -

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

VERSION_CONFLICT -

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

NO_NETWORK_COLLECTOR_RUNNING -

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

SYSTEM_FAILURE -

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

Copy and paste ABAP code example for GET_PARAMETER 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_fp_reccount  TYPE DEF_PAR_FU-RECCOUNT, "   
lv_local_remote  TYPE DEF_PAR_FU-LOC_REMOTE, "   'LOCAL'
lv_internal_error_adress_failed  TYPE DEF_PAR_FU, "   
lv_fp_detailsreqi  TYPE DEF_PAR_FU-DETAILSREQ, "   
lv_communication_failure  TYPE DEF_PAR_FU, "   
lv_fp_detailsmode  TYPE DEF_PAR_FU-DETAILSMOD, "   
lv_fp_lastcollwrt  TYPE DEF_PAR_FU-LASTCOLLWR, "   
lv_fp_lastcollint  TYPE DEF_PAR_FU-LASTCOLLIN, "   
lv_fp_normcollint  TYPE DEF_PAR_FU-NORMCOLLIN, "   
lv_fp_tracelevel  TYPE DEF_PAR_FU-TRACELEVEL, "   
lv_fp_idleinterval  TYPE DEF_PAR_FU-IDLEINTERV, "   
lv_fp_idleafter  TYPE DEF_PAR_FU-IDLEAFTER, "   
lv_fp_maxrecords  TYPE DEF_PAR_FU-MAXRECORDS, "   
lv_logical_destination  TYPE RFCDES-RFCDEST, "   
lv_internal_error_different_field  TYPE RFCDES, "   
lv_fp_recordsize  TYPE DEF_PAR_FU-RECORDSIZE, "   
lv_internal_error_no_new_line  TYPE DEF_PAR_FU, "   
lv_fp_activeflag  TYPE DEF_PAR_FU-ACTIVEFLAG, "   
lv_collector_not_running  TYPE DEF_PAR_FU, "   
lv_fp_interval  TYPE DEF_PAR_FU-INTERVAL, "   
lv_shared_memory_not_available  TYPE DEF_PAR_FU, "   
lv_collector_busy  TYPE DEF_PAR_FU, "   
lv_fp_collversion  TYPE DEF_PAR_FU-COLLVERS, "   
lv_fp_collsince  TYPE DEF_PAR_FU-COLLSINCE, "   
lv_version_conflict  TYPE DEF_PAR_FU, "   
lv_fp_opsystem  TYPE DEF_PAR_FU-OPSYSTEM, "   
lv_no_network_collector_running  TYPE DEF_PAR_FU, "   
lv_fp_detailscoll  TYPE DEF_PAR_FU-DETAILSCOL, "   
lv_system_failure  TYPE DEF_PAR_FU. "   

  CALL FUNCTION 'GET_PARAMETER'  "
    EXPORTING
         LOCAL_REMOTE = lv_local_remote
         LOGICAL_DESTINATION = lv_logical_destination
    IMPORTING
         FP_RECCOUNT = lv_fp_reccount
         FP_DETAILSREQI = lv_fp_detailsreqi
         FP_DETAILSMODE = lv_fp_detailsmode
         FP_LASTCOLLWRT = lv_fp_lastcollwrt
         FP_LASTCOLLINT = lv_fp_lastcollint
         FP_NORMCOLLINT = lv_fp_normcollint
         FP_TRACELEVEL = lv_fp_tracelevel
         FP_IDLEINTERVAL = lv_fp_idleinterval
         FP_IDLEAFTER = lv_fp_idleafter
         FP_MAXRECORDS = lv_fp_maxrecords
         FP_RECORDSIZE = lv_fp_recordsize
         FP_ACTIVEFLAG = lv_fp_activeflag
         FP_INTERVAL = lv_fp_interval
         FP_COLLVERSION = lv_fp_collversion
         FP_COLLSINCE = lv_fp_collsince
         FP_OPSYSTEM = lv_fp_opsystem
         FP_DETAILSCOLL = lv_fp_detailscoll
    EXCEPTIONS
        INTERNAL_ERROR_ADRESS_FAILED = 1
        COMMUNICATION_FAILURE = 10
        INTERNAL_ERROR_DIFFERENT_FIELD = 2
        INTERNAL_ERROR_NO_NEW_LINE = 3
        COLLECTOR_NOT_RUNNING = 4
        SHARED_MEMORY_NOT_AVAILABLE = 5
        COLLECTOR_BUSY = 6
        VERSION_CONFLICT = 7
        NO_NETWORK_COLLECTOR_RUNNING = 8
        SYSTEM_FAILURE = 9
. " GET_PARAMETER




ABAP code using 7.40 inline data declarations to call FM GET_PARAMETER

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 RECCOUNT FROM DEF_PAR_FU INTO @DATA(ld_fp_reccount).
 
"SELECT single LOC_REMOTE FROM DEF_PAR_FU INTO @DATA(ld_local_remote).
DATA(ld_local_remote) = 'LOCAL'.
 
 
"SELECT single DETAILSREQ FROM DEF_PAR_FU INTO @DATA(ld_fp_detailsreqi).
 
 
"SELECT single DETAILSMOD FROM DEF_PAR_FU INTO @DATA(ld_fp_detailsmode).
 
"SELECT single LASTCOLLWR FROM DEF_PAR_FU INTO @DATA(ld_fp_lastcollwrt).
 
"SELECT single LASTCOLLIN FROM DEF_PAR_FU INTO @DATA(ld_fp_lastcollint).
 
"SELECT single NORMCOLLIN FROM DEF_PAR_FU INTO @DATA(ld_fp_normcollint).
 
"SELECT single TRACELEVEL FROM DEF_PAR_FU INTO @DATA(ld_fp_tracelevel).
 
"SELECT single IDLEINTERV FROM DEF_PAR_FU INTO @DATA(ld_fp_idleinterval).
 
"SELECT single IDLEAFTER FROM DEF_PAR_FU INTO @DATA(ld_fp_idleafter).
 
"SELECT single MAXRECORDS FROM DEF_PAR_FU INTO @DATA(ld_fp_maxrecords).
 
"SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_logical_destination).
 
 
"SELECT single RECORDSIZE FROM DEF_PAR_FU INTO @DATA(ld_fp_recordsize).
 
 
"SELECT single ACTIVEFLAG FROM DEF_PAR_FU INTO @DATA(ld_fp_activeflag).
 
 
"SELECT single INTERVAL FROM DEF_PAR_FU INTO @DATA(ld_fp_interval).
 
 
 
"SELECT single COLLVERS FROM DEF_PAR_FU INTO @DATA(ld_fp_collversion).
 
"SELECT single COLLSINCE FROM DEF_PAR_FU INTO @DATA(ld_fp_collsince).
 
 
"SELECT single OPSYSTEM FROM DEF_PAR_FU INTO @DATA(ld_fp_opsystem).
 
 
"SELECT single DETAILSCOL FROM DEF_PAR_FU INTO @DATA(ld_fp_detailscoll).
 
 


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!