Skip to Content
avatar image
Former Member

F4 help in WEB UI with bigger font ?

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jan 14, 2015 at 05:31 AM

    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


    Capture.PNG (5.1 kB)
    Capture1.PNG (6.8 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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