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: 

Color Legend not applying to Items in Vistex transaction /IRM/GCRM

Former Member
0 Kudos

Dear All,

I want apply the color legend to the Items in the transaction /IRM/GCRM(Vistex). For this i want to do the Enhancement as BADI.

Please help me for this any BADI is exsted..!

Thanks,

Ram

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Rambabu,

The BADI name is /IRM/BADI_GCR_ALL  and Method name is ITEM_FIELD_EDIT_DETERMINE.

You should implement the badi and there is changing parameter CT_CRITM.

Loop this internal table(CT_CRITM.) and assign to field symbol like below

FIELD-SYMBOLS: <fs_critm> TYPE /irm/s_gcritm_fcat.

Logic:

LOOP AT ct_critm ASSIGNING <fs_critm>. * Inside loop check the condition with fields based on the requirement and apply the color

* legend to that particular line

* then assign the color code 6 like below statement.

           <fs_critm>-rowcolor = 'C600'.            ENDLOOP.

Regards,

Selvam M

1 REPLY 1

Former Member
0 Kudos

Hi Rambabu,

The BADI name is /IRM/BADI_GCR_ALL  and Method name is ITEM_FIELD_EDIT_DETERMINE.

You should implement the badi and there is changing parameter CT_CRITM.

Loop this internal table(CT_CRITM.) and assign to field symbol like below

FIELD-SYMBOLS: <fs_critm> TYPE /irm/s_gcritm_fcat.

Logic:

LOOP AT ct_critm ASSIGNING <fs_critm>. * Inside loop check the condition with fields based on the requirement and apply the color

* legend to that particular line

* then assign the color code 6 like below statement.

           <fs_critm>-rowcolor = 'C600'.            ENDLOOP.

Regards,

Selvam M