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

"Field catalog not found" error in ALV program

Hi,

Please help me,I can not find what is error is my code,I have always error message "Field catalog not found" .


report z01.

type-pools: slis .

tables:skat.

data:begin of wa_skat,

ktopl like skat-ktopl,

saknr like skat-saknr,

txt20 like skat-txt20,

end of wa_skat.

data:i_skat like standard table of wa_skat with header line.

data: fieldcat type slis_t_fieldcat_alv.

select-options:zacc for skat-saknr.

select * into corresponding fields of wa_skat

from skat

for all entries in zacc

where saknr = zacc-low.

append wa_skat to i_skat.

endselect.

call function 'REUSE_ALV_FIELDCATALOG_MERGE'

exporting

i_program_name = sy-repid

i_internal_tabname = 'I_SKAT'

* I_STRUCTURE_NAME = 'wa_SKAT'

i_inclname = sy-repid

i_bypassing_buffer = 'X'

changing

ct_fieldcat = fieldcat

exceptions

inconsistent_interface = 1

program_error = 2

others = 3.

call function 'REUSE_ALV_GRID_DISPLAY'

exporting

it_fieldcat = fieldcat

tables

t_outtab = i_skat.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Jul 12, 2015 at 08:57 AM

    Hi,

    easy: you pass sy-repid (by reference) to the function module. As soon as REUSE_ALV_FIELDCATALOG_MERGE is processed, sy-repid changes value and your itab is not found.

    use data lv_repid type sy-repid. lv_repid = sy-repid. and pass lv_repid to the function.

    Regards Clemens

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 12, 2015 at 12:11 PM

    Dear Gacia,

    Attached is the code in the Notepad.

    Use it and it will work.

    Attached is the file.

    Regards

    Shaik


    blue.txt.zip (560 B)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 12, 2015 at 02:18 PM

    Hi,

    just change the name of i_internal_tabname

    i_internal_tabname = 'WA_SKAT'

    it should be worked,

    Regards

    Ibrahim

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 13, 2015 at 04:25 AM

    Hi,

    just you have to correct in fm 'REUSE_ALV_FIELDCATALOG_MERGE'

    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
    exporting
    i_program_name = sy-repid

    i_internal_tabname = 'WA_SKAT' "'I_SKAT' << change internal table name

    * I_STRUTURE_NAME = 'wa_SKAT'
    i_inclname = sy-repid
    i_bypassing_buffer = 'X'
    changing
    ct_fieldcat = fieldcat
    exceptions
    inconsistent_interface = 1
    program_error = 2
    others = 3.

    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.