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

REUSE_ALV_FIELDCATALOG_MERGE

Hi,

pls see below.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

i_program_name = w_repid

i_internal_tabname = p_tabname

i_client_never_display = 'X'

i_inclname = w_repid

CHANGING

ct_fieldcat = t_fieldcat

EXCEPTIONS

inconsistent_interface = 1

program_error = 2

OTHERS = 3.

I've declared everything report name table name and this field contain values and declared t_fieldcat.

bu the t_fieldcat is not getting populated with the fields.its simply returning balnk.

could anyone resolve?

Thanks in Adv,

Ponraj.s.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Sep 01, 2007 at 02:02 PM
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = w_repid
    *i_internal_tabname = p_tabname
    i_internal_tabname = 'P_TABNAME'
    i_client_never_display = 'X'
    i_inclname = w_repid
    CHANGING
    ct_fieldcat = t_fieldcat
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.

    Commented line the which I think is the problem.

    The internal table name must be in CAPITAL LETTERS.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 01, 2007 at 01:58 PM

    Hello Ponraj

    Have a look at my sample report <b>ZUS_SDN_FIELDCATALOG_1</b> in thread

    field catalog generation using merge function

    However, my general recommendation is to get rid of this old-fashioned ALV programming (function modules, SLIS type pool and itab-based fieldcatalogs). Instead use fm <b>LVC_FIELDCATALOG_MERGE</b> and create your fieldcatalog by repeatedly calling this function module with <b>DDIC structures</b>.

    Regards

    Uwe

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 01, 2007 at 06:24 PM

    Hi Ponraj,

    be careful using 'REUSE_ALV_FIELDCATALOG_MERGE with parameter i_internal_tabname. This will scan the source code for an internal table declared with fields LIKE ... declaration and create a field catalog from that.

    If you want to create from a DDIC table or structure name, please use i_structurename parameter.

    Regards,

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 01, 2007 at 08:11 PM

    Hi,

    Please find documentation for above fm it have some limitations

    +

    Supports the creation of the field catalog for the ALV function modules based either on a structure or table defined in the ABAP Data Dictionary, or a program-internal table.

    The program-internal table must either be in a TOP Include or its Include must be specified explicitly in the interface.

    The variant based on a program-internal table should only be used for rapid prototyping since the following restrictions apply:

    Performance is affected since the code of the table definition must always be read and interpreted at runtime.

    Dictionary references are only considered if the keywords LIKE or INCLUDE STRUCTURE (not TYPE) are used.

    If the field catalog contains more than 90 fields, the first 90 fields are output in the list by default whereas the remaining fields are only available in the field selection.

    +

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 05:50 AM

    Resolved..

    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.