Application Development 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: 

Issue with conversion of Solix format data.

0 Kudos

Hi Friends,

I am facing an issue of conversion of data from solix fromat to binary format.

I have read the data from .XLS file into the solix format with the gui_upload.

Now i want to transfer this data into internal table so that I can process on it .

DATA: lt_data_tab TYPE TABLE OF solix.

CALL METHOD
          cl_gui_frontend_services=>gui_upload
          EXPORTING
            filename                   = v_filename_string
            filetype                     = 'BIN'
            has_field_separator     = space
            read_by_line            = 'X'
            dat_mode                = 'X'
          CHANGING
            data_tab                 = lt_data_tab.

Now I want the data into interal table  lt_data_tab[ ] and below is the format for the same .

TYPES : BEGIN OF ty_refno,
                refno  TYPE char16,     
                key    TYPE string,
                END OF ty_refno.

data : lt_data_tab TYPE STANDARD TABLE OF ty_refno.

Is there is any function fm which can convert the same .

Regards,

2 REPLIES 2

Former Member
0 Kudos

Hi,

why are you using    cl_gui_frontend_services=>gui_upload to import XLS file in internal table?

You shoul use function  ALSM_EXCEL_TO_INTERNAL_TABLE.

regards

Fred

0 Kudos

Uploading of file is not restricted to .XLS .I am trying to upload any file and I am storing it in format table SOLIX.

Can some guide how to convert the SOLIX date into the actual one.