Application Development 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: 

slis

Former Member
0 Kudos
368

1.what is meant by fieldcatalog what is its syntax

2.suppose i decalre data : fi type slis_fieldcat_alv

then actually what does the fields contained by fi

1 ACCEPTED SOLUTION

Former Member
0 Kudos
130

Fieldcatelog is notin but the description of the columns whioch u r gaving in the ALV.

U can set the properties How it has to behave or display in the display of the grid.

SE11->type group==>SLIS and give display ...u an see the code there.

SLIS_FIELDCAT_ALV is the header or workarea ...

SLIS_T_FIELDCAT_ALV is the internal table.

wa_fieldcat1-col_pos = '1'.

wa_fieldcat1-fieldname = 'NAME'.

wa_fieldcat1-tabname = 'T_OUTPUT1'.

wa_fieldcat1-seltext_l = 'Description'.

  • wa_fieldcat-just = 'L'.

wa_fieldcat1-outputlen = '25'.

APPEND wa_fieldcat1 TO t_fieldcat1.

CLEAR wa_fieldcat1.

Here wa_fieldcat is the workarea and t_fieldcat1 is the internal table.

Reward if helpfull.

5 REPLIES 5

Former Member
0 Kudos
131

Fieldcatelog is notin but the description of the columns whioch u r gaving in the ALV.

U can set the properties How it has to behave or display in the display of the grid.

SE11->type group==>SLIS and give display ...u an see the code there.

SLIS_FIELDCAT_ALV is the header or workarea ...

SLIS_T_FIELDCAT_ALV is the internal table.

wa_fieldcat1-col_pos = '1'.

wa_fieldcat1-fieldname = 'NAME'.

wa_fieldcat1-tabname = 'T_OUTPUT1'.

wa_fieldcat1-seltext_l = 'Description'.

  • wa_fieldcat-just = 'L'.

wa_fieldcat1-outputlen = '25'.

APPEND wa_fieldcat1 TO t_fieldcat1.

CLEAR wa_fieldcat1.

Here wa_fieldcat is the workarea and t_fieldcat1 is the internal table.

Reward if helpfull.

Former Member
0 Kudos
130

Hi,

below thing wil be useful for u.

Field_catalog:

Field catalog with field descriptions

Field catalog containing descriptions of the list output fields (usually a subset of the internal output table fields). A field catalog is required for every ALV list output.

The field catalog for the output table is built-up in the caller's coding. The build-up can be completely or partially automated by calling the REUSE_ALV_FIELDCATALOG_MERGE module

See also the documentation of the function module REUSE_ALV_FIELDCATALOG_MERGE.

The minimal field catalog is documented under 'default'. The caller can use the other optional parameters to assign output attributes to a field which differ from the default.

A field catalog need not be built-up and passed explicitly only under the following conditions:

• The internal table to be output has the same structure as a Data Dictionary structure which is referred to in the internal table declaration using LIKE or INCLUDE STRUCTURE.

• all fields in this structure are to be output

• the structure name is passed to ALV in the parameter I_STRUCTURE_NAME.

See also the documentation of the IMPORTING paramter I_STRUCTURE_NAME.

REWARD IF HELPFUL

Regards,

Karthick.

Former Member
0 Kudos
130

Hi,

Fieldcatalog is a table that contains the information of fields to be displayed in ALV list or ALV grid.

slis_fieldcat_alv is a structure. For more information about this structure check SLIS type-pools.

This structure contains the information of a field like Fieldname, Description, Length, Column no. etc.

Thanks & Regards

Santhosh

Former Member
0 Kudos
130

Type-pools - Its an introductory statement for programs.

The TYPE-POOL statement must be the first statement of a type group following the triggering of possible include programs, and introduces this type group. You can only maintain type groups in the ABAP Dictionary tool of the ABAP Workbench, whereby an include program is automatically generated including the TYPE-POOL statement.

In fieldcatalog, we describe what should be the heading for the required field, we even mention the internal table name, field name, length of the o/p field, its justification , column position, row position, etc.

Syntax for - fi type slis_fieldcat_alv

fi-fieldname = 'WERKR'.

fi-col_pos = 1.

fi-outputlen = '000004'.

fi-just = 'L'.

fi-seltext_m = 'Plant'.

fi-inttype = 'C'.

fi-datatype = 'CHAR'.

fi-ddictxt = 'M'.

APPEND fi.

CLEAR fi.

U can use the following fields in the fieldcatalog...........

row_pos like sy-curow, " output in row

col_pos like sy-cucol, " position of the column

fieldname type slis_fieldname,

tabname type slis_tabname,

currency(5) type c,

cfieldname type slis_fieldname, " field with currency unit

ctabname type slis_tabname, " and table

ifieldname type slis_fieldname, " initial column

quantity(3) type c,

qfieldname type slis_fieldname, " field with quantity unit

qtabname type slis_tabname, " and table

round type i, " round in write statement

exponent(3) type c, " exponent for floats

key(1) type c, " column with key-color

icon(1) type c, " as icon

symbol(1) type c, " as symbol

checkbox(1) type c, " as checkbox

just(1) type c, " (R)ight (L)eft (C)ent.

lzero(1) type c, " leading zero

no_sign(1) type c, " write no-sign

no_zero(1) type c, " write no-zero

no_convext(1) type c,

edit_mask type slis_edit_mask, "

emphasize(4) type c, " emphasize

fix_column(1) type c, " Spalte fixieren

do_sum(1) type c, " sum up

no_out(1) type c, " (O)blig.(X)no out

tech(1) type c, " technical field

outputlen like dd03p-outputlen,

offset type dd03p-outputlen, " offset

seltext_l like dd03p-scrtext_l, " long key word

seltext_m like dd03p-scrtext_m, " middle key word

seltext_s like dd03p-scrtext_s, " short key word

ddictxt(1) type c, " (S)hort (M)iddle (L)ong

rollname like dd03p-rollname,

datatype like dd03p-datatype,

inttype like dd03p-inttype,

intlen like dd03p-intlen,

lowercase like dd03p-lowercase,

Former Member
0 Kudos
130

HI SANDEEP,

Field catalog is notin but the description of the columns which u r giving in the ALV.

U can set the properties How it has to behave or display in the display of the grid.

SE11->type group==> SLIS and give display ...u an see the code there.

SLIS_FIELDCAT_ALV is the header or workarea ...

SLIS_T_FIELDCAT_ALV is the internal table.

wa_fieldcat1-col_pos = '1'.

wa_fieldcat1-fieldname = 'NAME'.

wa_fieldcat1-tabname = 'T_OUTPUT1'.

wa_fieldcat1-seltext_l = 'Description'.

  • wa_fieldcat-just = 'L'.

wa_fieldcat1-outputlen = '25'.

APPEND wa_fieldcat1 TO t_fieldcat1.

CLEAR wa_fieldcat1.

Here wa_fieldcat is the workarea and t_fieldcat1 is the internal table.

in alv reporting u have to create field catalog so that u can arrange the fields in your specified order in alv reports for outputting. the fleid catalog may be with or with out header line.

IF HELPFUL REWARD SOME POINTS.

WITH REGARDS,

SURESH ALURI.