2014 Apr 12 6:52 AM
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.
2014 Apr 12 7:06 AM
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.
2014 Apr 12 7:18 AM
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.
2014 Apr 12 7:46 AM
Solved. I used string data type in place of the standard file type data type..
Thank you Sanjeev and Arun 🙂