Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9021

How to put ZEBRA color in F4 Search help

$
0
0

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


Viewing all articles
Browse latest Browse all 9021

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>