Upload excel file not working with FM "HR_KR_XSTRING_TO_STRING"

Hi Colleague,
Can you let me know if there is any other Function module which can be used to upload an Excel file, as the FM "HR_KR_XSTRING_TO_STRING" is not existing in GTE system. It would be great if you provide the link which explains  on how to do it.
Thanks & regards,
Roopesh

Hi,
Use this instead.
PERFORM gui_upload.
FORM gui_upload .
  CALL FUNCTION 'GUI_UPLOAD'
       EXPORTING
         filename                      = lv_filename
         has_field_separator           = 'X'
       TABLES
         data_tab                      = it_file
      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 text-a12 type 'I' DISPLAY LIKE 'E'.
    EXIT.
  ENDIF.
ENDFORM.                    " gui_upload

Similar Messages

  • Link to an Excel file not working with chrome but working with IE

    Hi,
    I have used following code to create a link to an excel file so that my users can access it... it's working fine with firefox and IE, but not with chrome browser
    Report link
    please advice

    Hi,
    I did look your sample.
    Did you read link I did post?
    >
    Links to local files on pages that were retrieved via HTTP(S) are deliberately disabled in Mozilla/Firefox, because they can be a security risk, and have been used in attacks in the past.
    >
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • I started to download Maverick but then read that Word and Excel do not work  with Maverick.  I hit pause on the download. How do I stop the download.  In non technical terms please!

    How do I stop the download of Maverick on my MacBookPro?  I started downloading then discovered that 2008 Word and Excel do not work  with Maverick. I have too many files in the 2008 version to upgrade them at this time.  I just need instructions in non technical terms to stop the Maverick download.

    I did the same as Tapmr and have paused the "upgrade".  So am I to understand that the upgrade only downloads and will not automatically install it?  I am an extreme novice here, and cannot afford any issues after I upgrade/download.  I don't know how to make a clone copy as you suggested either.
    I need assurance that if the upgrade is allowed to continue that I will be able to delete the upgrade downloaded and continue on as before with my regular system. 

  • Upload Excel is not working

    Hi all, Excel upload program is not working in SAP CRM 7.2 Service Pack 10 with IE 11. Same is working fine in SP08. Below is the code.
    The debugger is not coming into Servervent handler method . any notes suggested ? sorry for posting the big code lines.
    <thtmlb:fileUpload id="fileUpDown" />
    <thtmlb:button id = "UPLOAD"
                    iconSrc = "ICON_XLS"
                    tooltip = "Upload Excel file"
                    text = "Upload"
                    onClick =  "upload_file( );" />--%>
      <thtmlb:textArea id  = "Excel_Data"
          text   = " "
          width  = "0"
          height = "0"
          rows   = "0" />
    <%-- Registering server event--%>
    <bsp:htmlbEvent name = "nameUpload"
                      id = "idUpload"
                      onClick = "SERVEREVENT"
    <%--                 serverEvent"--%>
                      p1 = "p1"
                      p2 = "p2"
                       p3 = "p3" />
    <script language="javascript"  type="text/javascript">
    function upload_file( ){
    var iRow="1",
          jCol="1",
          ActiveRows="0",
          fileName="",
          sValue=" ";
    fileName=document.getElementById("<%= controller->component_id %>_fileUpDown").value;
    if ( fileName == "" ) {
    alert("Upload." + "\n" + " " + "\n" + "Please choose an Excel file as source.");
    return;
    if ( fileName != "") {
    <%--alert("Upload." + "\n" + " " + "\n" + "This file is to be uploaded:" + "\n" + fileName);--%>
    var r=confirm("Upload." + "\n" + " " + "\n" + "This file is to be uploaded:" + "\n" + fileName);
    if (r!=true)
    return;
    Excel = new ActiveXObject("Excel.Application");
    Book = Excel.Workbooks.Open( fileName );
    ActiveRows = Book.Worksheets("Input").Range("A1.IV64000").CurrentRegion.Rows.Count;
    <%--ActiveRows = Range("A1.IV64000").CurrentRegion.Rows.Count;--%>
    for (iRow=1; iRow<=ActiveRows; iRow++) {
    for (jCol=1; jCol<=4; jCol++) {
    cData = Book.Worksheets("Input").Cells(iRow,jCol).value;
    <%--cData = Cells(iRow,jCol).value;--%>
    sValue = sValue.concat(cData,"\n");
    sValue = sValue.concat("\n\r");
    document.getElementById("<%= controller->component_id %>_Excel_Data").value = sValue;
    Excel.Workbooks.Close;
    <%--return statement here calls the server event SERVERVENT--%>
      return nameUpload();
    </script>
    regards,rama

    Hello all,
    Excel = new ActiveXObject("Excel.Application");
    the above statement is not working in Service pack 10 CRM 7.2.  any help is appropriated
    thanks,rama

  • Upload Excel file to itab with more than 255 chars

    I want to upload an excel file to internal table with more than 255 characters in one of the field. However it restricts the upload to only 255 characters. Currently I am using the code
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
      EXPORTING
    i_field_seperator = 'X'
    i_line_header = 'X'
         i_tab_raw_data = wa_tab_raw_data
         i_filename = p_file
      TABLES
         i_tab_converted_data = <fs_table>
      EXCEPTIONS
         conversion_failed = 1
         OTHERS = 2.
    where <Fs_table> is a dynamic structure in which one column is defined as string. We cannot use FM ALSM_EXCEL_TO_INTERNAL_TABLE as it has a restriction of only 50 characters and I dont want to create a Zstruture in the system.

    It wont work for excel file type.However, with FM Gui_Upload and use a text tab-delimited file we can upload long text.
    Here is the code.
    CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = p_files
          filetype                = 'ASC'
          has_field_separator     = 'X'
        TABLES
          data_tab                = <fs_table>
        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.

  • File upload custom renaming not working with {KT_ext}

    Hi,
    I used many times custom renaming with file upload, and used {KT_ext} for file's extension, but in first ADDT project is not working. I use this:
    $uploadObj->setRenameRule("{GET.id_cd}_{track}.{KT_ext}");
    Does anybody know if {KT_ext} is broken in ADDT?
    Thank you,
    Ruben

    Hi Günter,
    {track} and {id_track} are both table fields, and setRenameRule worked right with both, but it didn't with {KT_ext}.
    I've changed {track} with {id_track} in first page, and it stills fail to put extension.
    But maybe is this, in first page the column for Update Transaction is like this
    $upd_cds_peces->addColumn("mp3", "FILE_TYPE", "POST", "mp3");
    and in the second page (where it works right) is
    $upd_cds_peces->addColumn("mp3", "FILE_TYPE", "FILES", "mp3");
    Althought in both cases the file is uploaded and DDBB field is filled, maybe in first case the TNG doesn't expect a file and cannot find its extension.
    I'll try to change it,
    thanks,
    Ruben
    Edit: Yes, it was this... Now it works. Thank you Günter for your help!

  • Download/Upload and Properties not working with Netstorage

    I had applied some authorized updates to a SLES 11, SP2, (OES 11.1, PATCHLEVEL=1) running eDirectory 8.8 SP7, server and rebooted a week ago.
    I didn't notice anything wrong initially and thus was living in stupid comfort! :O
    I was able to get to the Novell "Welcome" web page, and I can get into iMonitor and Remote Manager, but when I try iManager, I get "Error 503 Service Unavailable".
    After looking and trying various postings in the Novell forum unsuccessfully, I loaded iManager on a Linux Desktop and I am working with that, but I can't help think that is somehow related to my netstorage problem.
    I am able to successfully login to netstorage and I can navigate around to folders OK.
    Local users have a mapped drive and they are working OK with the nss volume.
    However, then I log in as admin and select a folder and choose Properties, I get "Error 500 Server Error" and if I try it again after that I get "Error 503 Service Unavailable"
    And, when anyone tries to use the other options, such as Upload or Download, nothing happens.
    I verified that Apache2 is running and that tomcat6 is running.
    Below is the catalina.out file for chucks-n-giggles.
    May 16, 2013 1:09:49 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/default:/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64:/usr/lib
    May 16, 2013 1:09:49 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    May 16, 2013 1:09:49 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 788 ms
    May 16, 2013 1:09:49 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    May 16, 2013 1:09:49 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
    May 16, 2013 1:09:50 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    May 16, 2013 1:09:50 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1092 ms
    Thanks for your time!
    Stan

    Originally Posted by Demaximis
    I looked at the /var/log/apache2/error_log right after I tried to bring up the properties of one of the netstorage folders and this is what I see:
    [Fri May 17 08:47:27 2013] [error] (111)Connection refused: proxy: AJP: attempt to connect to 127.0.0.1:9009 (localhost) failed
    [Fri May 17 08:47:27 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
    [Fri May 17 08:47:27 2013] [error] proxy: AJP: failed to make connection to backend: localhost
    Does this point to where the issue is?
    I'm not 100% sure if that's the culprit or not. I didn't think netstorage used an odd port like that.
    I vaguely remember encountering this before a long time ago.
    Out of curiosity, is the actual server name (like: oes11sp1.abc.com) in your /etc/hosts
    AND
    is that the same DNS name you are using to access the netstorage server?
    In our case, we use a different DNS name vs. what the server name really is and we have to adjust the /etc/hosts correctly for some of the internal components to work.
    Also, when you installed OES11, did you accidentally leave the checkbox checked to add the local host definition to the /etc/hosts?

  • Reading the EDI X12 file not working with the patch 8233048

    Hi
    I have installed the latest path 8233048 on my windowsXP system, now I am not able to see the File being polled and processed.
    In b2b.log I can see the last message as "oracle.tip.adapter.b2b.data.MsgListener:run start listening on message" after that no log.
    In b2b_dc_transport.log, I can see only
    2009.02.07 at 20:35:45:236: B2BStarter thread: (DEBUG) TransportProperties.TransportProperties():http.receiver.registry_port=5110;smtp.receiver.protocol=imap;PROTOCOL_ENDPOINT=null;file.receiver.polling_interval=30;polling_interval=30;http.receiver.instance_name=IP;
    2009.02.07 at 20:35:45:266: B2BStarter thread: (DEBUG) initialize TransportReceiver: [IRIS_Transport_Server < file > < IRIS >]
    2009.02.07 at 20:35:45:266: B2BStarter thread: (DEBUG) FileReceiver.init() started ....
    2009.02.07 at 20:35:45:287: B2BStarter thread: (DEBUG) FileReceiver.init() completed.
    Could you please tell me if I need to do any changes.
    This is working on b2b with only patch: 5907304 which is installed in another windows XP system.
    The same configuration with the latest patch is not working.
    Edited by: Praveena Paruchuru on Mar 7, 2009 7:56 AM

    Hi Dheeraj,
    I have restarted my system many times, not only B2B.
    I have taken the print out of both the tip.properties and compared line by line and wanted to check out which line was making it not to function.
    I added the mismatching lines one by one by one, it was working for all teh updates. Finally I changed it to my new tip.properties.
    Then surprisingly it is working.

  • FCP Quicktime movie files not working with iDVD

    I have been using iDVD for years with no issues. Now, whenever I export a QT file from FCP 7 and use it in iDVD, I get a blank screen with audio and no video.
    I am able to work around the problem by using "Export Using Qucktime Conversion" and creating a smaller file, but I've never had to do that before. What in the world am I missing here? Shouldn't I be able to export as a QT movie, as long as the file is not gigantic? (the most recent one I used and had this problem occur was only about 500mb). Thanks for any help...
    Ben

    Hmmm,
    Well this is helpful information but unfortunately didn't solve my problem. The movie in question is only 5 1/2 minutes long. When I export it as a QT movie, iDVD "acts" like everything is fine; I can preview it within iDVD, etc.But when I burn the disc, it comes out blank. I then went back to FCP and exported it using QT conversion, and the DVD burned just fine. (I exclusively use Taiyo Yuden media and have never had a bad disc).
    This is just a simple 16:9 movie, shot at 720/30p on a Canon DSLR. I ingested with Log and Transfer using ProRes422, then dropped it onto the timeline, added a music track, rendered, and exported as Quicktime movie. It looks great on my desktop using the QT player, but it simply will not work in iDVD.  Still stuck here...
    Ben

  • .psd file not working with Motion 5

    I have a .psd that doesn't want to work with Motion 5.  Every time I try and import it, Motion says that it's not a valid codec.  I can't figurt out what's going on, all my other .psd files seem to work.
    Yes, I'm using RGB colors not CMYK (that is the onne known issue thus far).
    I'm just totally at a lose.  Here's what the console says, if anyone has any insight, I woudl appreciate it:
    6/27/11 1:12:55 PM          [0x0-0xb50b5].com.apple.motionapp[1326]          CPSDSlicesResourceItem::Load(): unsupported slice resource item version (8)
    6/27/11 1:12:55 PM          Motion[1326]          -[ProPSDImageRef initWithPath:] - WARNING - invalid or nonexistent file at /Users/compy/Desktop/PostAppointmetVideo/Corrolary Projects/mockup.psd. Image ref not created.

    I'd be happy to email one of them to you if you'd like.  Or give it to you in some fashion at any rate.  I'm not seeing this problem pop up anywhere else on the internet, so I'm guessing it's just me.  But it would be nice to check with another motion user.
    Email me at jay <no space, just keeping the bots guessing> carr <at> gmail <I'm sure you can guess> com.
    It certainly would be nice to see what happens when I give it to you.  I'm having some very significant issues with PDFs and can't figure out why...

  • Exe file not working with forced download script.

    I have a captivate file that I exported as an exe file for
    pc. It works fine when I download it from the server using the
    direct URL to the file but I don;t want people to actually see
    where it is located so I have a used a force-download php script.
    When I download it by way of the script... it downloads, but the
    file won't play. All I get is a DOS window pop up and then goes
    away. Same file...any ideas?
    The php file I'm using to force the download is below...
    <?php
    $filename = $_GET['file'];
    // required for IE, otherwise Content-disposition is ignored
    if(ini_get('zlib.output_compression'))
    ini_set('zlib.output_compression', 'Off');
    // addition by Jorg Weske
    $file_extension =
    strtolower(substr(strrchr($filename,"."),1));
    if( $filename == "" )
    echo "<html><title>Download
    Error</title><body>ERROR: download file NOT SPECIFIED.
    USE force-download.php?file=filepath</body></html>";
    exit;
    } elseif ( ! file_exists( $filename ) )
    echo "<html><title>Download
    Error</title><body>ERROR: File not found. USE
    force-download.php?file=filepath</body></html>";
    exit;
    switch( $file_extension )
    case "pdf": $ctype="application/pdf"; break;
    case "exe": $ctype="application/octet-stream"; break;
    case "zip": $ctype="application/x-compressed"; break;
    case "swf": $ctype="application/x-shockwave-flash"; break;
    case "doc": $ctype="application/msword"; break;
    case "xls": $ctype="application/vnd.ms-excel"; break;
    case "ppt": $ctype="application/vnd.ms-powerpoint"; break;
    case "gif": $ctype="image/gif"; break;
    case "png": $ctype="image/png"; break;
    case "jpeg":
    case "jpg": $ctype="image/jpg"; break;
    default: $ctype="application/force-download";
    header("Pragma: public"); // required
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0,
    pre-check=0");
    header("Cache-Control: private",false); // required for
    certain browsers
    header("Content-Type: $ctype");
    // change, added quotes to allow spaces in filenames, by
    Rajkumar Singh
    header("Content-Disposition: attachment;
    filename=\"".basename($filename)."\";" );
    header("Content-Transfer-Encoding: binary");
    header("Content-Length: ".filesize($filename));
    readfile("$filename");
    exit();
    ?>

    Actually...never mind. This script creates a HUGE security
    risk....

  • Empty Temporary Internet Files not working with IE9

    Hey everyone.  I have an issue in my domain environment where the "Empty Temporary Internet files folder when browser is closed" is enabled but not actually working for pc's that have IE9.  
    I have configured this policy in both Computer Config and User Config on separate occasions to see if it would work but it just doesn't for users IE9.  My domain is still a Server 2003 domain and I manage group policy through the RSAT Tool Group Policy
    Management on my machine.  All machines in my environment are Windows 7 x64 with IE9 except for a few with IE11.  The funny thing is the computers with IE11 (like myself) the GPO works great.  The temporary files get
    flushed whenever I close my browser.  Unfortunately everyone with IE9 the settings say they are applied but they do not work.  I was wondering if it had something to do with the inetres.admx files on my pc since I use IE11.  Anyone have any
    ideas why the policy would only work for IE11 browsers instead of all browsers? 
    The temporary IE folders are in the default locations and I noticed that the IE9 users can't navigate to the content.ie5 directory as well.  When entering content.ie5 in path they can get to it and when clicking on the random directory's it prompts you
    with a windows security warning.  
    Any help or guidance would be great. Thanks!
    ----E----

    Hi,
    Based on the decription, we can try to enable the following policy setting to see if it helps:
    Computer configuration or User Configuration\Policies\Administrative Templates\Windows Components\Internet Explorer\Delete Browsing History\Allow deleting browsing history on exit 
    Regarding this point, the following thread can be referred to for more information.
    Empty Temporary Internet Files Folder when brower is close does not work in windows 7 X64
    https://social.technet.microsoft.com/Forums/en-US/f48d22f7-d46f-40ce-bc40-04b7d3a05405/empty-temporary-internet-files-folder-when-brower-is-close-does-not-work-in-windows-7-x64?forum=w7itproinstall
    Best regards,
    Frank Shen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Does anyone have a solution to HDV 720p25 files not working with Lion?

    I cant play or edit 720p25 HDV files with Lion, does anyone know how to fix this bug?

    i've been having the exact same problems myself since Lion was released.  I've been having to work with .m2t files and then converting them with MPEG StreamClip to Apple ProRes 422 native quicktime files in order to even use the stupid HDD.  All of my existing .MOV files that were on the HDD prior to upgrade are now all "corrupt". Spoke with Apple reps and Focus reps and both of course are pointing fingers at each other.
    Also, found that .m2t files aren't as high quality as shooting with .mov files on the DR-HD100... interesting huh?  I mean i'm not in too much of a pickle due to the fact that the HDD is still useable it's just more time and steps before getting to edit in FCP now which is annoying considering the fact that I shelled out a lot of money for this HDD to be able to edit immediately...
    APPLE PLEASE FIX THIS!!!!
    I know it's Apple's fault because when i shoot in .mov files on the DR-HD100 and bring them in on my mac mini which is still OS X Snow Leopard, they work just fine... so it's definitely a Lion issue...
    Also, found out that once the files have been dragged onto a HDD operating within OS X Lion, they become corrupt FOREVER and you can't reverse the process!  They remain fine on the DR-HD100 but if you drag them onto a OS X Lion machine, then decide to transfer them to a OS X Snow Leopard device via USB, Network, or whatever, it won't matter because they have already been corrupted by Lion!

  • "open file" Not working with Photoshop CS2

    System
    MAc Pro Dual Quad 3Ghz, OS X 10.5.2
    I have a script that I wrote a while ago to take a series of individual bitmaps and compile them into a strip for access inanothe application. Script used to work well....
    I tried to use the script today but ran into a brick wall when trying to open files from within the script.
    below is an example of a script that will not work at all,
    tell application "Adobe Photoshop CS2"
    open file "AV:logo:rot0001.png"
    end tell
    I normally pass the function a variable for the filenames...but the above script should work fine.. but flatly refuses to !
    Below is the Error returned.
    Adobe Photoshop CS2 got an error: General Photoshop error occurred.
    - The object “current document” is not currently available.
    Arghhhh Help !!
    Rgds
    Chris

    Hello
    Perhaps your script used to work under pre-OSX10.5 (AppleScript 1.x) but now fails under OSX10.5 (AppleScript 2.x)?
    If so, the most likely cause is the drastic change in internal text handling between them. In AS2.x, internal text is Unicode only, which might prevent PSCS2 from resolving 'file path_string' descriptor (when path_string is assumed to be plain 'string', not Unicode text).
    Try the following code instead -
    tell application "Adobe Photoshop CS2"
    open ("AV:logo:rot0001.png" as alias)
    end tell
    Or -
    set a to "AV:logo:rot0001.png" as alias
    tell application "Adobe Photoshop CS2"
    open a
    end tell
    Hope this may help,
    H

  • Word, powerpoint and excel are not working with lion. Has anyone else had this problem

    Word, Powerpoint and Excel have stopped working since downloading Lion. Has anyone else got this problem?

    Which version?  If it is 2004, then you are out of luck - Lion no longer supports apps written for PPC processors, only Intel.  There is no solution, either go back to Snow Leopard or upgrade to a later version of Office (2008 or 2011), or switch to another bracnd (OpenOffice, iWork).

Maybe you are looking for

  • Help needed in setting up SOUND BLASTER LIVE PLATI

    Hey guys not too sure what is happening here... just want to setup my pc to record music through my mixer. I had the software installed and the surround mixer setup correctly and i was recording mixes fine. Then i upgraded my pc and went to record a

  • SAP Query failed...

    Hi all, I am working on the SAP Query by using transaction code SQ02, SQ03 and SQ01. I have also generated the program and copied display report name to create a transaction code for this report. I am able to use the transaction code in the Developme

  • The amount of down payment must be less than the invoice amount

    Hi all, Our customers are using SAP 2007-PL15 and SAP 2007-PL41. When we want to create a down payment for a sales order, and we want to pay the entire amount of the sales order, including tax, we have to put an amount inthe TOTAL field of the Down P

  • Making Spaces Useful

    The concept of Spaces is a good one, but the execution is poor. Am I missing something, or is it possible to actually work in Spaces with the screen split into 2, 4, 6, whatever pieces in real time. I like to be able to see all my open applications a

  • Kann die Bilder aus Photoshop CC nicht speichern ????

    Hallo habe mir die CC downloaded. Photoshop installiert, nun kann ich Bilder bearbeiten, wenn ich aber unter Speichern unter gehe, kommt: "Die Datei konnte nicht unter....... gespeichert werden, weil kein Schreibzugriff erteilt wurde." Habe mit dem S