Delimiter for  .xls file in lsmw

Hi, I am developing an lsmw..and the flat file is in the form of .xls file..so when sepcifying hte file it asks for the delimiter.what should  i give for delimiter if my flat file is a .xls file?
i would reward points for the helpful answers.

If you see your XLS file in notepad/wordpad, you can see there is nothing like u have written in ur XLS sheet. U will see file with special characters.
So I think that's the reason you can not use FM : GUI_UPLOAD for uploading file from PC to SAP.
You have to use FM : TEXT_CONVERT_XLS_TO_SAP.
In LSMW, this FM is not used.
So you have to save contents of ur XLS sheet to a text file then you 'll be able to do ur normal operation.
Regards
Prax

Similar Messages

  • "Cannot interpret data in file" error while using GUI_UPLOAD for .xls file

    Hi,
         I have made a program using FM GUI_UPLOAD to upload an .xls file to an internal table. But upon executing ,it gives error "Cannot Interpret data in file". I have seen in other posts people talking about GUI_UPLOAD FM to upload data from excel directly into internal table. Kindly help.
    Here is my code. I had tried using different combination for HAS_FIELD_SEPARATOR but still its not working.
    In my emp1.xls file , the data in each column is present in the same order as in the internal table. Although the first column in my internal table is NUMC. I dont know if that is causing the problem.
    REPORT  ZUPLOAD_1.
    data: itab TYPE TABLE OF zempl_master WITH HEADER LINE.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = 'C:\empl1.xls'
        FILETYPE                      = 'ASC'
        HAS_FIELD_SEPARATOR           = 'X'
    *   HEADER_LENGTH                 = 0
    *   READ_BY_LINE                  = 'X'
    *   DAT_MODE                      = ' '
    *   CODEPAGE                      = ' '
    *   IGNORE_CERR                   = ABAP_TRUE
    *   REPLACEMENT                   = '#'
    *   CHECK_BOM                     = ' '
    *   VIRUS_SCAN_PROFILE            =
    *   NO_AUTH_CHECK                 = ' '
    * IMPORTING
    *   FILELENGTH                    =
    *   HEADER                        =
      TABLES
        DATA_TAB                      = itab.
    * EXCEPTIONS
    *   FILE_OPEN_ERROR               = 1
    *   FILE_READ_ERROR               = 2
    *   NO_BATCH                      = 3
    *   GUI_REFUSE_FILETRANSFER       = 4
    *   INVALID_TYPE                  = 5
    *   NO_AUTHORITY                  = 6
    *   UNKNOWN_ERROR                 = 7
    *   BAD_DATA_FORMAT               = 8
    *   HEADER_NOT_ALLOWED            = 9
    *   SEPARATOR_NOT_ALLOWED         = 10
    *   HEADER_TOO_LONG               = 11
    *   UNKNOWN_DP_ERROR              = 12
    *   ACCESS_DENIED                 = 13
    *   DP_OUT_OF_MEMORY              = 14
    *   DISK_FULL                     = 15
    *   DP_TIMEOUT                    = 16
    *   OTHERS                        = 17
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP at itab.
      write:/ itab-emp_no,itab-name.
    endloop.

    hi amber22 you need to use the below fm to upload an xls file
    FORM EXCEL_UPLOAD .
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME    = FILENAM
          I_BEGIN_COL = 1
          I_BEGIN_ROW = 1
          I_END_COL   = 6
          I_END_ROW   = 100
        TABLES
          INTERN      = xl_itab.
    * EXCEPTIONS
    * INCONSISTENT_PARAMETERS = 1
    * UPLOAD_OLE = 2
    * OTHERS = 3 .
      IF SY-SUBRC = 0.
    MESSAGE 'DATA UPLOADED SUCCESSFULLY' TYPE 'I'.
      ENDIF.
    ENDFORM.                    " EXCEL_UPLOAD

  • Invalid Mimetype Detection for .xls file with CF10

    After upgrading to CF10, we are having issues getting our server to properly recognize any mimetype associated with the .xls file extension.  For some odd reason, the server is viewing them as a word file type and rejecting it.   
    When we upload a file with the .xls extension, the server responds back with the following error message:
    "The MIME type or the Extension of the uploaded file application/msword was not accepted by the server. Only files of type application/excel,application/vnd.ms-excel,application/x-excel,application/x-msexcel,appl ication/vnd.openxmlformats-officedocument.spreadsheetml.sheet can be uploaded. Verify that you are uploading a file of the appropriate type. The error type is Application."
    Our only workaround for the time being is uploading all files in the newer .xlsx format, which the server properly accepts.  As you will see from the above error message, those are the mimetypes I have thus far.  The other work around is updating the tika jar files which I have included more details in my bug report link below, but that is a solution we are steering off of until we get further confirmation on the solution. 
    I've reported this possible bug to Adobe, but of course it will be weeks or months before a confirmation or response is made on it since there are countless other bugs / feature requests that are still unanswered.  So I'm reaching out to the community in efforts to see if anyone else may have received the same issue or could see what we may be doing wrong. 
    Link to bug report with more details: https://bugbase.adobe.com/index.cfm?event=bug&id=3343364

    If you guys want to replicate this in your local environment, it's very easy using the steps I outlined in my bug report.  Please report back on your results.  I would love to see if other users experience the same or different.
    Steps to Reproduce:
    1. Create cfset tags to specify what type of files and mime types are allowed for user uploads.
    <cfset uploadFileFilter = ".xls,.xlsx" />
    <cfset uploadFileMimeType = "application/excel,application/vnd.ms-excel,application/x-excel,application/x-msexcel,app lication/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
    2. Define where the file will be uploaded to using the cffile attribute. (Change destination to the same directory of where you are creating the current .cfm file below)
    <cffile action = "upload"
    fileField = "fileupload"
    destination = "C:\test\"
    accept = "#uploadFileMimeType#"
    nameConflict = "MakeUnique">
    3. Finally create a simple form that allows the user to upload files.
    <cfform enctype="multipart/form-data">
    <cfinput accept="#uploadFileMimeType#" type="file" name="FileContents">
    <br/>
    <cfinput type="submit" name="submit" value="Upload File">
    </cfform>
    4. Open excel, enter any data, and save it as an .xls file.
    5. Submit it to the form.
    Final code
    <cfset uploadFileFilter = ".xls,.xlsx" />
    <cfset uploadFileMimeType = "application/excel,application/vnd.ms-excel,application/x-excel,application/x-msexcel,app lication/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
    <cfif isDefined("Form.FileContents") >
        <cffile action = "upload" 
            fileField = "FileContents" 
            destination = "C:\EnterLocalPathHere\" 
            accept = "#uploadFileMimeType#" 
            nameConflict = "MakeUnique">
    <cfelse>
        <cfform enctype="multipart/form-data">
            <cfinput accept="#uploadFileMimeType#" type="file" name="FileContents">
            <br/>
            <cfinput type="submit" name="submit" value="Upload File"> 
        </cfform>
    </cfif>

  • Sending an email attachment for xls file

    Hi all,
    I am executing the reports in background, i am getting spool after executing. Just i need to convert the spool to xls format and email through attachment and mail to the user.The xls file should not be saved on local system.
    I need your help.
    Regards
    Vinay.

    see this link
    to send xls as attachment.
    http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm

  • Text no longer prints for xls files from preview

    After upgrade to Mavericks xls files no longer print text or save it into pdf files.  The text is visible on the preview screen in print but does not get transfered into the files or to the printer.  I deleted and reloaded the printers in preferences and reset the PRAM.  That did not solve this issue.

    <i>Moderator Comment<br>
    (Duplicate thread closed. Continue at [/questions/1000178]) -m) </i>

  • Numbers suitable for xls files?

    Is it possible to import Excel files in Numbers and subsequently work on them?
    If not, which app should I use?

    Numbers can import Excel spreadsheets, though Numbers for iPad cannot handle all the formulas and formatting Excel can. There is an FAQ page here that you should look over before deciding:
    http://support.apple.com/kb/HT4067
    There are other apps that can import and edit Excel spreadsheets. Documents To Go from Dataviz is one that is commonly recommended, and you may find others if you search the iPad forums for "Excel".
    Regards.

  • Using Escape character for Multi character delimiter for flat files in IKM

    Hi
    I have an IKM using Jython, it is working fine for single character delimiter. But as per requirement I have to use multicharacter delimiter ;" (semi colon and double quotes).
    I am taking this into variable using
    filesep = "<%=snpRef.getSrcTablesList("", "[SFILE_SEP_FIELD]", "", "")%>"
    but it is giving lexical error.
    Can anybody help me with the use of escape character in current scenario?
    Any other suggestions are also appreciated.
    Thanks
    Ankit

    Hello,
    A small tweak may solve your problem:
    Instead of :
    CONCATENATE wa_condstr ' bukrs = ' pa_bukrs INTO wa_condstr SEPARATED BY space.
    Use:
    CONCATENATE wa_condstr ' bukrs = ' 'PA_BUKRS' INTO wa_condstr SEPARATED BY space.
    Then use this in SELECT.
    Anyways for your answer the escape character for apostrophe is an apostrophe )
    Try this you will understand:
    DATA:
    V_STR TYPE STRING VALUE ''''.
    WRITE: V_STR.
    BR,
    Suhas

  • Encryption Type in Microsoft Excel 2013 (XLS file)

    Hello,
    I am creating a password protected file of format Excel 97-2003 Workbook (.xls) using Microsoft Office 2013.
    I have written a java program to read password protected excel file using POI API. I am able to read .xlsx file using this API, but I am not able to read .xls file. It throw error : org.apache.poi.hssf.record.RecordFormatException: Unknown encryption
    info 4
    Using same java code I am able to read .xls file if I use Microsoft Office 2010 to create this file. 
    As per POI API documentation:
    Apache POI contains support for reading few variants of encrypted office files:
    XLS - RC4 Encryption
    XML-based formats (XLSX, DOCX and etc) - AES and Agile Encryption
    I think in Microsoft Office 2013, encryption type has been change for XLS file. So I want to know that how can I solve this issue. Also please let me know how to configure Encryption Type in Microsoft Excel 2013 Excel file.
    OS is Windows 8(64-bit).
    Thanks
    Vishal

    Hi,
    Please see the article and check if it is helpful:
    https://issues.apache.org/bugzilla/show_bug.cgi?id=35897
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    This is the forum to discuss questions and feedback for Microsoft Excel, the issue is more related to Office/Java develop, I recommend you connect the POI provide to get more help.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Numbers not opening .xls files (same with pages...)

    hi,
    just got my new imac and i've been searching for information as to why i can't open .xls or .doc files in iwork. everything is up to date. it worked on my old mac. any suggestions? i tried renaming the extensions to .numbers or .pages and still won't open.
    thanks,
    susan

    If you are trying to open them by double-clicking on the document, then select one of the documents. Press COMMAND-I to open the Get Info window. In the Open With panel select Pages from the dropdown menu then click on the Change All button. Repeat for .xls files except choose Numbers.
    Or open the files from within Numbers or Pages using the File menu in the program. Then save the file as a Numbers or Pages document using Save As (hold down the OPTION key and select Save As in the File menu.

  • What is the best, most efficient way to read a .xls File and create a pipe-delimited .csv File?

    What is the best and most efficient way to read a .xls File and create a pipe-delimited .csv File?
    Thanks in advance for your review and am hopeful for a reply.
    ITBobbyP85

    You should have no trouble doing this in SSIS. Simply add a data flow with connection managers to an existing .xls file (excel connection manager) and a new .csv file (flat file). Add a source to the xls and destination to the csv, and set the destination
    csv parameter "delay validation" to true. Use an expression to define the name of the new .csv file.
    In the flat file connection manager, set the column delimiter to the pipe character.

  • Payroll.xls file for Mid Year Go Live

    Hi All,
    I want to use the program the program HINUULK0 for uploading data into
    tables t558b and t558c. The SAP help documentation says that it provides a
    template payroll.xls for entering the data. I've not been able to spot this
    file yet.
    From where I can get the PAYROLL.XLS file?
    Please help.
    Thanks
    Atin

    Dear Atin,
    For table T558B use format :-
    Client
    Personnel Number
    Sequential number for payroll period
    Payroll type
    Payroll Identifier
    Pay date for payroll result
    Period Parameters
    Payroll Year
    Payroll Period
    Start date of payroll period (FOR period)
    End of payroll period (for-period)
    Reason for Off-Cycle Payroll
    Sequence Number
    For Table T558C use format :
    Client
    Personnel Number
    Sequence Number
    Country grouping
    Wage type
    Key date
    Rate
    Number
    Amount
    Hope this helps.
    Kindly reward if useful.
    Regards & Thanks,
    Darshan Mulmule

  • How do I copy my old xl files from my XP machine to operate on xl for Mac on my new iMac.  When I copy them onto a stick and transfer them it automatically makes them xls files which are then corrupted when I try to open them in xl for mac

    How do I copy my old xl files from my XP machine to operate on xl for Mac on my new iMac.  When I copy them onto a stick and transfer them it automatically makes them xls files which are then corrupted when I try to open them in xl for mac

    Sorry, yes this is Microsoft Excel.  The Microsoft XP has Excel files denoted as xl, the later versions of Microsoft Excel are denoted as xls files.  The later verions of Microsoft Excel open the xl files OK, does Excel for Mac not able to do this?

  • After upgrading to ios6 my iphone will not open .xls files in emails with the default viewer. Is there a fix for this? The same emailed .xls files still open on my ipad using ios5 while viewing email like they did on my iphone prior to upgrading.

    After upgrading to ios6 my iphone will not open .xls files in emails with the default viewer. Is there a fix for this? The same emailed .xls files still open on my ipad using ios5 while viewing email like they did on my iphone prior to upgrading. I have no special software like numbers or anything else installed on either device. Just using the default viewer provided by apple for viewing email.

    The attachment is an .xls excel 97-2003 spreadsheet. I viewed the file in the email and did not edit it with any software. I can forward the file to anyone that is may want to check it out to see if they can help me. I was wondering if there was some way of forcing another ios6 install on my phone and maybe that would solve it.
    Is there anyone out there that is viewing .xls files in email using ios6 w/o any other software installed like numbers or any other add ons? I am not upgrading my ipad from ios5 to ios6 so I can still continue to view the emails on my ipad. Is there an email viewer .xls plug-in that will be availablle in the next ios6 update?

  • Using XML for Live Data- How do you get the XML file to pull data from another xls file?

    Post Author: joseph_atkinson
    CA Forum: Xcelsius and Live Office
    I was wondering you can help me.
    I am currently receiving an *.xls reports on a daily basis (same report, same format, different data). I have put this report into Crystal Xcelcius Designer 4.5 Professional version and created the dashboard I want.
    I am aware of the xml mapping functionality where I can map from the *.swf straight to a database. However, is it possible to map to an xls file that will change on a daily basis? (obviously I can you the refresh button in Designer, but I need to automate this process).
    Your help really would be appreciated.
    Joe

    In Firefox, I'm seeing a bad icon for your zip files. I can
    download it,
    but it looks like something might be amiss with your zip
    files
    themselves.
    Al Sparber - PVII
    http://www.projectseven.com
    Popup Menus | Image Galleries | CSS Tutorials & Templates
    Newsgroup: news://forums.projectseven.com/pviiwebdev/
    CSS Newsgroup: news://forums.projectseven.com/css/
    DW Newsgroup: news://forums.projectseven.com/dreamweaver/
    "Conjurer" <[email protected]> wrote in message
    news:e8upg1$kee$[email protected]..
    > Conjurer wrote:
    >> Boy - I thought this was as simple as creating an
    <a> tag link to the
    >> file like you do with Word docs and Excel xls files.
    So I wrote my
    >> link as follows:
    >>
    >> <li><a
    href="OMGMASalSvy/Survey.zip">2006 Adminsistrators
    >> Survey.zip</a></li>
    >>
    >> But when I click on it I get a big nothing!
    >>
    >> I put the files out there on the host and the
    Word/Excel links all
    >> work great.
    >>
    >> Is there some secret magic to this one?
    >>
    >> My page links are at:
    http://www.omgma.com/surveyforms.htm#Documents
    >>
    >> Thanks for any help.
    >
    >
    > I guess it is working in IE but not in Firefox.... hmmm

  • Initially I had downloaded Document 2 (Free) application to view my doc, ppt and xls files. I was not able to edit the files so there was an option for upgrade the Document-2 free to paid version. I have upgraded the Document 2 application.

    Initially I had downloaded Document 2 (Free) application to view my doc, ppt and xls files. I was not able to edit the files so there was an option for upgrade the Document-2 free to paid version. I have upgraded the Document 2 application. But on my iPad now there are to application present Docemnt-2 (Free) and Document-2. I am not able to open any existing document using the upgraded version of application. How do I connect all the existing txt,PPT,XLS doccument to the new upgraded Document-2 application and then to edit it on my iPad.

    As suggested I had deleted the free application and did a hard restart the iPad. I have again copied the document using iTunes. But I am not able to edit any document using this app. Document 2 (paid version) supports editing features of the txt/ xls /ppt files. Is there any problem while loading the Document 2 app. If I reload then do I need to purchase again?

Maybe you are looking for

  • Movies media playing error from Pen drive to tv

    hi all, i am facing some weir problem here, during my pen drive playing movies on tv, its show a lot of cracked icons as attached photos. and the cracked icon will stop my movies continued to play smoothly...actually i save 18 movies clips only but e

  • Transport with return code 12 ,short dump with 'DBIF_RSQL_SQL_ERROR'

    Dear All, My trasnport contains infoprovider. DTP,transpformations, character realtionships , aggregation levels ,web templates, programs. I got a transport failed with Return code 12, and it is showing message : Program terminated (job: RDDEXECL, no

  • 36 days of music to 14 days....How do I get music back

    I used to have 36 days of music on my library, 40 movies, 50 Itouch apps and when I logged on I now only have 14 days of music and 12 movies. All my purchased items and playlists are gone as well. They are not in my recycle bin. What can I do? Thanks

  • Displaying Scientific Notation

    I see a lot of people asking questions about how to prevent showing Scientific Notation.  I have the opposite problem, I can't seem to show scientific notation. In the field I'll Enter: 2.5E-5 After commit, the value show: 0 If I look in the database

  • Photoshop elements 9. Why does it keep saying "editor busy"?

    Every time I try to edit a photo in PSE 9 it says unable to complete command. Editor busy. I don't know what it's busy doing but how do I correct this problem?