Abap Gui_upload Excel File

I need to read excel files via SAPGUI (not in batch, not from server).Only one sheet/file, not a csv file.I am aware of a few function modules that do that, but they are restricted to cell sizes of 32 or 40 or 50 characters per cell.Are there function modules or classes/methods that allow me to read excel files with longer cells?Longer means: either String or defined by the caller or at least 80.EditI used ALSMEXCELTOINTERNALTABLE successfully in other projects where cell size is not that important. This module reads into a structure ALSMEXTABLINE that restricts data to 50 characters.KCDEXCELOLETOINTCONVERT reads into a table with 32 characters / cell. You are right, function module 'ALSMEXCELTOINTERNALTABLE' can manage only 50 characters. In this, one standard alternative is to use function module 'GUIUPLOAD', which I have used, but in this case you must convert the excel file to a cvs file, which is not what you really want.The other alternative, according to, is to create a copy of 'ALSMEXCELTOINTERNALTABLE' and then create a copy of the structure 'ALSMEXTABLINE'.The structure field 'VALUE' of the new structure must be changed to the length you need and then the copy of 'ALSMEXCELTOINTERNALTABLE' would use the new structure of 'ALSMEXTABLINE'.I haven't tried this solution but maybe could work for you.Hope it helps. You can use FILEREADANDCONVERTSAPDATA for that aim.
Abap Gui_upload Excel File Free
Its output table cell is limited to 256 characters, which would be quite sufficient for you. Code sample is given below: TYPES: tvdata(256) TYPE c,BEGIN OF tsdata,value0001 TYPE tvdata.value0020 TYPE tvdata,END OF tsdata,ttdata TYPE TABLE OF tsdata.DATA: lvfname TYPE filename-fileintern,ptdata TYPE ttdata.lvfname = 'C:test.xls'.CALL FUNCTION 'FILEREADANDCONVERTSAPDATA'EXPORTINGifilename = lvfnameiservertyp = 'OLE2'ifileformat = 'XLS'TABLESitabreceiver = ptdataEXCEPTIONSfilenotfound = 1closefailed = 2authorizationfailed = 3openfailed = 4conversionfailed = 5OTHERS = 6.IF sy-subrc 0. error handlingENDIF.
What Is Excel File
Excel cannot open the file, file format or file extension is not valid, The file you are trying to open, different format than specified by the file extension, list, local file, spreadsheet, xls, xlsx, office 2003, 2007, 2010, GUIUPLOAD, GUIDOWNLOAD., KBA, BC-FES-GUI, SAP GUI for Windows, BC-ABA-LI, ABAP List Processing, Problem About this pageThis is a preview of a SAP Knowledge Base Article. Click to access the full version on SAP ONE Support launchpad (Loginrequired).Search for additional resultsVisit SAP Support Portal's.