Answer Posted / venkaiah chowdary rudrapati
1.Add non data base column to the final internal table of the length four characters
2.Declare the work area of the type slis_layout_alv this structure contains the one of the field info_fieldname.
3.set a loop to final internal table
4.populate color code as per requirement
5.pass the color_ffield to the info_fieldname
coding:
types:begin of typ_vbak,
vbeln type vbak-vbeln,
f1,
f2,
'
'
row_color(4) type c,
end of typ_vbak.
data:it_vbak type table of typ_vbak.
field-symbols:<fs_vbak> type typ_vbak.
data:gs_layout type slis_layout_alv.
select vbeln
f1
f2
from vbak
into table it_vbak up to 200 rows.
data:lv_col type n value 1.
if not it_vbak is initial.
loop at it_vbak assigning <fs_vbak>.
concatenate 'C' LV_COL 1 1 into <fs_vbak>-row_color.
if lv_col lt 7
lv_col = lv_col + 1.
else.
lv_col = 1.
endif.
endloop.
gs_layout-info_fieldname = 'ROW_COLOR'.
endif.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How many lists can a program can produce?
Explain what are the problems in processing batch input sessions?
Can a transparent table exist in data dictionary but not in the database physically? : abap data dictionary
What are different data types in abap/4?
What are the different types of abap reports in sap?
What is filter dependent BADI?
Of the two call transaction and session method, which is faster?
Difference between function group and function module?
Explain sap abap 3-tier architecture?
Can I execute user exits? If yes, how?
What is the difference between open_form and close_form?
What are the differences between the table and the structure in the data dictionary in the sap abap?
What are the page windows? How many main windows will be there in a page window?
Where can you find error log for call transaction? : abap bdc
What are hashed tables?