Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV

Former Member
0 Likes
634

what is field catalog ? what it holds?

1 ACCEPTED SOLUTION
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
606

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.

6 REPLIES 6
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
607

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.

Read only

Former Member
0 Likes
606

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

Read only

uwe_schieferstein
Active Contributor
0 Likes
606

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

Read only

anversha_s
Active Contributor
0 Likes
606

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

Read only

Former Member
0 Likes
606

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

Read only

Former Member
0 Likes
606

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