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
Define spool request?
I am uploading 100 records out of which say 59th record has error so what will happen if I am using synchronous or asynchronous method of bdc? Can we update the database using local update mode how? : abap bdc
Explain the data types of internal tables?
What are the two levels in defining a match code? : abap data dictionary
Explain the disadvantage of using exec sql statement in abap?
What is table pool?
What is the use of the raising exception? : abap modularization
What are field symbols and field groups? Have you used component idx of structure clause with field groups?
What are the data types of the external layer?
What are conversion & interface programs in sap?
What is the transaction code to display the payroll results ? : abap hr
what are the important fields while preparing sales order,inquiry?
Explain the components of selection table?
java script for push button in adobe forms.
If I want to execute a program only in background not in foreground is there any option for this? : abap bdc