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

Explain badi in abap.

1023


send coding to write a program to create customer quotation using BAPI 'BAPI_QUOTATION_CREATEFROMDATA2/BAPI_QUOTATION_CREATEFR OMDATA'

2833


What are the attributes of the data? : abap data dictionary

1073


Can you delete data element, which is being used by table fields?

1352


How to display or know if the value entered contains records or not?

1037


What are control tables?

1127


A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain.? : abap data dictionary

1190


HI GUYS , FOR SAP INSTITUTION ATOS I BEST OR NOT? IAM PLANNING TO LEARN SAP COURSE IN ATOS... GIVE ME UR SUGGESTION ABOT ATOS?

2835


What is the abap program name to process the batch input session automatically? : abap bdc

1218


what is user specific parameter?

2062


What is the function of the correction system?

996


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

1279


How can we use multiple transactions by using bdc_insert? : abap bdc

1134


What happens if only one of the commands set screen and leave screen is used without using the other?

1090


What are the 3 types of function modules in sap?

1086