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
Explain badi in abap.
send coding to write a program to create customer quotation using BAPI 'BAPI_QUOTATION_CREATEFROMDATA2/BAPI_QUOTATION_CREATEFR OMDATA'
What are the attributes of the data? : abap data dictionary
Can you delete data element, which is being used by table fields?
How to display or know if the value entered contains records or not?
What are control tables?
A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain.? : abap data dictionary
HI GUYS , FOR SAP INSTITUTION ATOS I BEST OR NOT? IAM PLANNING TO LEARN SAP COURSE IN ATOS... GIVE ME UR SUGGESTION ABOT ATOS?
What is the abap program name to process the batch input session automatically? : abap bdc
what is user specific parameter?
What is the function of the correction system?
Power is interrupted while transferring data from internal table to application server. How will you determine many records are transferred in session method and call transaction method? : abap bdc
How can we use multiple transactions by using bdc_insert? : abap bdc
What happens if only one of the commands set screen and leave screen is used without using the other?
What are the 3 types of function modules in sap?