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: 

File Upload Error

Former Member
0 Kudos
159

Hi all,

     I am uploading an excel file. Using  TEXT_CONVERT_XLS_TO_SAP.

But I am getting runtime error "    Type conflict when calling a function module.".

call function 'TEXT_CONVERT_XLS_TO_SAP'

   exporting

    i_field_seperator          = 'X'

*   I_LINE_HEADER              =

     i_tab_raw_data             = it_type

     i_filename                 = input

   tables

     i_tab_converted_data       = it_pa30

  exceptions

    conversion_failed          = 1

    others                     = 2

           .

if sy-subrc <> 0.

* Implement suitable error handling here

endif.

3 REPLIES 3

Arun_Prabhu_K
Active Contributor
0 Kudos
118

Hello Yash Acharya.

     Read the error analysis to pin-point the error location.

     The data structures passed should match with FM's parameter data structure.

     Whether your file name input parameter is of type RLGRAP-filename ?

Regards.

former_member187748
Active Contributor
0 Kudos
118

Hi Yash,

check that the sequence of the fields in your internal table is as per as standard table in which you are uploading your data.

And also check the data types of the column field is as per as the standard table field.

Former Member
0 Kudos
118

Solved. I used string data type in place of the standard file type data type..

Thank you Sanjeev and Arun 🙂