Skip to Content
author's profile photo Former Member
Former Member

ALV Fieldcatalog2

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2008 at 07:23 AM

    check ur previous thread

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2008 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 05, 2008 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2008 at 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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.