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: 

Query on LVC

Former Member
0 Kudos
132

Hi Group,

Could you people kindly let me know how to append my fields to my LVC fieldcat?

Normally in ALV we build to fieldcat but in LVC could you please guide me up?

Also if you can tell me how to display those fields I would be thankful to you people.

Thank you for your time.

Regards,

Kumar.

Message was edited by:

virgo rhyme

2 REPLIES 2

Former Member
0 Kudos
87

data : it_fcat type lvc_t_fcat,

wa_fcat type lvc_s_fcat.

wa_fcat-fieldname = 'MATNR'.

wa_fcat-colpos = '1'.

wa_fcat-outputlen = '18'.

append wa_fcat to it_fcat.

wa_fcat-fieldname = 'MAKTX'.

wa_fcat-colpos = '2'.

wa_fcat-outputlen = '25'.

append wa_fcat to it_fcat.

and pass the fieldcatalog to it_fieldcat of method SET_TABLE_FOR_FIRST_DISPLAY of class CL_GUI_ALV_GRID

0 Kudos
87

Hi,

Thank you for responding.

Could you please send me a sample code on LVC, thank you again for your time.

Regards,

Kumar.