Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How will you add colour in a row using ALV ?

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


Please Help Members By Posting Answers For Below Questions

HOW CAN YOU USE A PAGE COUNT IN CALLING A PAGE IN SMARTFORM?

2032


How to get that a secondary index is attached to a select query?

1320


difference between Valuation type and valuation category?

2414


What are the merits of its?-

1038


What are two methods of modifying sap standard tables?

1081


there are 2 selection screens. material num in screen 200 and plant in screen 300. so how can you write in INITIALISATION event?

2184


How to combine multiple billing into one RV document ( Step by Step)?

1929


Explain some essential objects in abap dictionary?

1130


How can we create callable modules of program code within one abap/4 program? : abap modularization

993


what is diff between idocs,bdc,rfc and bapi. give real time answer

19456


What is elementary search help? : sap abap data dictionary

959


What are field symbols and field groups? Have you used component idx of structure clause with field groups?

995


What are the dynapro keywords?

1087


Can we use flow logic control key words in abap/4 and vice-verse?

943


What are the major steps will you use for tuning?

1028