SAP RZL_GET_INSTANCE_SERVICES Function Module for









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

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



Function RZL_GET_INSTANCE_SERVICES 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 'RZL_GET_INSTANCE_SERVICES'"
EXPORTING
* SRVNAME = ' ' "Appl.server name

IMPORTING
SRVDIA = "X = Dialog
SRVVB = "X = Update
SRVV2 = "X = V2 update
SRVBTC = "X = Background
SRVENQ = "X = Enqueue
SRVSPO = "X = Spool
SRVGW = "X = SNA-Gateway
SERVICES = "
.



IMPORTING Parameters details for RZL_GET_INSTANCE_SERVICES

SRVNAME - Appl.server name

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

EXPORTING Parameters details for RZL_GET_INSTANCE_SERVICES

SRVDIA - X = Dialog

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

SRVVB - X = Update

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

SRVV2 - X = V2 update

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

SRVBTC - X = Background

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

SRVENQ - X = Enqueue

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

SRVSPO - X = Spool

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

SRVGW - X = SNA-Gateway

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

SERVICES -

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

Copy and paste ABAP code example for RZL_GET_INSTANCE_SERVICES 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_srvdia  TYPE SPFID-SRVDIA, "   
lv_srvname  TYPE SPFID-APSERVER, "   SPACE
lv_srvvb  TYPE SPFID-SRVVB, "   
lv_srvv2  TYPE SPFID-SRVV2, "   
lv_srvbtc  TYPE SPFID-SRVBTC, "   
lv_srvenq  TYPE SPFID-SRVENQ, "   
lv_srvspo  TYPE SPFID-SRVSPO, "   
lv_srvgw  TYPE SPFID-SRVGW, "   
lv_services  TYPE SPFID-CMPON. "   

  CALL FUNCTION 'RZL_GET_INSTANCE_SERVICES'  "
    EXPORTING
         SRVNAME = lv_srvname
    IMPORTING
         SRVDIA = lv_srvdia
         SRVVB = lv_srvvb
         SRVV2 = lv_srvv2
         SRVBTC = lv_srvbtc
         SRVENQ = lv_srvenq
         SRVSPO = lv_srvspo
         SRVGW = lv_srvgw
         SERVICES = lv_services
. " RZL_GET_INSTANCE_SERVICES




ABAP code using 7.40 inline data declarations to call FM RZL_GET_INSTANCE_SERVICES

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 SRVDIA FROM SPFID INTO @DATA(ld_srvdia).
 
"SELECT single APSERVER FROM SPFID INTO @DATA(ld_srvname).
DATA(ld_srvname) = ' '.
 
"SELECT single SRVVB FROM SPFID INTO @DATA(ld_srvvb).
 
"SELECT single SRVV2 FROM SPFID INTO @DATA(ld_srvv2).
 
"SELECT single SRVBTC FROM SPFID INTO @DATA(ld_srvbtc).
 
"SELECT single SRVENQ FROM SPFID INTO @DATA(ld_srvenq).
 
"SELECT single SRVSPO FROM SPFID INTO @DATA(ld_srvspo).
 
"SELECT single SRVGW FROM SPFID INTO @DATA(ld_srvgw).
 
"SELECT single CMPON FROM SPFID INTO @DATA(ld_services).
 


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!