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

Preocess Error: ... is not type-compatible with formal parameter

Former Member
0 Likes
3,818

Hi,

I call the static method "z_customer_document_methods=>create_document".

It is a customer class.

When I call the method, I get this error.

"IM_DESCRIPTORS" is not type-compatible with formal parameter "IM_DESCRIPTORS"

Here my call.

CALL METHOD z_customer_document_methods=>create_document
    EXPORTING
      im_rms_id         = l_rms_id
      im_sps_id         = l_sps_id
      im_filename_img   = im_filename_img
      im_filelength_img = im_filelength_img
      im_mimetype_img   = im_mimetype_img
      im_descriptors    = im_descriptors
      im_file_img       = im_file_img
      im_kennzeichen    = l_kennzeichen
    IMPORTING
      ex_objectid       = l_document_objectid
      ex_documentclass  = l_document_documentclass
      ex_return         = l_return.

All data-type are correct. But when I comment the lines im_descriptors, im_file_img and im_kennzeichen there come no error.

Regards,

Thomas Fanninger

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
856

Hi Thomas,

see if im_descriptors is referring to a table type?

in that case try passing

im_descriptors = <b>im_descriptors[]</b>.

Also, re check the way the parameters are declared in the class and in the calling program.

Regards,

Ravi

Hi,

I call the static method "z_customer_document_methods=>create_document".

It is a customer class.

When I call the method, I get this error.

"IM_DESCRIPTORS" is not type-compatible with formal parameter "IM_DESCRIPTORS"

Here my call.

CALL METHOD z_customer_document_methods=>create_document
    EXPORTING
      im_rms_id         = l_rms_id
      im_sps_id         = l_sps_id
      im_filename_img   = im_filename_img
      im_filelength_img = im_filelength_img
      im_mimetype_img   = im_mimetype_img
      im_descriptors    = im_descriptors
      im_file_img       = im_file_img
      im_kennzeichen    = l_kennzeichen
    IMPORTING
      ex_objectid       = l_document_objectid
      ex_documentclass  = l_document_documentclass
      ex_return         = l_return.

All data-type are correct. But when I comment the lines im_descriptors, im_file_img and im_kennzeichen there come no error.

Regards,

Thomas Fanninger

1 REPLY 1
Read only

Former Member
0 Likes
857

Hi Thomas,

see if im_descriptors is referring to a table type?

in that case try passing

im_descriptors = <b>im_descriptors[]</b>.

Also, re check the way the parameters are declared in the class and in the calling program.

Regards,

Ravi