Skip to Content
Author's profile photo Former Member

Colour Coding for Change request Inbox

Introduction

 

 

The MDG Framework Provides the POWL list as the Change request Inbox. If we need to have a different colour coding for a specific column, we can achieve this by following the document

 

 

Current Change request Inbox

/wp-content/uploads/2014/02/1_379530.jpg

 

Process

 

 

Now we can see how we can provide a colour for the Sent On colum. The standard class which is used for controlling this inbox is cl_usmd_crequest_powl. We need to inherit this class so that we could modify some of those methods to achieve the colour. We shall create a new class zcl_usmd_crequest_powl so that it inherits from the super class cl_usmd_crequest_powl.

 

Create a Constructor method with the following coding:

 

super->constructor(

EXPORTING

io_cust_helper = io_cust_helper ).

initialize_feeder( ).

 

 

Now redefine the method READ_CUST_FIELDCAT and have the following code

 

data: wa_fieldcat like line of et_fieldcat.

try.

call method super->read_cust_fieldcat

exporting

iv_type = iv_type

iv_langu = iv_langu

importing

et_fieldcat = et_fieldcat.

catch cx_ibo_powl_no_fieldcatalog_se .

endtry.

Read table et_fieldcat into wa_fieldcat with key colid = ‘WI_CD_TS’.

wa_fieldcat-color = ’02’.

Modify et_fieldcat from wa_fieldcat index sy-tabix.

 

 

This would be providing the column in green colour.

 

Customizing

 

 

Now go to transaction code powl_type and change the entry of Usmd_Crequest_wi from

Cl_usmd_crequest_powl to zcl_usmd_crequest_powl.

/wp-content/uploads/2014/02/1_379530.jpg

/wp-content/uploads/2014/02/1_379530.jpg

 

Note:

This works fine with NWBC but when used from a Portal screen, you might face some Performance issues

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.