03-19-2008 7:59 AM
Hi Guru,
developed an ALV report to get material status as per material no which displays the color for particular row or column or cell.
Thanks
Regards
manas
03-19-2008 8:03 AM
if u explain clearly it is better to answer.
for that just u use ALV_REUSE_GRID_DISPLAY
03-19-2008 8:12 AM
03-19-2008 8:22 AM
to do you need to build layout as follow.
X_LAYOUT-SMALLTITLE = C_CHECK. "Default Grid title to small font
X_LAYOUT-ZEBRA = C_CHECK. "Output rows with alternating colors
X_LAYOUT-NO_AUTHOR = C_CHECK. "Allow users to enter global layouts
X_PRINT-PRNT_TITLE = C_CHECK. "Do not print out grid title
X_LAYOUT-SEL_MODE = SPACE. "ALV control: SelectionMode
X_LAYOUT-NO_F4 = C_CHECK. "Character Field Length 1
X_VARIANT-REPORT = SY-REPID. "Program name
X_VARIANT-USERNAME = SY-UNAME. "User name
X_LAYOUT-INFO_FNAME = 'COLORS'. "Color of a particular Record
Once you build the layout add one more filed to the final internal table called COLOR.
then pass values to the final internal table as below for displaying color based on your specific conditions.
FINAL-COLOR = 'C300'.
Like above you can pass diff. colors like C200, C300, C400, C500..........
Reward if useful.........