Error with excel upload

Hi
it is going to dump.
in the debugging , when it reaches the alsm_excel_internal_table
at filename parameter it is going to dump
in error it is saying the wrong with filename(v_fname).
i have declared v_fname and p_fname as
parameters: P_FNAME LIKE RLGRAP-FILENAME MODIF ID P1,
UNIXFILE LIKE RLGRAP-FILENAME MODIF ID P2.
DATA:   V_FNAME TYPE STRING.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
MOVE P_FNAME TO V_FNAME.
LEN = STRLEN( V_FNAME ).
LEN = LEN - 3.
IF V_FNAME+LEN(3) = 'xls'.
            PERFORM EXCEL_UPLOAD.
ELSE.
. PERFORM TEXT_UPLOAD.
FORM EXCEL_UPLOAD .
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        FILENAME                      = V_FNAME
        I_BEGIN_COL                   = '1'
        I_BEGIN_ROW                   = '1'
        I_END_COL                     = '10'
        I_END_ROW                     = '100'
      TABLES
        INTERN                        = I_XLTAB
     EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3
    IF SY-SUBRC <> 0.
    ENDIF.
.ENDFORM.
pls give me a suggestion ????

Hi,
Even though u move p_fname to v_fname , the decleration of v_fname should be of type rlgrap-filename because the filename(of ALSM_EXCEL_TO_INTERNAL_TABLE ) is of type RLGRAP-FILENAME .
Or u can do this
parameters: P_FNAME LIKE string MODIF ID P1,
UNIXFILE LIKE RLGRAP-FILENAME MODIF ID P2.
DATA: V_FNAME TYPE RLGRAP-FILENAME .
LEN = STRLEN( P_FNAME ).
LEN = LEN - 3.
MOVE P_FNAME TO V_FNAME.
IF V_FNAME+LEN(3) = 'xls'.
PERFORM EXCEL_UPLOAD.
ELSE.
. PERFORM TEXT_UPLOAD.
Regards,
Sachin M M
Edited by: Sachin Mathapati on Jun 13, 2008 4:31 PM

