Skip to Content

Program to Upload CSV File Crashes with AiE but not with SAP GUI

Hello community,

I tried a tiny program to upload a CSV file to an SAP system. The program works fine with SAP GUI for Windows but crashes when I execute it with AiE and the option Open with > SAP GUI. Here the error message:

And here the program:

"-Begin-----------------------------------------------------------------
REPORT Z_IMPORT_CSV.

DATA:
   it_table TYPE TABLE OF YTEST
   .

TYPE-POOLS:truxs.

DATA:i_tab_raw_data TYPE  truxs_t_text_data.

CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    filename = 'C:\Dummy\ytest.csv'
    filetype = 'ASC'
  TABLES
    data_tab = i_tab_raw_data.

CALL FUNCTION 'TEXT_CONVERT_CSV_TO_SAP'
  EXPORTING
    i_tab_raw_data       = i_tab_raw_data
  TABLES
    i_tab_converted_data = it_table.

INSERT YTEST FROM TABLE it_table.

"-End-------------------------------------------------------------------

The program crashes at the conversion on line > 1000. The same program runs without any errors with the SAP GUI for Windows. What could be wrong?

Thanks for hints and tips.

Cheers
Stefan

001.jpg (25.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 24, 2017 at 07:37 AM

    Hi Stefan,

    I was not able to reproduce this issue, your example is working in my setup. I think it's best if you create a customer incident on component BC-FES-GUI.

    Although you don't write it explicitly I assume that you did both tests (SAP GUI standalone and embedded in eclipse) on the same computer and that you are also using the same SAP GUI for Windows installation standalone and in eclipse. If this assumption should be wrong please mention your setup for each of the two tests in the ticket.

    Please also name the software versions in the ticket (OS, ADT, SAP GUI) or add the ADT support.zip file. Please do not upload the support.zip file here in SCN.

    Best regards,
    Armin

    Add comment
    10|10000 characters needed characters exceeded