cancel
Showing results for 
Search instead for 
Did you mean: 

F4 help in WEB UI with bigger font ?

Former Member
0 Kudos

Hello,

i have such an issue.

I have DDIC table lets call it ZTAB1 and a text table ZTAB1T related to it.

I have also created simple search help.

I have a field in a context node in the UI component (standard component, not only Z ones).

When F4 is pressed on it it automatically displays the values of the ZTAB1T.

It is all correct.

The problem is that customer needs to see the values of the search help with the bigger font size.

I can imagine one solution: use decision popup. I could create my own Z view and implement logic which sets bigger font of the columns in the view.

But this easily could work in a Z component in a standard one i have to add additional view which i do not want.

I have read about importing CSS styles in SAP.

However i'm not exactly shure how to use them in my case. I do not know which view is called when F4 is pressed, i suppose some standard component.

Do you have any idea about this?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rosen,

Kindly clear your requirements.

Below is a search help screenshot.

I have changed the font of column values to a bigger one. See the screenshot below.

Is this what you want?

Thanks,

Ritu

Former Member
0 Kudos

Hi Ritu,

yes it is.

How did you do that?

Former Member
0 Kudos

Hi Rosen,

I am assuming that you have made your personalized skin. (Let me know if you have any problem with personalized skin).

Find the below tag in your thtmlb_safari_stand.css.

.th-clr-row .th-tx-value {

    padding-right:          0;

}

and replace it with below code:

.th-clr-row .th-tx-value {

    padding:          4px;

   font-size: large !important;

}

Thanks,

Ritu

Former Member
0 Kudos

Hi Ritu,

i have not created any css yet.

Could you tell me wheter this class:  .th-clr-row .th-tx-value is designated to format display of the values in F4 help only ? Because what i need is to enlarge the font of the F4 help screens only ( and especially of one search help )

Thank you,

Rosen

Former Member
0 Kudos

Hi Rosen,

The change mentioned in previous reply would affect all your search helps.

If you want to change for just one search help then method DO_AT_BEGINNING and RENDER_CELL of standard class CL_THTMLB_CELLERATOR needs to be enhanced.

Below are the steps:

1. Make a attribute 'GV_MY_SHLP' in CL_THTMLB_CELLERATOR class.

2. You will find the below code in DO_AT_BEGINNING method.

   get_table_content(

     IMPORTING

       et_table_entries      = gt_table_entries

       et_cellerator_columns = gt_cellerator_columns

       et_editable_rows      = gt_editable_rows

       et_selected_rows      = gt_selected_rows

       et_expanded_rows      = gt_expanded_rows

       es_alv                = gs_alv ).

The above code will fill table gt_cellerator_columns with the id's that you mentioned in your search help.

Enhance the method. Put a check after this get_table_content method call to check whether your search help parameter is present in gt_cellerator_columns table. If yes, then set the 'GV_MY_SHLP' to 'X'.

3. Now go to RENDER_CELL method. At the end you will find the below code.

CONCATENATE '<'

               lv_html_tag

               lv_id_string

               ' class="'

               lv_css_class

               '" style="width:'

               lv_css_width

               '; text-align:'

               lv_css_alignment

               '; '

               lv_add_style

               ' "'

               lv_js

               lv_columnindex

               lv_tab_html

               lv_tab_index

               lv_tooltip

               '>'

               lv_testmode_span_start

               lv_bee_html

               lv_testmode_span_end

               '</'

               lv_html_tag

               '>'

          INTO lv_html.


Enhance this method.


Check if 'GV_MY_SHLP' eq 'X', then change the line marked bold.


'" style=" font-size: large; width:'


Now it will work for only your specific search help.


Thanks,

Ritu



Answers (0)