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: 

Urgent---what is wrong

Former Member
0 Kudos

<b>Data: begin of itab occurs 0,

coursenum like zcourses-coursenum,

courseType like zcourses-coursetype,

location like zofferings-location,

instructor like zofferings-instructor,

duration like zcourses-duration,

end of itab.</b>

<i>data: l_fieldcat TYPE SLIS_T_FIELDCAT_ALV.</i>

data: repid like sy-repid.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

I_PROGRAM_NAME = repid

I_INTERNAL_TABNAME = 'itab'

I_INCLNAME = repid

CHANGING

CT_FIELDCAT = L_FIELDCAT

EXCEPTIONS

OTHERS = 3.

I could not get the field catalog from this internal table.

What is the problem?

Thanks.

1 ACCEPTED SOLUTION

former_member582701
Contributor
0 Kudos

Try this:

I_INTERNAL_TABNAME = 'ITAB' " with uppercase

regards

6 REPLIES 6

former_member582701
Contributor
0 Kudos

Try this:

I_INTERNAL_TABNAME = 'ITAB' " with uppercase

regards

Former Member
0 Kudos

hi,

Most Important rule is , whatever u write between quotes, should b in uppercase.

so write ITAB in uppercase and try it.

Former Member
0 Kudos

Hi,

Try this code:


  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
  EXPORTING
    i_program_name               = sy-repid
    i_internal_tabname           = 'ITAB'
*   I_STRUCTURE_NAME             =
*   I_CLIENT_NEVER_DISPLAY       = 'X'
    i_inclname                   = sy-repid
*   I_BYPASSING_BUFFER           =
*   I_BUFFER_ACTIVE              =
    CHANGING
      ct_fieldcat                  = L_FIELDCAT
   EXCEPTIONS
    inconsistent_interface       = 1
    program_error                = 2
    OTHERS                       = 3

  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

Former Member
0 Kudos

HI

anything given in ' ' should b in upper case..

'itab' with 'ITAB'.

assign repid = sy-repid.

gopi_narendra
Active Contributor
0 Kudos

Sorry wrong post

Regards

Gopi

Former Member
0 Kudos

Hi,

Give itab in uppercase

I_INTERNAL_TABNAME = 'ITAB'

Regards,

Vijay