diff --git a/src/ui/controllers/zcl_dbbr_sqlcons_settings_sc.clas.abap b/src/ui/controllers/zcl_dbbr_sqlcons_settings_sc.clas.abap
new file mode 100644
index 0000000..3fde3fe
--- /dev/null
+++ b/src/ui/controllers/zcl_dbbr_sqlcons_settings_sc.clas.abap
@@ -0,0 +1,118 @@
+"! Controller for SQL Console settings
+CLASS zcl_dbbr_sqlcons_settings_sc DEFINITION
+ PUBLIC
+ CREATE PUBLIC.
+
+ PUBLIC SECTION.
+ INTERFACES zif_uitb_screen_controller.
+
+ ALIASES show FOR zif_uitb_screen_controller~call_screen.
+ ALIASES was_saved FOR zif_uitb_screen_controller~was_not_cancelled.
+ ALIASES pbo FOR zif_uitb_screen_controller~pbo.
+ ALIASES cancel FOR zif_uitb_screen_controller~cancel.
+ ALIASES pai FOR zif_uitb_screen_controller~handle_user_command.
+
+ "! CONSTRUCTOR
+ METHODS constructor.
+
+ PROTECTED SECTION.
+
+ PRIVATE SECTION.
+ ALIASES get_report_id FOR zif_uitb_screen_controller~get_report_id.
+ ALIASES get_screen_id FOR zif_uitb_screen_controller~get_screen_id.
+ ALIASES mf_first_call FOR zif_uitb_screen_controller~mf_first_call.
+
+ CONSTANTS c_r_sqlcon_settings_controller TYPE string VALUE 'GR_SQLCONS_SETTINGS_CONTROLLER' ##NO_TEXT.
+ CONSTANTS c_add_entity_to_field_name TYPE fieldname VALUE 'P_ENFN' ##NO_TEXT.
+
+ DATA ms_sqlcons_settings TYPE zdbbr_sqlcons_settings_a.
+
+ DATA:
+ BEGIN OF ms_sqlcons_settings_refs,
+ add_entity_to_field_name TYPE REF TO zdbbr_sqlcons_settings_a-add_entity_to_field_name,
+ END OF ms_sqlcons_settings_refs.
+ DATA mf_data_changed TYPE abap_bool.
+
+ METHODS transfer_ui_data
+ IMPORTING
+ if_from_screen TYPE abap_bool OPTIONAL
+ if_to_screen TYPE abap_bool OPTIONAL.
+
+ METHODS save_settings.
+ENDCLASS.
+
+
+CLASS zcl_dbbr_sqlcons_settings_sc IMPLEMENTATION.
+ METHOD constructor.
+ " initialize the global data cache
+ DATA(lr_data_cache) = zcl_uitb_data_cache=>get_instance( get_report_id( ) ).
+ ms_sqlcons_settings_refs-add_entity_to_field_name = CAST #( lr_data_cache->get_data_ref(
+ CONV #( c_add_entity_to_field_name ) ) ).
+ ENDMETHOD.
+
+ METHOD save_settings.
+ zcl_dbbr_usersettings_factory=>set_sql_console_settings(
+ VALUE #( add_entity_to_field_name = ms_sqlcons_settings-add_entity_to_field_name ) ).
+ ENDMETHOD.
+
+ METHOD transfer_ui_data.
+ IF if_from_screen = abap_true.
+ ms_sqlcons_settings-add_entity_to_field_name = ms_sqlcons_settings_refs-add_entity_to_field_name->*.
+ ELSEIF if_to_screen = abap_true.
+ ms_sqlcons_settings = zcl_dbbr_usersettings_factory=>get_sql_console_settings( )-data.
+ ms_sqlcons_settings_refs-add_entity_to_field_name->* = ms_sqlcons_settings-add_entity_to_field_name.
+ ENDIF.
+ ENDMETHOD.
+
+ METHOD zif_uitb_screen_controller~call_screen.
+ transfer_ui_data( if_to_screen = abap_true ).
+ mf_first_call = abap_true.
+
+ zcl_uitb_screen_util=>call_screen( iv_screen_id = get_screen_id( )
+ iv_report_id = get_report_id( )
+ if_selscreen = abap_true
+ it_object_map = VALUE #( ( variable_name = c_r_sqlcon_settings_controller
+ global_ref = me ) )
+ iv_start_column = 10
+ iv_start_line = 2 ).
+ ENDMETHOD.
+
+ METHOD zif_uitb_screen_controller~cancel.
+ zcl_dbbr_screen_helper=>leave_screen( ).
+ ENDMETHOD.
+
+ METHOD zif_uitb_screen_controller~get_report_id.
+ result = zif_dbbr_c_report_id=>user_settings.
+ ENDMETHOD.
+
+ METHOD zif_uitb_screen_controller~get_screen_id.
+ result = zif_dbbr_screen_ids=>c_sqlcons_settings.
+ ENDMETHOD.
+
+ METHOD zif_uitb_screen_controller~handle_user_command.
+ CHECK sy-dynnr = zif_dbbr_screen_ids=>c_sqlcons_settings.
+
+ DATA(lv_function) = cv_function_code.
+ CASE lv_function.
+
+ WHEN 'SAVE'.
+ transfer_ui_data( if_from_screen = abap_true ).
+ save_settings( ).
+ MESSAGE s105(zdbbr_info).
+ zcl_dbbr_screen_helper=>leave_screen( ).
+ ENDCASE.
+ ENDMETHOD.
+
+ METHOD zif_uitb_screen_controller~pbo.
+ zif_uitb_screen_controller~set_status( ).
+ ENDMETHOD.
+
+ METHOD zif_uitb_screen_controller~set_status.
+ zcl_uitb_screen_util=>set_selscreen_status( iv_status = '0200'
+ iv_repid = get_report_id( ) ).
+ ENDMETHOD.
+
+ METHOD zif_uitb_screen_controller~was_not_cancelled.
+ rf_not_cancelled = mf_data_changed.
+ ENDMETHOD.
+ENDCLASS.
diff --git a/src/ui/controllers/zcl_dbbr_sqlcons_settings_sc.clas.xml b/src/ui/controllers/zcl_dbbr_sqlcons_settings_sc.clas.xml
new file mode 100644
index 0000000..fb987ad
--- /dev/null
+++ b/src/ui/controllers/zcl_dbbr_sqlcons_settings_sc.clas.xml
@@ -0,0 +1,43 @@
+
+
+
+
+
+ ZCL_DBBR_SQLCONS_SETTINGS_SC
+ E
+ Controller for SQL Console settings
+ 1
+ X
+ X
+ X
+
+
+ -
+ I
+ 001
+ Entry screen
+ 23
+
+ -
+ I
+ 002
+ ALV List Output
+ 25
+
+ -
+ I
+ 003
+ Favorites
+ 19
+
+
+
+
+ CONSTRUCTOR
+ E
+ CONSTRUCTOR
+
+
+
+
+
diff --git a/src/ui/controls/zcl_dbbr_sqle_sb_entity_tree.clas.abap b/src/ui/controls/zcl_dbbr_sqle_sb_entity_tree.clas.abap
index 175c99d..c554132 100644
--- a/src/ui/controls/zcl_dbbr_sqle_sb_entity_tree.clas.abap
+++ b/src/ui/controls/zcl_dbbr_sqle_sb_entity_tree.clas.abap
@@ -504,11 +504,14 @@ CLASS zcl_dbbr_sqle_sb_entity_tree IMPLEMENTATION.
RETURN.
ENDIF.
+ DATA(lv_add_entity_to_field_name) = zcl_dbbr_usersettings_factory=>get_sql_console_settings( )-add_entity_to_field_name.
DATA(lv_node_count) = lines( lt_nodes_info ).
LOOP AT lt_nodes_info ASSIGNING FIELD-SYMBOL().
lv_sep = COND #( WHEN sy-tabix < lv_node_count THEN ',' ).
- lv_content = ->fieldname.
+ lv_content = COND #( WHEN ->node_type = c_node_type-field AND lv_add_entity_to_field_name = abap_true
+ THEN |{ ->entity_id }~{ ->fieldname }|
+ ELSE ->fieldname ).
IF ->node_type = c_node_type-parameter.
lv_content = |{ lv_content } = '{ ->param_default_value }'|.
diff --git a/src/ui/zdbbr_user_settings.fugr.lzdbbr_user_settingss01.abap b/src/ui/zdbbr_user_settings.fugr.lzdbbr_user_settingss01.abap
index 05cb936..a606277 100644
--- a/src/ui/zdbbr_user_settings.fugr.lzdbbr_user_settingss01.abap
+++ b/src/ui/zdbbr_user_settings.fugr.lzdbbr_user_settingss01.abap
@@ -10,6 +10,9 @@ AT SELECTION-SCREEN.
WHEN zif_dbbr_screen_ids=>c_show_eb_settings.
gr_eb_settings_view->pai( CHANGING cv_function_code = sscrfields-ucomm ).
+
+ WHEN zif_dbbr_screen_ids=>c_sqlcons_settings.
+ gr_sqlcons_settings_controller->pai( CHANGING cv_function_code = sscrfields-ucomm ).
ENDCASE.
AT SELECTION-SCREEN ON EXIT-COMMAND.
@@ -20,6 +23,10 @@ AT SELECTION-SCREEN ON EXIT-COMMAND.
WHEN zif_dbbr_screen_ids=>c_show_eb_settings.
gr_eb_settings_view->cancel( ).
+
+ WHEN zif_dbbr_screen_ids=>c_sqlcons_settings.
+ gr_sqlcons_settings_controller->cancel( ).
+
ENDCASE.
AT SELECTION-SCREEN OUTPUT.
@@ -48,4 +55,8 @@ AT SELECTION-SCREEN OUTPUT.
WHEN zif_dbbr_screen_ids=>c_show_eb_settings.
gr_eb_settings_view->pbo( ).
+
+ WHEN zif_dbbr_screen_ids=>c_sqlcons_settings.
+ gr_sqlcons_settings_controller->pbo( ).
+
ENDCASE.
diff --git a/src/ui/zdbbr_user_settings.fugr.lzdbbr_user_settingstop.abap b/src/ui/zdbbr_user_settings.fugr.lzdbbr_user_settingstop.abap
index 0117a38..a3167d4 100644
--- a/src/ui/zdbbr_user_settings.fugr.lzdbbr_user_settingstop.abap
+++ b/src/ui/zdbbr_user_settings.fugr.lzdbbr_user_settingstop.abap
@@ -8,6 +8,7 @@ TABLES sscrfields.
" global data definitions
DATA gr_user_settings_controller TYPE REF TO zcl_dbbr_user_settings_sc.
DATA gr_eb_settings_view TYPE REF TO zcl_dbbr_eb_settings_view.
+DATA gr_sqlcons_settings_controller TYPE REF TO zcl_dbbr_sqlcons_settings_sc.
SELECTION-SCREEN BEGIN OF SCREEN 100 TITLE TEXT-s01 AS WINDOW.
SELECTION-SCREEN BEGIN OF TABBED BLOCK setting_type FOR 15 LINES.
@@ -378,3 +379,14 @@ SELECTION-SCREEN BEGIN OF SCREEN 200 TITLE TEXT-s02 AS WINDOW.
SELECTION-SCREEN END OF SCREEN 200.
" -----------------------------------------------------
+
+" ... Screen for user settings of sql console
+" -----------------------------------------------------
+SELECTION-SCREEN BEGIN OF SCREEN 300 TITLE TEXT-s03 AS WINDOW.
+
+ SELECTION-SCREEN BEGIN OF BLOCK sqlcons_settings WITH FRAME TITLE TEXT-b10.
+ PARAMETERS p_enfn TYPE abap_bool AS CHECKBOX.
+ SELECTION-SCREEN END OF BLOCK sqlcons_settings.
+
+SELECTION-SCREEN END OF SCREEN 300.
+" -----------------------------------------------------
diff --git a/src/ui/zdbbr_user_settings.fugr.saplzdbbr_user_settings.xml b/src/ui/zdbbr_user_settings.fugr.saplzdbbr_user_settings.xml
index 8e20aa7..5abcf2d 100644
--- a/src/ui/zdbbr_user_settings.fugr.saplzdbbr_user_settings.xml
+++ b/src/ui/zdbbr_user_settings.fugr.saplzdbbr_user_settings.xml
@@ -98,6 +98,12 @@
Virtual Elements
17
+ -
+ I
+ B10
+ SQL Console Settings
+ 25
+
-
I
S01
@@ -110,6 +116,12 @@
DB Browser - Central Search - Settings
50
+ -
+ I
+ S03
+ DB Browser - SQL Console - Settings
+ 50
+
-
I
T01
@@ -368,16 +380,75 @@
Disable automatic 'Max Row Count' Determination
94
+ -
+ S
+ P_ADVM
+ ?...
+ 12
+
-
S
P_ASNVMO
Selection Mode for Association
38
+ -
+ S
+ P_ASSLST
+ ?...
+ 12
+
+ -
+ S
+ P_AUTHEC
+ ?...
+ 12
+
+ -
+ S
+ P_AUTOL
+ ?...
+ 12
+
+ -
+ S
+ P_CALCVE
+ ?...
+ 12
+
+ -
+ S
+ P_COLAT
+ ?...
+ 12
+
+ -
+ S
+ P_COLCF
+ ?...
+ 12
+
+ -
+ S
+ P_COLFF
+ ?...
+ 12
+
+ -
+ S
+ P_COLSO
+ ?...
+ 12
+
-
S
P_CVTHME
- 33
+
+ -
+ S
+ P_DEFALV
+ ?...
+ 12
-
S
@@ -397,6 +468,18 @@
Mode for Link Click
27
+ -
+ S
+ P_ENFN
+ Add Entity Name to Field Name
+ 37
+
+ -
+ S
+ P_EXPM
+ ?...
+ 12
+
-
S
P_FAVMO
@@ -404,6 +487,18 @@
30
D
+ -
+ S
+ P_FLUSED
+ ?...
+ 12
+
+ -
+ S
+ P_IGEVEC
+ ?...
+ 12
+
-
S
P_IOBBRM
@@ -416,6 +511,150 @@
Initial Navigator Mode
30
+ -
+ S
+ P_KCOLNF
+ ?...
+ 12
+
+ -
+ S
+ P_MAXL
+ ?...
+ 12
+
+ -
+ S
+ P_NOCVEX
+ ?...
+ 12
+
+ -
+ S
+ P_NOSRTM
+ ?...
+ 12
+
+ -
+ S
+ P_NOTRSG
+ ?...
+ 12
+
+ -
+ S
+ P_ONAST
+ ?...
+ 12
+
+ -
+ S
+ P_RDDBSZ
+ ?...
+ 12
+
+ -
+ S
+ P_REDMEM
+ ?...
+ 12
+
+ -
+ S
+ P_TFIRST
+ ?...
+ 12
+
+ -
+ S
+ P_TNAMES
+ ?...
+ 12
+
+ -
+ S
+ P_TVIEW
+ ?...
+ 12
+
+ -
+ S
+ P_XAMRDE
+ ?...
+ 12
+
+ -
+ S
+ P_XATSCR
+ ?...
+ 12
+
+ -
+ S
+ P_XDAMRD
+ ?...
+ 12
+
+ -
+ S
+ P_XDBEDT
+ ?...
+ 12
+
+ -
+ S
+ P_XDD2TC
+ ?...
+ 12
+
+ -
+ S
+ P_XDDLFS
+ ?...
+ 12
+
+ -
+ S
+ P_XDHLQE
+ ?...
+ 12
+
+ -
+ S
+ P_XDONOR
+ ?...
+ 12
+
+ -
+ S
+ P_XFLLIV
+ ?...
+ 12
+
+ -
+ S
+ P_XIGNCS
+ ?...
+ 12
+
+ -
+ S
+ P_XLDVAS
+ ?...
+ 12
+
+ -
+ S
+ P_XSCCCW
+ ?...
+ 12
+
+ -
+ S
+ P_ZERASB
+ ?...
+ 12
+
diff --git a/src/ui/zif_dbbr_screen_ids.intf.abap b/src/ui/zif_dbbr_screen_ids.intf.abap
index a05626d..5b18b0f 100644
--- a/src/ui/zif_dbbr_screen_ids.intf.abap
+++ b/src/ui/zif_dbbr_screen_ids.intf.abap
@@ -34,6 +34,7 @@ INTERFACE zif_dbbr_screen_ids
cds_view_settings TYPE dynnr VALUE '0106' ##NO_TEXT,
END OF c_user_settings.
CONSTANTS c_show_eb_settings TYPE dynnr VALUE '0200' ##NO_TEXT.
+ CONSTANTS c_sqlcons_settings TYPE dynnr VALUE '0300' ##NO_TEXT.
CONSTANTS c_maintain_join_table TYPE dynnr VALUE 1700 ##NO_TEXT.
CONSTANTS c_maintain_join_cond TYPE dynnr VALUE 1701 ##NO_TEXT.
ENDINTERFACE.