SAP RSAR_GET_RFC_PARMS Function Module for Display of a general popup for entry of various values









RSAR_GET_RFC_PARMS is a standard rsar get rfc parms SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display of a general popup for entry of various values 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 rsar get rfc parms FM, simply by entering the name RSAR_GET_RFC_PARMS into the relevant SAP transaction such as SE37 or SE38.

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



Function RSAR_GET_RFC_PARMS 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 'RSAR_GET_RFC_PARMS'"Display of a general popup for entry of various values
IMPORTING
E_SERVER = "
E_SYSNR = "
E_LANGU = "
E_MANDT = "
E_USER = "
E_PASSWD = "

EXCEPTIONS
CANCELLED = 1
.



EXPORTING Parameters details for RSAR_GET_RFC_PARMS

E_SERVER -

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

E_SYSNR -

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

E_LANGU -

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

E_MANDT -

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

E_USER -

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

E_PASSWD -

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

EXCEPTIONS details

CANCELLED -

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

Copy and paste ABAP code example for RSAR_GET_RFC_PARMS 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_e_server  TYPE RFCDISPLAY-RFCHOST, "   
lv_cancelled  TYPE RFCDISPLAY, "   
lv_e_sysnr  TYPE RFCDISPLAY-RFCSERVICE, "   
lv_e_langu  TYPE RFCDISPLAY-RFCLANG, "   
lv_e_mandt  TYPE RFCDISPLAY-RFCCLIENT, "   
lv_e_user  TYPE RFCDISPLAY-RFCUSER, "   
lv_e_passwd  TYPE RFCDISPLAY-RFCAUTH. "   

  CALL FUNCTION 'RSAR_GET_RFC_PARMS'  "Display of a general popup for entry of various values
    IMPORTING
         E_SERVER = lv_e_server
         E_SYSNR = lv_e_sysnr
         E_LANGU = lv_e_langu
         E_MANDT = lv_e_mandt
         E_USER = lv_e_user
         E_PASSWD = lv_e_passwd
    EXCEPTIONS
        CANCELLED = 1
. " RSAR_GET_RFC_PARMS




ABAP code using 7.40 inline data declarations to call FM RSAR_GET_RFC_PARMS

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 RFCHOST FROM RFCDISPLAY INTO @DATA(ld_e_server).
 
 
"SELECT single RFCSERVICE FROM RFCDISPLAY INTO @DATA(ld_e_sysnr).
 
"SELECT single RFCLANG FROM RFCDISPLAY INTO @DATA(ld_e_langu).
 
"SELECT single RFCCLIENT FROM RFCDISPLAY INTO @DATA(ld_e_mandt).
 
"SELECT single RFCUSER FROM RFCDISPLAY INTO @DATA(ld_e_user).
 
"SELECT single RFCAUTH FROM RFCDISPLAY INTO @DATA(ld_e_passwd).
 


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!