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: 

ALV Report

Former Member
0 Kudos
302

Hi, All

I am using three different table like mara, marc, makt. In select statement i am using only one table

that is mc29v. then i am calling these function module

REUSE_ALV_FIELDCATALOG_MERGE,

REUSE_ALV_BLOCK_LIST_INIT,

REUSE_ALV_BLOCK_LIST_APPEND,

REUSE_ALV_BLOCK_LIST_DISPLAY.

After calling these function module at run time error occured.

the error is "type conflict when calling a function module".

14 REPLIES 14

Former Member
0 Kudos
160

Hi

It means u're transfering a variable based on uncorrect type to a fm you're calling in your report: use the Extended Program Check in order to find out the error.

Max

Former Member
0 Kudos
160

Hi,

Some parameter which you have passed is diffrent data type. It should be the same as function module parameter. Please verify your parameter's data type.

tarangini_katta
Active Contributor
0 Kudos
160

Hi,

IF you are suing only one table for getting all the data y do u need to go for blocked display simply go for grid display or list display.

Please teel me in whcih function moudle it is giving runtime error.

Better to use

REUSE_ALV_BLOCK_LIST_INIT,

REUSE_ALV_FIELDCATALOG_MERGE,

REUSE_ALV_BLOCK_LIST_APPEND,

REUSE_ALV_BLOCK_LIST_DISPLAY.

Thanks

0 Kudos
160

Hi, tarangani

this error occered at REUSE_ALV_FIELDCATALOG_MERGE function module.

what to do.

could i use "like" instead of "type" while define field in types.

0 Kudos
160

Hi Mohamad,

It is not like that, you use like instead of type.

Just check data types of all the parameters which you are passing to fm reuse_alv_fieldcatalog_merge.

And compare it with parametes in fm itself.

hope it helps,

Pratik

0 Kudos
160

Hi,

check data types of all the parameters which you are passing to fm reuse_alv_fieldcatalog_merge.

And compare it with fm parameters .

Regards

Former Member
0 Kudos
160

Hi,

Will you let me have your code once?

Regards

Sandeep

Former Member
0 Kudos
160

Hi Mohammad,

You can use 'LIKE' instead of 'TYPE'.

Please post your code so that we can give you the exact solution.

Former Member
0 Kudos
160

Hi Mohammed,

While declare the field string use the TYPE not LIKE These ALV's are compatible with the TYPE not LIKE data types for that reason its throwing error type conflict when calling a function module

Regards,

Sravanthi

0 Kudos
160

Hi, sarvanthi

I create two program one with like and othe with type. both programs are had same error. but that error has gone.

well, I am using three different tables, but i am fetching data with two table.

Know i am getting error inside the merge fm. In debugger, controller at this stage: read report l_prog_tab_local into l_abap_source.

In runtime error short text is this (the ABAP program lines are wider than the internal table).

what to do here.

Regards,

mohammed.

Former Member
0 Kudos
160

Mohammed,

chk this ex.....


tables:vbak.

type-pools:slis.
data: vbak_b type slis_t_fieldcat_alv .

call function 'REUSE_ALV_FIELDCATALOG_MERGE'

exporting
i_structure_name = 'VBAK'

changing
ct_fieldcat = vbak_b.

Regards,

Mdi.Deeba

Former Member
0 Kudos
160

hello,

when you are using three tables,3 tables fields must be inner joined in an single table,define work area(WA) properly. fm u need to call is reuse_alv_grid_display for grid....if u wanna get in alv list

reuse_alv_list_display.

with regards,

sumanth reddy

Former Member
0 Kudos
160

Hi,

Check all the data type parameters you have declared for this REUSE_ALV_FIELDCATALOG_MERGE,

FM.

Regards,

Jyothi CH

Former Member
0 Kudos
160

I hope there is type mismatch in the parameters of the function Modules used.

Regards,

Joan