Application Development and Automation 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: 
Read only

Runtime error

Former Member
0 Likes
710

Hi,

can anyone tell me why ami gettng this error?

it states type conflict when calling a function module.??

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_GRID_SETTINGS =

  • IS_LAYOUT =

it_fieldcat = it_fcat

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

t_outtab = it_output

EXCEPTIONS

program_error = 1

OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

6 REPLIES 6
Read only

Former Member
0 Likes
690

Hi,

give call back program

data : i_repid like sy-repid.

call function 'REUSE_ALV_GRID_DISPLAY'
   exporting
     i_callback_program                = i_repid
     i_structure_name                  = 'IT_RETDISP'
     it_fieldcat                       = i_fieldcat
     i_default                         = 'X'
     i_save                            = 'X'
* IMPORTING
*   E_EXIT_CAUSED_BY_CALLER           =
*   ES_EXIT_CAUSED_BY_USER            =
    tables
      t_outtab                          = it_retdisp[]
   exceptions
     program_error                     = 1
     others                            = 2
            .
  if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.

Reward if usefull

Read only

0 Likes
690

hi,

i tried giving call back prgm bt its not working,

please help me.

Read only

Former Member
0 Likes
690

Hi,

Check ur declarations once.

i think u not declared it_fcat as it_fcat type SLIS_T_FIELDCAT_ALV.

Thanks,

Ananth

Read only

0 Likes
690

hi,

i have already declared the field catalog.

Read only

Former Member
0 Likes
690

it_fcat is not type SLIS_T_FIELDCAT_ALV

or you are passing the header line of it_output, try passing it as


it_output[]

Read only

Former Member
0 Likes
690

double post

Edited by: Ramiro Escamilla on Apr 9, 2008 4:18 PM