SAP EASYDMS_GET_PREFS Function Module for Liest Default-Anzeigeoptionen
EASYDMS_GET_PREFS is a standard easydms get prefs SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Liest Default-Anzeigeoptionen 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 easydms get prefs FM, simply by entering the name EASYDMS_GET_PREFS into the relevant SAP transaction such as SE37 or SE38.
Function Group: EASYDMS
Program Name: SAPLEASYDMS
Main Program: SAPLEASYDMS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function EASYDMS_GET_PREFS 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 'EASYDMS_GET_PREFS'"Liest Default-Anzeigeoptionen.
EXPORTING
* USERNAME = SY-UNAME "Änderer
IMPORTING
FILTERNAME = "Name des Filters im Easy Document Management
GLOBAL_FILTER = "Flag, ob Filter global ist
LAYOUTNAME = "Layoutname im Easy Document Management
GLOBAL_LAYOUT = "Flag, ob Layout global ist
FILTER_ACTIVE = "Flag, ob Filter aktiv ist
LAYOUT_DEFAULT = "
FILTER_DEFAULT = "CAD Indicator
IMPORTING Parameters details for EASYDMS_GET_PREFS
USERNAME - Änderer
Data type: EDMS_PREFS-USERNAMEDefault: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EASYDMS_GET_PREFS
FILTERNAME - Name des Filters im Easy Document Management
Data type: EDMS_FILTER-FILTERNAMEOptional: No
Call by Reference: No ( called with pass by value option)
GLOBAL_FILTER - Flag, ob Filter global ist
Data type: DRAW-CADKZOptional: No
Call by Reference: No ( called with pass by value option)
LAYOUTNAME - Layoutname im Easy Document Management
Data type: EDMS_LAYOUT-LAYOUTNAMEOptional: No
Call by Reference: No ( called with pass by value option)
GLOBAL_LAYOUT - Flag, ob Layout global ist
Data type: DRAW-CADKZOptional: No
Call by Reference: No ( called with pass by value option)
FILTER_ACTIVE - Flag, ob Filter aktiv ist
Data type: DRAW-CADKZOptional: No
Call by Reference: No ( called with pass by value option)
LAYOUT_DEFAULT -
Data type: DRAW-CADKZOptional: No
Call by Reference: No ( called with pass by value option)
FILTER_DEFAULT - CAD Indicator
Data type: DRAW-CADKZOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EASYDMS_GET_PREFS 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_username | TYPE EDMS_PREFS-USERNAME, " SY-UNAME | |||
| lv_filtername | TYPE EDMS_FILTER-FILTERNAME, " | |||
| lv_global_filter | TYPE DRAW-CADKZ, " | |||
| lv_layoutname | TYPE EDMS_LAYOUT-LAYOUTNAME, " | |||
| lv_global_layout | TYPE DRAW-CADKZ, " | |||
| lv_filter_active | TYPE DRAW-CADKZ, " | |||
| lv_layout_default | TYPE DRAW-CADKZ, " | |||
| lv_filter_default | TYPE DRAW-CADKZ. " |
|   CALL FUNCTION 'EASYDMS_GET_PREFS' "Liest Default-Anzeigeoptionen |
| EXPORTING | ||
| USERNAME | = lv_username | |
| IMPORTING | ||
| FILTERNAME | = lv_filtername | |
| GLOBAL_FILTER | = lv_global_filter | |
| LAYOUTNAME | = lv_layoutname | |
| GLOBAL_LAYOUT | = lv_global_layout | |
| FILTER_ACTIVE | = lv_filter_active | |
| LAYOUT_DEFAULT | = lv_layout_default | |
| FILTER_DEFAULT | = lv_filter_default | |
| . " EASYDMS_GET_PREFS | ||
ABAP code using 7.40 inline data declarations to call FM EASYDMS_GET_PREFS
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 USERNAME FROM EDMS_PREFS INTO @DATA(ld_username). | ||||
| DATA(ld_username) | = SY-UNAME. | |||
| "SELECT single FILTERNAME FROM EDMS_FILTER INTO @DATA(ld_filtername). | ||||
| "SELECT single CADKZ FROM DRAW INTO @DATA(ld_global_filter). | ||||
| "SELECT single LAYOUTNAME FROM EDMS_LAYOUT INTO @DATA(ld_layoutname). | ||||
| "SELECT single CADKZ FROM DRAW INTO @DATA(ld_global_layout). | ||||
| "SELECT single CADKZ FROM DRAW INTO @DATA(ld_filter_active). | ||||
| "SELECT single CADKZ FROM DRAW INTO @DATA(ld_layout_default). | ||||
| "SELECT single CADKZ FROM DRAW INTO @DATA(ld_filter_default). | ||||
Search for further information about these or an SAP related objects