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

Type conflict when calling a function module (field length).

Former Member
0 Likes
3,045

Hi,

I am facing this issue, can anyone tell me how to correct it?

Short text

Type conflict when calling a function module (field length).

Internal notes

The termination was triggered in function "FuncParams"

of the SAP kernel, in line 3166 of the module

"//bas/700_REL/src/krn/runt/abfunc.c#16".

The internal operation just processed is "FUNC".

Internal mode was started at 20100605085803.

Name of function module...............: "MBW_CREATE_RESERVATION"

Name of formal parameter..............: "IRKPF"

Technical type of actual parameter....: "h"

Technical length of actual parameter..: 8 bytes

Technical type of formal parameter....: "u"

Technical length of formal parameter..: 271 bytes

Name of formal parameter at caller....: "IRKPF"

Thanks

Karthi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,021

Hi,

Still the same issue i am facing after changing also..

Thanks

Karthi

9 REPLIES 9
Read only

Former Member
0 Likes
2,021

Hi Karthi,

Such Type conflict dump happens when the there is a structure mismatch between the parameters of function module and the data passed.

You need to ensure that there is no mismatch between these two..

Post the structure type so that we can analyse what exactly is causing the issue..

Thanks

Ajay

Read only

0 Likes
2,021

Hi,

DATA: it_IRKPF type STANDARD TABLE OF IRKPF WITH NON-UNIQUE DEFAULT KEY,

it_ERKPF type STANDARD TABLE OF ERKPF.

DATA: WA_IRKPF type IRKPF.

WA_IRKPF-werks = wa_resv-werks.

WA_IRKPF-RSDAT = wa_resv-bdter.

WA_IRKPF-USNAM = sy-uname.

WA_IRKPF-BWART = wa_resv-bwart.

APPEND WA_IRKPF to it_IRKPF.

CALL FUNCTION 'MBW_CREATE_RESERVATION'

EXPORTING

IRKPF = it_IRKPF

XALLP = ' '

IMPORTING

ERKPF = it_ERKPF

E_RSNUM = res_no

TABLES

ERESB = ZRETURN

IRESB = it_recr.

This is my code.

Whethere i did in correct way?

Read only

0 Likes
2,021

Hi

Can you check and make sure that the strcucture of the following parameters are compatible or not.

E_RSNUM = res_no

ERESB = ZRETURN

IRESB = it_recr

IRKPF = it_IRKPF and ERKPF = it_ERKPF seems to be fine.

Thanks

Ajay

Read only

0 Likes
2,021

Hi,

i checked the structure's are all correct.

Its telling me like this error,

Technical type of actual parameter....: "h"

Technical length of actual parameter..: 8 bytes

Technical type of formal parameter....: "u"

Technical length of formal parameter..: 271 bytes

Name of formal parameter at caller....: "IRKPF"

What is h and u here, i cant understand?

Thanks

Karthi

Read only

0 Likes
2,021

Hi,

Try this.

EXPORTING

IRKPF = wa_IRKPF

XALLP = ' '

IMPORTING

ERKPF = wa_ERKPF

Exporting parameters are expecting structure and not table which you are passing right now..

Let me know if you have any issues.

Thanks

Ajay

Read only

0 Likes
2,021

Hi

Change the declaration part as

DATA: it_IRKPF type IRKPF,
            it_ERKPF type ERKPF.

Regards

Vinod

Read only

Former Member
0 Likes
2,022

Hi,

Still the same issue i am facing after changing also..

Thanks

Karthi

Read only

0 Likes
2,021

Hi,

See SAP standard program LMEWBF01 for reference.

Regards

Vinod

Read only

0 Likes
2,021

Thanks

Vinod Kumar.

That helped me, i solved the issue also.