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

FM

Former Member
0 Likes
836

Hello all,

I am getting error ' Type conflict when calling a function module '.

Regards,

Johnn.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
813

Check the importing and exporting parameters declared in the same data type that of Function module.

Prakash.

6 REPLIES 6
Read only

Former Member
0 Likes
814

Check the importing and exporting parameters declared in the same data type that of Function module.

Prakash.

Read only

Former Member
0 Likes
813

Hi,

If you are getting this error in Z program then check the parameters defined by for passing to the function module and parameters in the function module are of same data type.

hope this helps.

Read only

Former Member
0 Likes
813

Check your Importing and Exporting Parameters that has to be of the same type as defined in FM..

For Example

in GUI_DOWNLOAD FM

*" REFERENCE(BIN_FILESIZE) TYPE I OPTIONAL

*" REFERENCE(FILENAME) TYPE STRING

*" REFERENCE(FILETYPE) TYPE CHAR10 DEFAULT 'ASC'

*" REFERENCE(APPEND) TYPE CHAR01 DEFAULT SPACE

*" REFERENCE(WRITE_FIELD_SEPARATOR) TYPE CHAR01 DEFAULT SPACE

*" REFERENCE(HEADER) TYPE XSTRING DEFAULT '00'

*" REFERENCE(TRUNC_TRAILING_BLANKS) TYPE CHAR01 DEFAULT SPACE

*" REFERENCE(WRITE_LF) TYPE CHAR01 DEFAULT 'X'

*" REFERENCE(COL_SELECT) TYPE CHAR01 DEFAULT SPACE

*" REFERENCE(COL_SELECT_MASK) TYPE CHAR255 DEFAULT SPACE

*" REFERENCE(DAT_MODE) TYPE CHAR01 DEFAULT SPACE

<b>

FILENAME HAS TO BE STRING ONLY IF YOU PASS EITHER CHAR OR ANY OTHER DATA TYPE IT POPS YOU SUCH ERROR</b>

Message was edited by: Santosh Kumar P

Read only

Former Member
0 Likes
813

Hi John,

You might have a parameter of your FM with a type different of the expected one.

Check for your importing/exporting parameters and tables.

Best Regards,

Erwan

Read only

anversha_s
Active Contributor
0 Likes
813

hi jhon,

go to se37 - > and chk the type of import and export parameter of that FM.

similary u cahnge in ur pgm.

rgds

anver

if hlped mark points

Read only

Former Member
0 Likes
813

Hi,

If you are getting this error in Z program then check the parameters defined by for passing to the function module and parameters in the function module are of same data type.

hope this helps.