Similar Messages

  • Problem with excel upload function

    Hello all,
    I'm currently doing a modification in a program that uses this function:
      call function 'KCD_EXCEL_OLE_TO_INT_CONVERT'    
           exporting                                  
                filename    = p_file                  
                range_begin = 'A1'                    
                range_end   = 'I9999'                 
           tables                                     
                intern      = t_excel                 
           exceptions                                 
                others      = 1.                      
      if sy-subrc <> 0.                               
        berror = 'X'.                                 
        message i208(00) with 'Error Load Excel File'.
        stop.                                         
      endif.                                          
    instead of upload the content of the excel to internal table, its literally copying the content of my clipboard to it.
    Someone know why this is happening?
    My version of SAP is the 4.0b and I looked for the alsm_excel_to_internal_table function, but my version don't have it.
    Thanks

    Hi,
    an excel sheet can be uploaded in to a internal table of similar sequence and type using the following FMs
    TEXT_CONVERT_XLS_TO_SAP
    ALSM_EXCEL_TO_INTERNAL_TABLE
    I think you already checked with the FMs UPLOAD and WS_UPLOAD.
    Thanks,
    Teja.

  • Coldfusion MX7 error with file upload

    Hi all,         I am using coldfusion mx7 server. While upload an excel file with(97-2003) format, I am getting the following error:  Unable to construct record instance, the following exception occured: null
    I am getting this error when I enters some data and save in my  desktop with the format(97-2003) and after using a cfx tag to dump the  uploaded data, I am getting this error. But if I just upload the  template only without entering any data it will shows/dump the column  names in template..
    Is there any way to upload the same excel file with MX7?
    Thanks in advance

    To answer your final question: yes of course it's possible to upload any file type with any version of CF.  One has no dependency on the other.
    As for the rest of it: without seeing some code, it's impossible to really:
    a) understand what you're asking;
    b) work out what might be causing the problem.
    Adam

  • File extension error with Excel files transferred to PC

    I am syncing files with my PC (Documents to Go).  I noticed that Excel files that were accessible and functioning prior to the first week in September no longer work (interesting coincidence with the update to Gingerbread).  I get a "'file.xls', is in a different format than specified by the file extension" message when I try to open any files modified by the Droid after that date.  The same error occurs if I use the Sync tool or access the files from my PC using Windows Explorer.   The files work fine if I email them from the Droid to the PC or if they were modified PRIOR to the first week of September.  I also notice that picture files (jpg) after that date can not be opened but work fine via email to my PC.   The file extension names do NOT change and the same error occurs when I upload to another PC.   How can I fix this problem?  I can only back up my files by emailing them........

    (testing update) 
    DataViz responded with a couple of suggestions, here is my response:
    Here are some additional tests I just completed which puts the cause back onto DataViz:
    I created a simple Excel file on my PC and saved it as an ‘.xls’ file. (test.xls)
    I synced it with my Droid and the file could be opened on my PC and the Droid. (I used both the Sync folder file and opening the file via Windows Explorer using the Mass Storage mode)
    I then opened the file on my Droid and saved it (no changes to the xls file were made) and then synced with my PC.  The error now occurred by both attempting to open the file in the PC ‘Docs to Go’ folder and via Windows Explorer. 
    I then emailed the same file.  I opened the email on my PC and saved the test.xls file.  It opened without errors.
    I did the test again using the latest Excel format ‘.xlsx’ with the same failure.
    I am running version 3.003 (961) Documents to Go
    Bottom line; when Excel files are ‘saved’ on my Droid in Documents to Go, they can no longer be opened on my PC by either Sync or Windows Explorer.  The same file works fine if mailed from Documents to Go.  Documents to Go is corrupting the file in some way that prevents the transfer of that file to another device.
    This still may be associated with the Droid OS upgrade, I am waiting for a response from DataViz...............

  • SSRS Exporting causing error with Excel

    Hello,
    I would search this but I don't know what key terms to try, but here is my problem. Created a report in Report Builder and see it on SSRS and can run it. I get the data back I need. When I try and export to Excel I get "Excel found unreadable content
    in '<report name>.xlsx'. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes." When I click Yes I get a blank document. If I save the document to my computer and open it I get an option to repair
    which says "Replaced Part: /xl/worksheets/sheet1.xml part with xml error. Illegal xml character. Line1, column 3344028". I have rebuilt the query too.
    Has anyone else seen this, or have a link to a set of solutions I can test?
    This is using SSRS 2012.

    I know... I am just doing what I am told. I said the same thing to the person asking for it.
    They have no idea what they are asking for.
    Run this query to tell you the Average # of Entries you have per PC. BTW my lab has an average of 327! Far more that the 186 listed in the blog post!
    declare @ARP BIGINT
    declare @PCCount BIGINT
    Set @ARP = (select count(*) from dbo.v_GS_INSTALLED_EXECUTABLE)
    Set @PCCount = (Select count(*) from v_GS_COMPUTER_SYSTEM)
    Select
    'Ave Entries per PCs ' + Convert(varchar(250), sum(@ARP/@PCCount+0.001)),
    'Number of Installed EXE entries ' + convert(varchar(250), @arp),
    'Number of pages '+ convert(varchar(250), sum(Round(@arp/80,0)+1)),
    'Number of papper Bundles '+ convert(varchar(250), round(sum(@arp/40000.0),2))
    Then you need to send them this blog post along with the detail from the query above.
    http://be.enhansoft.com/post/2009/10/26/How-to-Perform-a-Basic-Software-Audit.aspx
    http://www.enhansoft.com/

  • BW error with Excel 2007

    Hi Expert,
    I found some critical issues that in Excel 2007
    1,
    can not read 20000 records at one time, it will pop upan issue window with the error message "Client out of memory" , but it works well in Excel 2003.
    2,
    When I tried to open the other report it pop up another error message "The program will now terminate Please refer to the trace for further infomation",but it works well in Excel 2003.
    Are there any experts can give some suggestions ?
    Len

    Hi
    please refer teh following notes : 1260213, 1242583, 1052761 1175947.
    Regards, Hyma

  • WEB ADI Error with Excel - Compile Error

    I am trying to export data to Excel. The process works until the data is loaded to Excel whereupon I get a Microsoft Visual Basic error "Compile Error: User-defined type not defined.
    Behind the error message is several screens from VB with the following line highlighted "Dim oParser As New SAXXMLReader30"

    Please post the details of the application release, database version and OS.
    I am trying to export data to Excel. The process works until the data is loaded to Excel whereupon I get a Microsoft Visual Basic error "Compile Error: User-defined type not defined.Can you find any details about the error in the BNE.log file? -- How to Create a BNE Log For Web Adi Issues and Errors? [ID 817023.1]
    Behind the error message is several screens from VB with the following line highlighted "Dim oParser As New SAXXMLReader30"Please see if (Web ADI: Compile Error - Userdefined Type Not Defined LEDGER_IDDetails [ID 1319992.1]) is applicable.
    Thanks,
    Hussein

  • Error with Excel 2007

    Dear All,
    We developed a planning application using BPS.  The existing systems had Excel 2003 installed in them.  The Excel layouts were designed with heavy Macro coding in the background.
    Recently Excel 2007 was installed in our machines.  But, unfortunately, the values displaying on the Excel are separated by comma instead of decimals (this is an excel setting,which was also changed, but still the error exists).  As a result, the data save on the excel always gives an error due to the comma.
    Is there any way, we can overcome this error.  Also the macros do not work when the planning folder is executed.
    There is no problem when the same layouts are run on Excel 2003.
    Any suggestion/recommendations/solution would be appreciated.
    Thanks,
    Aby

    Thanks for your response.
    We already checked these settings.  But aren't SAP settings relevant for a given user?  The same user can execute the BPS Layout perfectly fine in other PCs that have Excel 2003 installed.
    We also changed the setting that's available in the Excel, but again of no use.
    The same PC has Excel 2003 installed too, and normal numeric entries distinguish between commas and decimals as expected.
    These have not yet resolved the issue we face with commas being recognized instead of decimals when we execute the Planning Layout.  For this reason, macros are getting affected.
    Please keep posting...
    Regards,
    Aby

  • Error with Excel 2007 display.

    We have recently upgraded to MS office 2007 and using BW 3.5 bex .When i ran workbook in Excel-07 , i am getting symbol £ instead of $ for a curreny column .Value for that cell is correct in dollars but the symbol is showing worng .if anyone encountered with this type of problem Pls let me know the solution.
    I am getting correct values with CAD and other Currency's.
    Regards
      KK

    Hi,
    This may the settings in Windows, during installing Win OS it will ask some informations like currency, time and date format, etc.. check in the regional setings of your system.
    Start->Control panel->regional option.
    May help u,
    Reg,
    Vishwa.

  • Error in excel uploading

    Hi All,
    i am accessing an excel file which has date in one of its filed in the format "DD/MM/YYYY" and this field is taken as numeric field when i execute the following code
    if (cell13.getCellType() == cell13.CELL_TYPE_NUMERIC)
            Cellvalue = String.valueOf(cell13.getNumericCellValue());
    String temp = Cellvalue.substring(6,10) + "-" + Cellvalue.substring(3,5) + "-" +  Cellvalue.substring(0,2);
    java.sql.Date issuedt = java.sql.Date.valueOf(temp) ;
    user_details.setPRJ_EN_DATE(issuedt);
    the value in the variable "Cellvalue" is some integeral value coz of which substring function gives an error.

    Hi Alka,
    <a href="http://jakarta.apache.org/poi/apidocs/org/apache/poi/hssf/usermodel/HSSFCell.html#getNumericCellValue()">getNumericCellValue()</a> returns double. So, you can not assume that
    String.valueOf(cell13.getNumericCellValue());
    would return "DD/MM/YYYY" and you can not parse it in this way.
    Best regards, Maksim Rashchynski.

  • Can't open Dashboard Design - Error with Excel

    HIi, I can't open an already created Dashboard Design beacuse when I'm going to open it, it appears the following error: " Couldn't connect to Microsoft Excel. To avoid the damage of the data, the program should by close."
    Anyone of you have the same problem? I need help!
    Thank you
    Edited by: Estibalitz de la Cal on Jan 18, 2012 3:16 PM

    Hi,
    It appears that your current Excel program is corrupted.
    2 solutions :
    - Show task control panel (CTRLALTDEL) and kill all the processus linked to EXCEL
    or
    - reboot your computer to kill all the  EXCEL processus hidden which cause your error.
    Run again Dashboard Design and tell us if it's running correctly.
    Regards,
    William

  • Error with excel data mining and windows 8.1

    Hi I found this thread online which is exactly the same issue I am having. Has this problem been resolved?
    "I installed SQL Server 2012 SP1 Data Mining add-in for Excel 2013 64 bit on Windows 8.1 64 bit Enterprise. I then ran "Getting Started" to complete the add-in setup and connect to the SSAS DB. After I opened the "Sample
    Excel Data" file to test I noticed the "Table Analysis" tab under "TABLE TOOLS" appeared on the ribbon blank (without the text "ANALYZE" on the tab). When I clicked on that tab I was able to see the "Table Analysis Tools"
    buttons but I keep getting the "Object reference not set to an instance of an object" error message when I try to run any one of them and exiting out of Excel disables the data mining add-in. Is this a known issue and if yes is there a
    hotfix available? Thank you."
    I've also download the follwing hotfix which hasn't helped
    http://hotfixv4.microsoft.com/SQL%20Server%202012/sp1/SQLServer2012_SP1_CU7_2894115_11_0_3393_/11.0.3393.0/free/470544_intl_x64_zip.exe 
    Any assistance would be appreciated!
    Concatch

    Hi Concatch,
    Which edition of Excel 2013 are you using? The supported editions of Office supported by the SQL Server 2012 SP1 Data Mining Add-ins for Microsoft Office are as follows:
    Professional
    Professional Plus
    Ultimate
    Enterprise
    Besides, make sure the cube is hosted in a SSAS 2012 instance.
    Regards,
    Mike Yin
    TechNet Community Support

  • Error in Excel 2007.

    We have a user who gets an error when he will start the BPC for Excel in Excel 2007. And he can not open the BPC for Excel. The following error message appears: "In order to open the file Ev4Excel.xla the file had to be repaired or it was forced to remove unredable materials. The workbook has lost its VBA projects, ActiveX controls and all other programming functions." And it can not open the BPC for Excel
    The user also has Excel 2003 installed on his computer and if he uses Excel 2003, it works.
    Is it possible to have both Excel 2003 and Excel 2007 installed on the same computer and run SAP BPC against both
    Are there some Excel add-ins that you have to install when you install the Excel 2007?

    Hi,
    In SAP BPC installation guide you will find below recommendation
    Note: In order for the software to function correctly in Excel 2007, you must
    install the Microsoft.ACE.OLEDB.12.0 provider, which you can get from the
    Microsoft website. The provider must be installed on the Application server.
    This provided in 25mb in size. We installed it on our application server. but still some errors with excel 2007 is not resolved. Finally we tried with office 2003, but still error continued. When we moved back to office 2007, some excel-addins which were available earlier went missing.
    regards,
    Lokesh Nandula

  • I'm in iphoto loop with Facebook that says there's a problem with IPhoto uploader. Try again later"  It's an eternal loop and no matter what it puts me back to Setup to publish IPHOTO every time and then will not publish.

    I'm in an Iphoto loop with iPhoto uploader error and Facebook.  I cannot post to Facebook as it sends me back to setup again and then says there is an error with iPhoto uploader.  "Try again later"  This has been going on since I joined Facebook.  Cannot figure out what to do

    have you tried posting this question in the iPhoto forum? https://discussions.apple.com/community/ilife/iphoto

  • KP06 excel upload, KP66 report painter error.

    Hello everyone,
    I am attempting to upload our budget planning into KP06 via the excel flexible upload function.
    I have created a new user profile via KP34.
    I have created a new layout via KP65.
    I have saved the "Generic File" and the excel file created when assigning the layout to the planner profile in KP34.
    I enetered the needed information into the excel spreadsheet created above, and saved it as a .txt file.
    When I go in to KP06 and attempt to upload the .txt file through KP06, I am getting the following Message:
    "The row inserted cannot be processed manually"
    When I select this message for mare detail, here is what I see:
    The row inserted cannot be processed manually
    Message no. K9 072
    Diagnosis
    You have entered a new row.
    The characteristic entered in the lead column or the combinations of characteristics entered in the lead columns cannot be processed manually.
    System Response
    The entered row is not accepted.
    Procedure
    Analyze the cause of the error in the corresponding transaction.
    I believe that has to do something with the file format or how I setup the layout in KP65.  However, I can figure out what the issue is.
    I am very new to using SAP Report writer/painter.
    Does anyone have any suggestions in resolving this issue?
    Thanks in advance for your help,
    Rhonda

    Hello,
    Thank you for the replies.  I did resolve the issue above (K9 072), the account group gave me a cost center and cost element that was blocked for use.  Once I usees a valid cost center and cost element, the error went away.
    We are using SAP version 4.6
    With that said... I did receive another error, "Enter a numeric value"
    Enter a numeric value
    Message no. 00 052
    The valid cost centers are alphanumeric, not just numeric.  For instance:  IT1 is a cost center.
    Can alphanumeric values be used?  If so, how to I go about making them work with the upload in KP06?
    I have looked at the layout in report writer (KP66) and I see no options on allowing alphanumeric values.  However, I am very new to this and just may be missing it.
    Any suggestions would be greatly appreciated.
    Thank you very much!
    Rhonda

Maybe you are looking for

  • How do I save an image I have worked on in "Editor" into a file in "Organizer?

    I have Photoshop Elements 11 and find that I cannot take images from email, work on them and then file them in the organizer.  I can get images off of phones and digital cards but not from my gmail.  What do I do?

  • Gnome 3.2 Audio Static

    After installing the latest updates for Gnome 3.2 and two immediately after related to PulseAudio, I am now getting an annoying low buzz in my speakers and audio sounds as if it is being scaled back to a lower bitrate or sample rate (if that makes se

  • Importing from windows media

    how do i copy my media player library into itunes, only the songs that i have put on my computer from a cd went across, the ones i have downloaded wont work in itunes. any way to make them all work?

  • Gnome shell lags with open source radeon driver

    Greetings. I own a radeon 5870m and have been having some issues with gnome for a long time that are bugging the crap out of me. I never seemed to obtain a smooth gnome experience, specially desktop effects and some 2d operations like resize are noti

  • I am debating between the 100-400 mm F4.5-5.6 L Lens and the 300 MM F4L Lens. Any advice?

    I would like to purchase one of the two lenses listed above. Looking for advice? I will take mostly wildlife and some sports pictures. I want it to be super sharp! Thanks so much. Solved! Go to Solution.