01-05-2008 7:22 AM
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
01-05-2008 7:23 AM
01-05-2008 7:24 AM
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
01-05-2008 7:25 AM
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
01-05-2008 12:27 PM
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