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: 

ALV Fieldcatalog2

Former Member
0 Kudos

hi friends,

could u plz tell me if i'm using 'REUSE_ALV_FIELDCATALOG_MERGE'.

and i'm selecting 4 fieds from kna1, but in the output list i'm getting the field values for that 4 field then i'm getting the remaining empty structure of kna1. but my requirement is in output i want to get only the structure for that particule 4 fields

, is it possible to get by using 'reuse_alv_fieldcatalog_merge'..

thanks in advance.

regards,

priya.s

4 REPLIES 4

Former Member
0 Kudos

check ur previous thread

Former Member
0 Kudos

When u r passing kna1 structure the entire fields will be prepared for the display.

If u dont want to display those fields, u can make only the fields u want to display to be displayed and all the others to be not displayed.

We have an attribute for this in Field catalog called no_display.

awrd points if useful

Bhupal

former_member156446
Active Contributor
0 Kudos

Hi Priya

> you have an option to edit the post, you had almost 3 to 4 posts

> only on field catalog merge FM, try using Edit option available.

with merge you can get even for those 4 fields.

declare the itab

data: begin of itab,

kunnr like kna1-kunnr,

X like XXX-XXX,

end of itab.

and pass the structure to FM *_merge

>Award points for helpful answers

Edited by: Jay Raj on Jan 5, 2008 2:26 AM

Former Member
0 Kudos

Hi,

if you want to use only few fields you need not to call FIELDCATALOG_MERGE. better assign manually field catalog as below..

  • For Field catalog

data: wa_catlog TYPE slis_fieldcat_alv,

T_catlog TYPE slis_t_fieldcat_alv.

wA_catlog-seltext_l = text-006. "Storage type.

wA_catlog-datatype = 'CHAR'.

wA_catlog-outputlen = 15.

wA_catlog-fieldname = 'LGTYP'.

APPEND wA_catlog TO t_catlog.

CLEAR wA_catlog.

wA_catlog-seltext_l = text-007. "Material.

wA_catlog-datatype = 'CHAR'.

wA_catlog-outputlen = 18.

wA_catlog-fieldname = 'MATNR'.

APPEND wA_catlog TO t_catlog.

CLEAR wA_catlog.

wA_catlog-seltext_l = text-008. "Plant

wA_catlog-datatype = 'CHAR'.

wA_catlog-outputlen = 10.

wA_catlog-fieldname = 'WERKS'.

APPEND wA_catlog TO t_catlog.

CLEAR wA_catlog.

Thanks,

Murali