Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to put ZEBRA color in F4 Search help

Former Member
0 Kudos

My Requirement:

Suppose I am having a search help with the following data.

MATNRSLNOOPERNPREHT
A1A1X
A2A2
A3A3X
A4A4
B1B1
B2B2
B3B3
C1C1
C2C2

Now I want to display the Search help with two colours [ZEBRA]

as shown above. The criteria will be defined by "Group by MATNR"

as shown above.

************************

" What I did till now.

SELECTION-SCREEN:

     BEGIN OF BLOCK bl WITH FRAME TITLE text-001.

PARAMETERS:

     s_matnr    TYPE matnr        OBLIGATORY,     " Material Number

    s_matkl      TYPE matkl        OBLIGATORY.     " Material Group

SELECTION-SCREEN:

   END OF BLOCK bl.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_matnr.

   PERFORM f4_help_for_material USING 'S_MATNR'.     " Search Help Working Fine

*******F4 Help **********


FORM f4_help_for_material USING  l_dynprofield.

   TYPES: BEGIN OF str_mat_oper,

             matnr  TYPE zpp_oper_master-matnr,

             slno  TYPE zpp_oper_master-slno,

             opern  TYPE zpp_oper_master-opern,

             preht  TYPE zpp_oper_master-preht,

          END OF str_mat_oper.

   DATA: it_mat_oper TYPE STANDARD TABLE OF str_mat_oper INITIAL SIZE 0,

         wa_mat_oper TYPE str_mat_oper.

   SELECT * FROM zpp_oper_master

   CLIENT SPECIFIED INTO CORRESPONDING FIELDS OF TABLE it_mat_oper

   WHERE mandt = sy-mandt

   ORDER BY matnr slno ASCENDING.

   CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

     EXPORTING

       retfield    = 'MATNR'

       dynpprog    = sy-repid

       dynpnr      = sy-dynnr

       dynprofield = l_dynprofield

       value_org   = 'S'

     TABLES

       value_tab   = it_mat_oper.

ENDFORM.                    " F4_HELP_FOR_MATERIAL




Thanks in advance

Satpathy

4 REPLIES 4

srikanth_d4
Participant
0 Kudos

Hi Satpathy,

Use FM: REUSE_ALV_POPUP_TO_SELECT insted of F4IF_INT_TABLE_VALUE_REQUEST.

prepare Fieldcatalog and pass I_ZEBRA = 'X'.

Regards,

Srikanth

0 Kudos

Dear Srikanth

I want the colours in Group as shown in my Discussion..!!

For a Particular group One Color

For Another Group Another Color

Thanks

0 Kudos

Hi

Try to use REUSE_ALV_POPUP_TO_SELECT

Max

0 Kudos

Hi Satpathy,


Ok...


Then try some thing like this....

Step1: call a subscreen whenever F4 event triggers: use CALL SCREEN...

Step2: In that subscreen display an ALV (REUSE_ALV_GRID_DISPLAY)and while displaying assign colors to the rows based on the MATNR

Step3: Enable user command event to capture the selected row value and pass back this to the req field.


Srikanth.