‎2006 Dec 19 10:08 AM
‎2006 Dec 19 10:10 AM
Hi,
If you are not referring structure or table in database directly for ALV output,you can use fieldcatalog.In this,you can define the fields for ALV output.
‎2006 Dec 19 10:10 AM
Hi,
If you are not referring structure or table in database directly for ALV output,you can use fieldcatalog.In this,you can define the fields for ALV output.
‎2006 Dec 19 10:11 AM
hi balu,
field catalog is an internal table which contains the characteristics of the fields to be displayed on the output.
for example you have to display a field ABC on the output list. field ABC has some characteristics like field heading, field length, emphasize, hotspot yes or no, etc...
such properties of every field in the internal table are passed into the fieldcatalog internal table and is given to the REUSE_ALV funct-modules.
thanks
pavan
‎2006 Dec 19 10:12 AM
Hello Balu
The fieldcatalog describes the columns of your ALV list.
1 row in fieldcatalog = 1 column in ALV list
For more details have a look at the sample report <b>BCALV_FIELDCAT_TEST</b>.
Regards
Uwe
‎2006 Dec 19 10:17 AM
hi,
chk this.
some options insode the field catlog
fieldcatalog-fieldname
fieldcatalog-seltext_m
fieldcatalog-col_pos
fieldcatalog-outputlen
fieldcatalog-emphasize
fieldcatalog-key
fieldcatalog-do_sum
fieldcatalog-no_zero
http://www.sapdevelopment.co.uk/reporting/alv/alv_variousfcat.htm
Regards
Anver
‎2006 Dec 19 10:59 AM
Hi,
Field Catalog is a table that contains information on the fields to be displayed.
You can use fields of the catalog to determine the number format & column properties of the list to be displayed.
e.g.CLEAR ITFLD.
REFRESH ITFLD[].
*For Field cat.
SFLD-FIELDNAME = 'ERDAT'.
SFLD-SELTEXT_L = 'Planning Date'.
SFLD-COL_POS = 0.
SFLD-OUTPUTLEN = 12.
SFLD-KEY = 'X'.
APPEND SFLD TO ITFLD.
CLEAR SFLD.
SFLD-FIELDNAME = 'OPERN'.
SFLD-SELTEXT_L = 'Op No.'.
SFLD-COL_POS = 1.
SFLD-OUTPUTLEN = 5.
SFLD-KEY = 'X'.
APPEND SFLD TO ITFLD.
CLEAR SFLD.
the above catalog shows two fields.
Hope this helps.
Reward if helpful.
Regards,
Sipra
‎2006 Dec 19 11:05 AM
when you show your alv you must build a structure with some features which will show the list.
like ifieldcat-fieldname = <specify the fieldname>
ifieldcat-col_pos<specify col position for your output field>
ifieldcat-output_len<specify output length>
ifieldcat-do_sum<will do sum at the end of list foer the field>
like this lot of features you can give to your perticular field.
go and check type-pool slis for that.
regards
shiba dutta