cancel
Showing results for 
Search instead for 
Did you mean: 

Type conflict when calling a function module???

Former Member
0 Kudos

Hi,

I get this error when I try to call FM from WDA application.

FM has 1 import parameter:

A Type TableA.

TableA has 2 fields.

F1 char 8

F2 char100.

In WDA custom method, I defined a itable and wa.

data: i_data type standard table of TableA,

wa_data like line of i_data.

After I populate internal table, I call the FM like below.

CALL FUNCTION ZFM

EXPORTING

A = i_data.

When this line executes, I get the error : Type conflict when calling a function module.

How do I resolve this?

Thanks

Thruna Shanmuga

Accepted Solutions (0)

Answers (1)

Answers (1)

arjun_thakur
Active Contributor
0 Kudos

Hi Thruna,

Double click on the FM name, go to source code tab and check how its importing parameter is being declared and then declare the table in the same way in your code.

Regards

Arjun

Former Member
0 Kudos

Hi Arjun,

Thanks for your quick reply.

I declared as you said.

Data: T Type TableA.

Data: wa like line of T.

I get the followin error when compile the code.

Field "T" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.

How do I populate records into T?

Thanks

Thruna

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I am shutting this thread down. This discussion belongs in the ABAP general forum, not in the Web Dynpro ABAP forum. For basic instructions on creating ABAP data types or using function modules, please use the correct forum.