SAP SVRS_DISPLAY_DATA Function Module for ALV gird to display any data









SVRS_DISPLAY_DATA is a standard svrs display data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for ALV gird to display any data 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 svrs display data FM, simply by entering the name SVRS_DISPLAY_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function SVRS_DISPLAY_DATA 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 'SVRS_DISPLAY_DATA'"ALV gird to display any data
EXPORTING
* IT_NOTE = "Note table type
* IT_NOTE_CI = "Table type of note and ci
* IT_TCI_LIST = "Table Name
IV_WINDOW_TITLE = "
* IV_HOTSPOT = "Version Management: Versioning Mode
IV_SAPSYS = "Version management: Origin ID
* IV_MSG_LOG = "

IMPORTING
VALUE = "Export the selected value

EXCEPTIONS
ERROR = 1 MULTIPLE_REQUEST = 2 EMPTY = 3
.



IMPORTING Parameters details for SVRS_DISPLAY_DATA

IT_NOTE - Note table type

Data type: TT_VRS_NOTE
Optional: Yes
Call by Reference: Yes

IT_NOTE_CI - Table type of note and ci

Data type: TT_VRS_NOTE_CI
Optional: Yes
Call by Reference: Yes

IT_TCI_LIST - Table Name

Data type: TT_TCI_LIST
Optional: Yes
Call by Reference: Yes

IV_WINDOW_TITLE -

Data type: C
Optional: No
Call by Reference: Yes

IV_HOTSPOT - Version Management: Versioning Mode

Data type: SVRS_BOOL
Optional: Yes
Call by Reference: Yes

IV_SAPSYS - Version management: Origin ID

Data type: VERSORIGIN
Optional: No
Call by Reference: Yes

IV_MSG_LOG -

Data type: C
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SVRS_DISPLAY_DATA

VALUE - Export the selected value

Data type: C
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ERROR -

Data type:
Optional: No
Call by Reference: Yes

MULTIPLE_REQUEST -

Data type:
Optional: No
Call by Reference: Yes

EMPTY -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SVRS_DISPLAY_DATA 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_error  TYPE STRING, "   
lv_value  TYPE C, "   
lv_it_note  TYPE TT_VRS_NOTE, "   
lv_it_note_ci  TYPE TT_VRS_NOTE_CI, "   
lv_multiple_request  TYPE TT_VRS_NOTE_CI, "   
lv_empty  TYPE TT_VRS_NOTE_CI, "   
lv_it_tci_list  TYPE TT_TCI_LIST, "   
lv_iv_window_title  TYPE C, "   
lv_iv_hotspot  TYPE SVRS_BOOL, "   
lv_iv_sapsys  TYPE VERSORIGIN, "   
lv_iv_msg_log  TYPE C. "   

  CALL FUNCTION 'SVRS_DISPLAY_DATA'  "ALV gird to display any data
    EXPORTING
         IT_NOTE = lv_it_note
         IT_NOTE_CI = lv_it_note_ci
         IT_TCI_LIST = lv_it_tci_list
         IV_WINDOW_TITLE = lv_iv_window_title
         IV_HOTSPOT = lv_iv_hotspot
         IV_SAPSYS = lv_iv_sapsys
         IV_MSG_LOG = lv_iv_msg_log
    IMPORTING
         VALUE = lv_value
    EXCEPTIONS
        ERROR = 1
        MULTIPLE_REQUEST = 2
        EMPTY = 3
. " SVRS_DISPLAY_DATA




ABAP code using 7.40 inline data declarations to call FM SVRS_DISPLAY_DATA

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.

 
 
 
 
 
 
 
 
 
 
 


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!