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: 

sap reports

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

if u explain clearly it is better to answer.

for that just u use ALV_REUSE_GRID_DISPLAY

Former Member
0 Kudos

Former Member
0 Kudos

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.........