‎2008 Jun 19 9:04 AM
Hi
I created ALV report.
i am moving it_z1log1 data to it_final.
MOVE-CORRESPONDING it_z1log1 TO it_final.
It_final is my final internal table.
Output coming properly. In Alv output i want to display
it_z1log1 records in red color. how to do thos. Pls help me
‎2008 Jun 19 9:09 AM
in both the tables..create another field as wf_flaG. IN THE TABLE it_z1log1 FILL THAT FIELD AS x FOR AL THE RECORDS...
tHEN wen u use MOVE-CORRESPONDING it_z1log1 TO it_final
in the it_final table only the records copied from it_z1log1 , will have the field wf_flaG as x.
Use this as a differentiating factor...and accordingly use a changed colour....
Hope this helps u out....
Reward points if the above ans is useful...
‎2008 Jun 19 9:07 AM
Hi,
Refer to following link.
http://www.sap-img.com/abap/line-color-in-alv-example.htm
Hope its usefull to you.
Reward pts. if helpfull.
Regards,
Dhan
‎2008 Jun 19 9:09 AM
in both the tables..create another field as wf_flaG. IN THE TABLE it_z1log1 FILL THAT FIELD AS x FOR AL THE RECORDS...
tHEN wen u use MOVE-CORRESPONDING it_z1log1 TO it_final
in the it_final table only the records copied from it_z1log1 , will have the field wf_flaG as x.
Use this as a differentiating factor...and accordingly use a changed colour....
Hope this helps u out....
Reward points if the above ans is useful...
‎2008 Jun 19 9:22 AM
‎2008 Jun 19 9:34 AM
it_fieldcat-fieldname = 'FIELD'.
it_fieldcat-tabname = 'IT_Z1LOG1'.
it_fieldcat-reptext_ddic = 'desc'.
if (check for the flag that i have alreay stated)
it_fieldcat-emphasize = 'C111'.
endif.
append it_fieldcat .
‎2008 Jun 19 10:02 AM
Hi Rudra
I tried the following. But all fields highlighted in Blue clour. How to highlight Flag = X reccords
gi_fieldcatalog-fieldname = 'MANDT'.
gi_fieldcatalog-tabname = 'it_final'.
gi_fieldcatalog-seltext_m = 'Client'.
if it_final-flag = 'X'.
gi_fieldcatalog-emphasize = 'C111'.
endif.
APPEND gi_fieldcatalog TO gi_fieldcatalog.
CLEAR gi_fieldcatalog.
‎2008 Jun 19 9:09 AM
hi do like this ...for the fields of the table it_z1log1 ..
it_fieldcat-fieldname = 'FIELD'.
it_fieldcat-tabname = 'IT_Z1LOG1'.
it_fieldcat-reptext_ddic = 'desc'.
it_fieldcat-emphasize = 'C111'.
append it_fieldcat .
‎2008 Jun 19 9:10 AM
hi kumar..
for this you hav to fill the emphasize option in fielcatalog for the correponding fields of t_z1log1..
to show those fields in color