Upload file in web - data doesn't refresh

Hi, we have implemented the how-to doc for uploading a file via the web.  The upload works great, but it doesn't refresh properly.  On the layout, we have a button to upload the file.  Once the upload has taken place and we save it, the layout doesn't show the data even if we refresh.  I have to leave the WIB and get back into it to see the data.  Has anyone experienced this and is there a solution to this?
Thanks
Kory

Hello,
I used this code to resolve the same problem
             if ( l_subrc = 0 ).
               call function 'API_SEMBPS_POST'
                 importing e_subrc = l_subrc
                           es_return = ls_msg.
               if ( l_subrc = 0 ).
                 call function 'API_SEMBPS_REFRESH'
                 importing e_subrc = l_subrc
                           es_return = ls_msg.
                 if ( l_subrc = 0 ).
                    cl_upwb=>set_parameter( param = 'buffer_changed'
value = 'X' ).
                 else.
                   append ls_msg to lt_msg.
                 endif.
               else.
                 append ls_msg to lt_msg.
               endif.
             endif.

Similar Messages

  • Upload file in Web Dynpro and add to Workflow container as SOFM object

    Hi!
    I have a Web Dynpro for ABAP application that should send attachments of uploaded files to a workflow container. I have already managed to do this, and it works fine for TXT files, but when I try to attach a WORD (.DOC) file the file looks corrput when I open it from the SAP inbox.
    When uploading files in Web Dynpro it is as an XSTRING. I have tried out the following alternatives regarding convertion of the XSTRING before it is inserted in the SOFM object:
    1) Convert from XSTRING to STRING using codepage 4110.
    Then it is split into a string table of 255 chars
    2) Convert from XSTRING to STRING using codepage 4102
    Then it is split into a string table of 255 chars
    3) Convert from XSTRING to BINARY format
    I use function module 'SWL_SOFM_CREATE_WITH_TABLE'
    and then swf_create_object lr_sofm 'SOFM' ls_sofm_key.
    before I call some macros to fill the container.
    Anyone else who have tried to do this with success? I'm greatful for any help.
    Regards, Tine

    Hi,
    I had the same problem in the last days and finally I got a quite simple solution:
    I had a look at the FM SWL_SOFM_CREATE_WITH_TABLE an noticed that it calls another FM (SO_DOCUMENT_INSERT_API1) which has a tables parameter for HEX data and is actually able to  create a SOFM object from HEX data.
    I simply copied SWL_SOFM_CREATE_WITH_TABLE as a customer FM and applied a few changes to make it accept HEX data:
    First I added a new table parameter in the interface which gets the HEX data from the calling application (uploaded data using BIN format):
    OBJECT_CONTENT_HEX     LIKE     SOLIX
    Here is the code of the FM (I marked all additional and changed lines with a comment):
    function z_test_sofm_create_with_table .
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(NOTE_TITLE) LIKE  SODOCCHGI1-OBJ_DESCR OPTIONAL
    *"     VALUE(DOCUMENT_TYPE) LIKE  SOODK-OBJTP DEFAULT SPACE
    *"  EXPORTING
    *"     VALUE(SOFM_KEY) LIKE  SWOTOBJID-OBJKEY
    *"  TABLES
    *"      NOTE_TEXT STRUCTURE  SOLISTI1 OPTIONAL
    *"      OBJECT_CONTENT_HEX STRUCTURE  SOLIX OPTIONAL
    *"  EXCEPTIONS
    *"      ERROR_SOFM_CREATION
      data: region like sofd-folrg.
      data: folder_id like soodk.
      data: l_folder_id like soobjinfi1-object_id.
      data: document_data like sodocchgi1.
      data: document_info like sofolenti1.
      data: object_content like solisti1 occurs 0 with header line.
      data: lines like sy-tabix.
    *- set default
      if document_type is initial.
        document_type = 'RAW'.
      endif.
    *- create office object
    *-- get dark folder
      region = 'B'.
      call function 'SO_FOLDER_ROOT_ID_GET'
        exporting
          region                = region
        importing
          folder_id             = folder_id
        exceptions
          communication_failure = 1
          owner_not_exist       = 2
          system_failure        = 3
          x_error               = 4
          others                = 5.
      if sy-subrc ne 0.
        message e696(wl)                       "<== Add message class
                raising error_sofm_creation.
      endif.
    *- get description
      if note_title is initial.
        read table note_text index 1.
        note_title = note_text.
      endif.
    *-- create office document
      document_data-obj_name = 'ATTACHMENT'.
      document_data-obj_descr = note_title.
      document_data-obj_langu = sy-langu.
      object_content[] = note_text[].
      describe table object_content lines lines.
      document_data-doc_size = ( lines - 1 ) * 255 + strlen( object_content ).
      if object_content[] is initial.                     "<== insert
        describe table object_content_hex lines lines.    "<== insert
        document_data-doc_size = lines * 255.             "<== insert
      endif.                                              "<== insert
      l_folder_id = folder_id.
      call function 'SO_DOCUMENT_INSERT_API1'
        exporting
          folder_id                  = l_folder_id
          document_data              = document_data
          document_type              = document_type
        importing
          document_info              = document_info
        tables
          object_content             = object_content
          contents_hex               = object_content_hex   " <== Insert line
        exceptions
          folder_not_exist           = 1
          document_type_not_exist    = 2
          operation_no_authorization = 3
          parameter_error            = 4
          x_error                    = 5
          enqueue_error              = 6
          others                     = 7.
      if sy-subrc ne 0.
        message e696(wl)                              "<== Add message class
                raising error_sofm_creation.
      endif.
    *- set export parameter
      sofm_key = document_info-doc_id.
    endfunction.
    The returned  SOFM key I added to a container element. The element refers to event parameter of type OBJ_RECORD in my ABAP OO Class
    Using this function I was able to raise an event by using Method cl_swf_evt_event=>raise
    that invoked a workitem containing an Excel-File i had uploaded as binary file and passed to the FM z_test_sofm_create_with_table as document type 'XLS'.
    In the woritem preview when clicking on the attachment the file was opened directly in Excel.
    Actually the new lines for calculation the file size is not yet quite correct. At first glance it does not seem to cause any trouble, but I will stll check that. In FM SO_OBJECT_INSERT the size is again checked and calculated if initial, so leaving size initial might also be an option.
    I hope this helps anyone having a similar issue.
    Greetings,
    Michael Gulitz

  • Down-/Upload files via Web Services using a NON-SAP system!?

    Hello,
    is it possible to down-/upload files via web services using a NON-SAP system!?
    Regards,
    Jens

    Hi Jens,
    I am not sure about your requirement here. What i could understand is that you want to check whether service could handle file processing?
    1) Uploading file - You can build a Webservice which has import/export parameters as the file structures and implement the proxy class in such a way that the passed data is written to application server.
    2) Downloading file - Same as uploading file, but the proxy class would have the code to extract data from the application server and pass them as output parameter.
    Functionality of Non SAP system: The system which calls these services should be able to convert the output of proxy data into file in case of downloading the file and it should be able to convert the file data into export parameters in case of uploading file.
    Hope this helps.
    Regards,
    Prasanna

  • Unable to view uploaded files in Tomcat till server is refreshed

    Hi All,
    I am building an application wherein the user would have an option to upload files (can be documents or images) and once the files are uploaded the user should be able to download it.
    I am using Apache Tomcat 6.0 and JDK1.6.
    Every thing seems to be OK for the File Upload part but I have some questions in my mind for the File Download Part.
    Approach 1:
    Initially I tried to use the BLOB feature of the mysql Database to save the file as a Binary stream in the DB. However after googling it out I found out that there are serious performance issues with BLOB (The file size can be anywhere from 1 KB to 20 MB). Thus we have ruled out this approach.
    Approach 2:
    We decided to save the file path in the DB and save the file to the File System.
    For this, Initially we stored the files under the Root directory of the application but the Tomcat could not recognize the files until it was refreshed/restarted.
    This can’t be accepted for the realtime environment.
    One fix we found out for this was to create a new file directory under the web-apps folder of tomcat outside the root directory of the application and save the files in this directory. To make this work we added a new context to the tomcat configuration.
    Please suggest if this is the best approach to follow.
    Thanks
    Akash Singla
    http://www.TheDaedals.com

    Did the code properly close the outputstream on the file after writing the file contents? If it does not, then the file contents cannot be read until the handle on the file is destroyed (by restarting the java virtual machine).
    That said, it is a violation of forum's code of coduct if you spam your website in messages. Cut it out and just post it in your forum profile or only post it if it has really something valuable to add to the currently running topic subject.

  • NMH410 as a external hard drive & upload files through web browser

    Hi,
    I had just installed a NMH410 and has some questions as follow:
    Can NMH410 be used as an external HDD without internet?
    Is there anywhere I can upload files through the web browser?

    mosidiot wrote:
    I had just installed a NMH410 and has some questions as follows:
    1. Can NMH410 be used as an external HDD without internet?
    Yes - The NMH is a local network device, and you can store/retrieve files on it using the computers on your home network using either Windows Explorer, or connecting to it in Linux/MacOS as a Samba share.
    However: The NMH requires an Internet connection to dowload firmware updates, and - If my experiences today are anything to go on - You'll need to have up to date Flash support in your web browser to be able to configure and administrate the thing.
    (See the new thread that I'll be posting in this forum shortly.)
    mosidiot wrote:
    2. Is there anywhere I can upload files through the web browser?
    Yes - The NMH does support uploading via a web browser as long as the latter has a recent Flash plugin installed. For small numbers of files, this should work fine...But for larger numbers of files, I'd suggest using either Windows Explorer, or the Media Importer program that came on the enclosed CD-ROM. :-)
    You can find full details and instructions for doing both of the above in the NMH 4xx user guide, which may be downloaded Here. :-)
    Farewell... >:-)
    +++ DieselDragon +++
    Edit: Corrected broken link to user guide.

  • I am unable to upload files via web browser

    Good morning
    I have just upgraded to Mavericks (10.9.5), and I am running into a weird issue. I am unable to upload any files via the web browser. If I go to a website, and select an Upload File option, I am taken to Finder, where I am able to select the file, and press attach. The issue comes when I press upload on the website. It always either times out, or gives me an error that I was disconnected from the server. This happens on Safari, Firefox, and Chrome. I'm not sure what to do... I've repaired disk permissions and tried a lot of different security settings, but I am stumped.
    Thank you

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen. Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Uploading files from web to db server

    hi, yesterday discover article from otn about uploading file from clients filesystem to web application server.
    but how about uploading from clients filesystem directly into database column? (i'm talking about forms application via web server, btw, not c/s app)
    i've search through the archieve, but cant find anything useful, just alot of similar question with no useful answer. so i guess alot of people could use this feature, if it can be done.
    thanks in advance
    Phil

    The demo titled "Forms, Reports, and Portal Integrated Demo"
    has the package and a form using it.
    You can download it from http://technet.oracle.com/sample_code/products/forms/content.html
    Read the script and search the part where you upload an image.

  • Upload file in web form - ora-105101

    I want to upload files in a web form. I downloaded fileupload utility, but I can't make it work.
    I can launch the form, open the dialog box, choose a file, then the progress bar appear and a
    ora-105101 is raised in the custom_item_event trigger. When I close the form after that, a Dr watson
    box appear.
    I tried java 1.2.2, then java 1.4.1, then java 1.1.8, with no success.
    I tried Jinitiator 1.1.7.30, then 1.1.8.7, then 1.1.8.10, and finally 1.1.8.16, with no success.
    I tried many many path and classpath setting, with no success.
    I executed each time that (in the current jinitiator directory) :
    javakey -r PJC
    javakey -c PJC true
    javakey -ic PJC c:\temp\pjc.x509
    to ensure the security aspect is ok.
    Do you have any ideas, or something ?
    My configuration is :
    forms 6.0.8.13.0
    windows NT service pack 5
    I use CGI mode to launch fileupload utility
    Thanks,

    The problem here is usually one of setting up the classpath correctly on the server.
    If you run the Demo Form that comes with the utility and press KEY-LISTVAL then it will pop up an alert with the current classpath in it.
    If this fails and you get an error it's because Forms can't start Java on the server at all which indicates that you need to check the o/s path that is configured for the CGI to use.
    In general I'd recommend using the Forms listener Servlet with this kind of code because it means that you can do all you're configuration in a simple .env file.
    Have a look at the HTML document that comes with the upload utility - there are some hints at then end of it to help with the setup.

  • Uploading files via web page

    Hi,
    I want to use a file form field to upload files to my Web server for manipulation. But I am at a loss as to how to start. Can anyone point me to examples codes, class or anything that I can use as a staring point? Thanks.

    http://jakarta.apache.org/commons/fileupload

  • How to associate an uploaded file with form data

    I have a "ticketing" app which stores a ticket no. as well as allows users to upload multiple files per ticket. The problem I am having is how to associate an uploaded file with a particular ticket no. As you can guess this becomes complicated when the same user can potentially update multiple tickets using the same file names. I am having difficulty trying to understand how to associate a ticket no with one or more uploaded files. I do have a custom table which I update with the attachments but I am unsure how to, or when to, update the ticket information on this custom table. I only want to retrieve attachments for a given ticket, not all attachments uploaded by a user.Does anyone have any ideas?

    Hi,
    My question is bit related to this topic.
    I am having a requirement to upload the CSV files so that they will store in a database table and later on wards when they search on that table it needs to pull the information and display on the form. I am a new bee to application express. Could some body tell me how to start this process with??. Just give me an overvoew/hints so that I will try to carry on my own.
    Cheers,
    Krishna.

  • Upload File in Web Dynpro Java CO and store it in the context

    Hi Guys!
    I have developed a web dynpro CO form, and I need to be able to upload a file in an action and then be able to download that file in further actions.. I have evaluated saving the file in the backend via RFC, in KM and also creating a CAF project.. but I think there must be a simpler way : saving it in the context of GP.
    Does someone knows if it is possible to do that?
    best regards,
    Marco.

    Hi Marco
    In webdynpro java, there are UI elements File Upload and File Download. You can use these UI's to upload and download attachments. From NetWeaver 7.0 onwards, you have IWDResource interface which can be used to upload attachments. But in GP if you want to pass attachment to another action you must use Binary as a data source. Bind the File upload UI element to Binary. In addition, you should define input and out parameters in getDescription method.
    Thanks
    Ghazanfar

  • Problem with: Upload file thru Web access.

    We have configure iFS 1.1 on AIX 4.3. Everything is running fine like ifsstart, ifsmgr. Its showing me all protocols and agents running.
    I am able to access iFS through web access program and its accepting login and password. After login in to iFS server when we try to upload any file using Brower option its gives us following error.
    Request URI:/ifslogin/jsps/upload2.jsp
    Exception:
    java.lang.NoClassDefFoundError: java/sql/Blob
         at oracle.jdbc.driver.OracleStatement.get_blob_value(Compiled Code)
         at oracle.jdbc.driver.OracleStatement.getBLOBValue(Compiled Code)
         at oracle.jdbc.driver.OracleStatement.getObjectValue(
    Can anybody guide us. We are not having JAVA knowledge.
    Thanks
    Dilip

    Hi,
    create an attribute(say ca_fileupload) of  type XSTRING  under context and bind that attribute with the data property.
    For binding the attribute just Click on the element file_up , there you can see data property,click on that and you can see all the nodes and attributes  you have created and there click on the attribute(ca_fileupload).

  • Advice on uploading files and process data

    Hi, I'm building an Apex application. It requires that users can sometimes upload data (csv) that will be validated and inserted into the database.
    For now I've created a component that uploads the file and copy it to my UPLOADED_FILES archive table as a blob. Now I need to create a process that review data from blob and, if posible, inform the user of incorrect lines.
    It seems that I need to recreate the file on the oracle server from the blob, then use SQL Loader to create an external table from that file and finally run my own validate/copy procedure over the external table data.
    So my questions are:
    - Is there a more proper way of doing this?
    - Can I create the external table directly from the blob, without recreating the file, and an oracle directory?
    - When using sql loader, how can I deal with quotes in the text? (the csv is generated from an spreedsheet, it can have text data with quotes that will be scaped, so a posible line will be (three fileds separated by semicolons):
    my data 1;"my data 2""some escaped quotes here""and a semicolon inside ; my data 2 final";my data 3;
    Will work the declaration: fields terminated by ";" optionally enclosed by '"' ?
    note '"' = apostrophe+quotation+apostrophe
    Thanks for your advice.

    user3917161 wrote:
    It seems that I need to recreate the file on the oracle server from the blob, then use SQL Loader to create an external table from that file and finally run my own validate/copy procedure over the external table data.
    So my questions are:
    - Is there a more proper way of doing this?The only other option is to manually parse the LOB yourself. So until Oracle provides external tables on LOBS too, this approach of writing it to external file for loading as an external table is a necessary evil.
    - Can I create the external table directly from the blob, without recreating the file, and an oracle directory?No.
    From Oracle® Database Administrator's Guide:
    "<i>Oracle Database provides two access drivers for external tables. The default access driver is ORACLE_LOADER, which allows the reading of data from external files using the Oracle loader technology. The ORACLE_LOADER access driver provides data mapping capabilities which are a subset of the control file syntax of SQL*Loader utility. The second access driver, ORACLE_DATAPUMP, lets you unload data—that is, read data from the database and insert it into an external table, represented by one or more external files—and then reload it into an Oracle Database.</i>"
    Perhaps we'll get a 3rd access driver in future that either supports LOBs, or enables us to define our own access driver (all that is needed as output from the driver is text lines - and this should not be that difficult to standardise as a custom interface to implement).
    - When using sql loader, how can I deal with quotes in the text? (the csv is generated from an spreedsheet, it can have text data with quotes that will be scaped, so a posible line will be (three fileds separated by semicolons):
    my data 1;"my data 2""some escaped quotes here""and a semicolon inside ; my data 2 final";my data 3;
    Will work the declaration: fields terminated by ";" optionally enclosed by '"' ?
    note '"' = apostrophe+quotation+apostropheBest is to try it and see whether it works. Also refer to the Oracle® Database Utilities for SQL*Loader syntax and options.

  • Problem with Uploading files in Web applications with the iPad

    Hello,
    I have a question. How can I upload a word file in the gmx-Mailserver with my IPad? I can only find the picture library. In this library i cannot upload a word-file or other files-types. I use Safari. The same problem exists by other web applications.
    Thanks for your help.
    Kami2013

    I think I just did something wrong myself. I was finally able to upload the file. However, I wrote the following procedure in my package but wasn't able to download the file from the report. Do I need to grant any privilege from the system user?
    Also, does anyone know how to convert a BLOB table into 11g Securefiles table?
    Thanks.
    <pre>
    procedure download_birth_cert(p_vrds_birth_cert_pk in number) is
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(4000);
    Lob_loc BLOB;
    begin
    select mime_type, blob_content, file_name, dbms_lob.getlength(blob_content)
    into v_mime, lob_loc, v_file_name, v_length
    from vrds_birth_cert
    where vrds_birth_cert_pk = p_vrds_birth_cert_pk;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header(nvl(v_mime,'application/octet'), FALSE);
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the user does a save as
    htp.p('Content-Disposition: attachment; filename="'||substr(v_file_name,instr(v_file_name,'/')+1)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    exception
    when others then
    null;                    
    end download_birth_cert;
    </pre>

  • Error uploading file to web before and after updating

    Hi,
    I'm running adobe muse on a mac 2013 yosemite. I changed from the original version of adobe muse to the 2014.2 version, just to let you all know.
    Earlier today, I woke up and one of my two websites I've created in the original version of adobe muse had lost the information required to upload to FTP Host. I retyped in my information, and it started to upload my website. Eventually it hit the 61% mark, and said that it was "connecting to the FTP host" for a really, really long time. I waited about 20 minutes- nothing happened. So I then decided to update adobe muse to the 2014.2 version.
    After updating, I tried uploading my site to the web again. I put in virtually the same information as before, and now I'm getting an error message saying "Could not sign in. Check your network connection and try again. If this problem persists, try again later."
    Can anybody help me here? My website is hosted by GoDaddy.com, just to let you know.
    Thanks in advance,
    Gavin

    Muse 2014.3 was released last week , please tr y to update Muse and then check.
    Thanks,
    Sanjit

Maybe you are looking for