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

type pool : slis

Former Member
0 Likes
1,299

Hi All,

Please help, i need to know the difference between slis_t_fieldcat_alv and slis_fieldcat_alv. What exactly the function of both.

Thanks,

Chandresh

8 REPLIES 8
Read only

Former Member
0 Likes
1,241

Hi Chandresh,

Check out this link it contains the information you need.

[http://www.sap-img.com/abap/what-is-slis-in-alv.htm]

Regards,

Amit.

Read only

Former Member
0 Likes
1,241

Hi,

slis_t_fieldcat_alv is a Table type.

and slis_fieldcat_alv is a Structure....

If you dec a var in your prog wrt slis_t_fieldcat_alv ...you will get a Internal Table......whereas with other one you will get a structure

Read only

Former Member
0 Likes
1,241

Hi..

difference between slis_t_fieldcat_alv and slis_fieldcat_alv.

first will create a internal table which can have various entries while second will create a structure or work area,it can have only one entry.

Read only

Former Member
0 Likes
1,241

Hi Chandresh Bajpai,

SLIS_FIELDCAT_ALV is a LINE TYPE.

SLIS_T_FIELDCAT_ALV is a TABLE TYPE. Because it has

OCCURS addition.

Regards,

R.Nagarajan.

-


We can -


Read only

0 Likes
1,241

Thanks,

Chandresh

Read only

Former Member
0 Likes
1,241

Hi,

When you are using REUSE_ALV Functions except RESUE_ALV_GRID_DSPLAY_LVC function module all needs

SLIS_T_FIELDCAT_ALV.

if you are using OO ALV and LVC function then you have to use LVC_T_FCAT.

There is a case where you can use both check this

https://wiki.sdn.sap.com/wiki/display/Snippets/CreatingLVCfieldcatalogUsingInternaltablethroughSLISfieldcatalog

Read only

Former Member
0 Likes
1,241

slis_t_fieldcat_alv is a table type and slis_fieldcat_alv is a structure.

when u declare a data variable using slis_t_fieldcat_alv, it will create an internal table whereas slis_fieldcat_alv will create a work area.

DATA: gt_fcat TYPE SLIS_T_FIELDCAT_ALV, "Internal Table
          gs_fcat TYPE SLIS_FIELDCAT_ALV. "Work Area

Regards

Sathar

Read only

Former Member
0 Likes
1,241

Anserwed