Document Type (Extension) restriction while uploading file.

Hi all,
Is there a way by which I can restrict uploading only certain types (rather extensions - .xls, .doc, .pdf etc) in cFolders.
Regards,
Reema.

>
Thomas Jung wrote:
> >I want to check 6th letter, if 6th letter is eq 'H', i want to upload data otherwise should display some message.
>
> Everything that you have been told about using the filename property of the FileUpload is correct. However you should note that the filename will not be available until after the file has already been upload to the server. So you can't stop the fileUpload based upon a check of the filename - its too late and the upload has already occured.
yeah that is true. but is there anyway to check it otherwise.
or we need to wait for something in coming versions 7.3 or 7.4.

Similar Messages

  • Error while uploading file in Collab 4.2

    I am getting following exception while uploading file in Collab 4.2, ALUI Portal 6.1
    Error Details
    ==============================
    Collaboration encountered an error.
    If the problem persists, contact a portal administrator.
    Hide Details
    Error storing file data.com.caucho.hessian.io.HessianProtocolException:
    com.plumtree.collaboration.docman.DocManException: Error storing file data.com.caucho.hessian.io.HessianProtocolException:
    at com.plumtree.collaboration.docman.FileDataAccessManager.closeOutputStreamAndCleanUp(FileDataAccessManager.java:229)
    at com.plumtree.collaboration.docman.FileDataAccessManager.storeFileData(FileDataAccessManager.java:304)
    at com.plumtree.collaboration.docman.FileDataAccessManager.storeFileData(FileDataAccessManager.java:259)
    at com.plumtree.collaboration.docman.DMFolder.internalInsertNewFile(DMFolder.java:772)
    at com.plumtree.collaboration.docman.DMFolder.insertNewFile(DMFolder.java:862)
    at com.plumtree.collaboration.api.docman.DocumentManagerImpl.insertNewDocument(DocumentManagerImpl.java:497)
    at com.plumtree.collaboration.webui.document.UpdateDocumentUploadAction.processFinish(UpdateDocumentUploadAction.java:89)
    at com.plumtree.collaboration.webui.common.BaseUpdateEditorAction.execute(BaseUpdateEditorAction.java:77)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at com.plumtree.collaboration.webui.framework.action.CollaborationController.service(CollaborationController.java:101)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    at org.apache.coyote.http11.Http11Protocol438Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    at org.apache.tomcat.util.threads.ThreadPool438ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: com.plumtree.dr.RepositoryIOException: com.caucho.hessian.io.HessianProtocolException:
    at com.plumtree.dr.transport.glue.client.operation.Operation.convertIOException(Operation.java:161)
    at com.plumtree.dr.transport.glue.client.ClientOutputStream.close(ClientOutputStream.java:81)
    at com.plumtree.dr.util.io.BoundedOutputStream.close(BoundedOutputStream.java:133)
    at com.plumtree.dr.util.io.SelfClosingOutputStream.close(SelfClosingOutputStream.java:265)
    at com.plumtree.dr.util.DocumentOutputStream.close(DocumentOutputStream.java:101)
    at com.plumtree.collaboration.docman.FileDataAccessManager.closeOutputStream(FileDataAccessManager.java:133)
    at com.plumtree.collaboration.docman.FileDataAccessManager.closeOutputStreamAndCleanUp(FileDataAccessManager.java:210)
    ... 38 more
    Caused by: com.plumtree.dr.RepositoryException: com.caucho.hessian.io.HessianProtocolException:
    at com.plumtree.dr.transport.glue.ServiceException.getRepositoryException(ServiceException.java:150)
    at com.plumtree.dr.transport.glue.client.operation.Operation.convert(Operation.java:139)
    at com.plumtree.dr.transport.glue.client.operation.Task.run(Task.java:68)
    at com.plumtree.dr.util.thread.DefaultThreadPool438Pooled.run(DefaultThreadPool.java:295)
    Caused by: com.plumtree.dr.transport.glue.ServiceException: com.caucho.hessian.io.HessianProtocolException: 2
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService438ServiceCall.call(GlueRepositoryService.java:198)
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService.uploadDocumentNonChunked(GlueRepositoryService.java:90)
    at com.plumtree.dr.transport.glue.client.HessianOpenOutputStreamTask.execute(HessianOpenOutputStreamTask.java:43)
    at com.plumtree.dr.transport.glue.client.operation.Task.run(Task.java:52)
    ... 1 more
    Caused by: com.caucho.hessian.client.HessianRuntimeException: com.caucho.hessian.io.HessianProtocolException:
    at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:194)
    at 438Proxy1.uploadDocumentNonChunked(Unknown Source)
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService4382.execute(GlueRepositoryService.java:92)
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService438ServiceCall.call(GlueRepositoryService.java:192)
    ... 4 more
    Caused by: com.caucho.hessian.io.HessianProtocolException:
    at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:183)
    ... 7 more
    Caused by:
    com.plumtree.dr.RepositoryIOException: com.caucho.hessian.io.HessianProtocolException:
    at com.plumtree.dr.transport.glue.client.operation.Operation.convertIOException(Operation.java:161)
    at com.plumtree.dr.transport.glue.client.ClientOutputStream.close(ClientOutputStream.java:81)
    at com.plumtree.dr.util.io.BoundedOutputStream.close(BoundedOutputStream.java:133)
    at com.plumtree.dr.util.io.SelfClosingOutputStream.close(SelfClosingOutputStream.java:265)
    at com.plumtree.dr.util.DocumentOutputStream.close(DocumentOutputStream.java:101)
    at com.plumtree.collaboration.docman.FileDataAccessManager.closeOutputStream(FileDataAccessManager.java:133)
    at com.plumtree.collaboration.docman.FileDataAccessManager.closeOutputStreamAndCleanUp(FileDataAccessManager.java:210)
    at com.plumtree.collaboration.docman.FileDataAccessManager.storeFileData(FileDataAccessManager.java:304)
    at com.plumtree.collaboration.docman.FileDataAccessManager.storeFileData(FileDataAccessManager.java:259)
    at com.plumtree.collaboration.docman.DMFolder.internalInsertNewFile(DMFolder.java:772)
    at com.plumtree.collaboration.docman.DMFolder.insertNewFile(DMFolder.java:862)
    at com.plumtree.collaboration.api.docman.DocumentManagerImpl.insertNewDocument(DocumentManagerImpl.java:497)
    at com.plumtree.collaboration.webui.document.UpdateDocumentUploadAction.processFinish(UpdateDocumentUploadAction.java:89)
    at com.plumtree.collaboration.webui.common.BaseUpdateEditorAction.execute(BaseUpdateEditorAction.java:77)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at com.plumtree.collaboration.webui.framework.action.CollaborationController.service(CollaborationController.java:101)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    at org.apache.coyote.http11.Http11Protocol438Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    at org.apache.tomcat.util.threads.ThreadPool438ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: com.plumtree.dr.RepositoryException: com.caucho.hessian.io.HessianProtocolException:
    at com.plumtree.dr.transport.glue.ServiceException.getRepositoryException(ServiceException.java:150)
    at com.plumtree.dr.transport.glue.client.operation.Operation.convert(Operation.java:139)
    at com.plumtree.dr.transport.glue.client.operation.Task.run(Task.java:68)
    at com.plumtree.dr.util.thread.DefaultThreadPool438Pooled.run(DefaultThreadPool.java:295)
    Caused by: com.plumtree.dr.transport.glue.ServiceException: com.caucho.hessian.io.HessianProtocolException: 2
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService438ServiceCall.call(GlueRepositoryService.java:198)
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService.uploadDocumentNonChunked(GlueRepositoryService.java:90)
    at com.plumtree.dr.transport.glue.client.HessianOpenOutputStreamTask.execute(HessianOpenOutputStreamTask.java:43)
    at com.plumtree.dr.transport.glue.client.operation.Task.run(Task.java:52)
    ... 1 more
    Caused by: com.caucho.hessian.client.HessianRuntimeException: com.caucho.hessian.io.HessianProtocolException:
    at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:194)
    at 438Proxy1.uploadDocumentNonChunked(Unknown Source)
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService4382.execute(GlueRepositoryService.java:92)
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService438ServiceCall.call(GlueRepositoryService.java:192)
    ... 4 more
    Caused by: com.caucho.hessian.io.HessianProtocolException:
    at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:183)
    ... 7 more
    Caused by: com.plumtree.dr.RepositoryException: com.caucho.hessian.io.HessianProtocolException:
    at com.plumtree.dr.transport.glue.ServiceException.getRepositoryException(ServiceException.java:150)
    at com.plumtree.dr.transport.glue.client.operation.Operation.convert(Operation.java:139)
    at com.plumtree.dr.transport.glue.client.operation.Task.run(Task.java:68)
    at com.plumtree.dr.util.thread.DefaultThreadPool438Pooled.run(DefaultThreadPool.java:295)
    Caused by: com.plumtree.dr.transport.glue.ServiceException: com.caucho.hessian.io.HessianProtocolException: 2
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService438ServiceCall.call(GlueRepositoryService.java:198)
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService.uploadDocumentNonChunked(GlueRepositoryService.java:90)
    at com.plumtree.dr.transport.glue.client.HessianOpenOutputStreamTask.execute(HessianOpenOutputStreamTask.java:43)
    at com.plumtree.dr.transport.glue.client.operation.Task.run(Task.java:52)
    ... 1 more
    Caused by: com.caucho.hessian.client.HessianRuntimeException: com.caucho.hessian.io.HessianProtocolException:
    at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:194)
    at 438Proxy1.uploadDocumentNonChunked(Unknown Source)
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService4382.execute(GlueRepositoryService.java:92)
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService438ServiceCall.call(GlueRepositoryService.java:192)
    ... 4 more
    Caused by: com.caucho.hessian.io.HessianProtocolException:
    at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:183)
    ... 7 more
    Caused by: com.plumtree.dr.transport.glue.ServiceException: com.caucho.hessian.io.HessianProtocolException: 2
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService438ServiceCall.call(GlueRepositoryService.java:198)
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService.uploadDocumentNonChunked(GlueRepositoryService.java:90)
    at com.plumtree.dr.transport.glue.client.HessianOpenOutputStreamTask.execute(HessianOpenOutputStreamTask.java:43)
    at com.plumtree.dr.transport.glue.client.operation.Task.run(Task.java:52)
    at com.plumtree.dr.util.thread.DefaultThreadPool438Pooled.run(DefaultThreadPool.java:295)
    Caused by: com.caucho.hessian.client.HessianRuntimeException: com.caucho.hessian.io.HessianProtocolException:
    at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:194)
    at 438Proxy1.uploadDocumentNonChunked(Unknown Source)
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService4382.execute(GlueRepositoryService.java:92)
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService438ServiceCall.call(GlueRepositoryService.java:192)
    ... 4 more
    Caused by: com.caucho.hessian.io.HessianProtocolException:
    at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:183)
    ... 7 more
    Caused by: com.caucho.hessian.client.HessianRuntimeException: com.caucho.hessian.io.HessianProtocolException:
    at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:194)
    at 438Proxy1.uploadDocumentNonChunked(Unknown Source)
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService4382.execute(GlueRepositoryService.java:92)
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService438ServiceCall.call(GlueRepositoryService.java:192)
    at com.plumtree.dr.transport.glue.client.GlueRepositoryService.uploadDocumentNonChunked(GlueRepositoryService.java:90)
    at com.plumtree.dr.transport.glue.client.HessianOpenOutputStreamTask.execute(HessianOpenOutputStreamTask.java:43)
    at com.plumtree.dr.transport.glue.client.operation.Task.run(Task.java:52)
    at com.plumtree.dr.util.thread.DefaultThreadPool438Pooled.run(DefaultThreadPool.java:295)
    Caused by: com.caucho.hessian.io.HessianProtocolException:
    at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:183)
    ... 7 more
    Please help
    Edited by: electrazy on Aug 12, 2011 1:47 AM

    The informations are really not much to have an idea about the problem.
    The problem can be located in the fm that calls the file because is trying to search the file on a system where there are some kind of problems in the communication between the systems involved to read and pass the file. Did u map the file name with logical filenames ? Very strange problem. Can you browse in the server where the file is located . Is it on your pc ?
    Or, there is some problem in the datas provided, but this problem should arise more when you save than when you just press to load.
    With this kind of imformations is very hard to have an idea. You need to debug to see what s going on
    Regards

  • UCCE / IPIVR : Error while uploading file. Please try again later.

    IPIVR version 8.5x
    Receive "Error while uploading file. Please try again later" 
    Renamed the script to a different name and still could not upload.   I am able to upload other scripts without any issue.   I did find the ICM subsystem in partial service.   If that was the issue I would think it would cause an issue with all the scripts.   The script does validate.   Not sure why at this point.

    Hi Aditya,
    Are you using  SharePoint 2010 or SharePoint 2013?
    Did this issue occur for all users or the special user?
    Please go to Central Administration->Manage service applications->User Profile service application->manage user profile, search and edit the user profile, then upload a picture for the user, compare the result.
    In addition, please check the log file to check more information about this issue.
    The path of the log file is:
    SharePoint 2010: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\LOGS
    SharePoint 2013: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Problem while uploading file from application server to internal tab in BG

    Hi all,
    When i see the file  in application server.data is like this
    #################00\);_(#####}#-#}###############################00\);_(#####}#-#}###############################00\);_(*#####}#-#}#########
    ###################}###}#############A#############???#00\);_(*#################;_(@_)  ########???#        ########???#        ########???###
    #######???#########}###}#############)##############}##00\);_(*#################;_(@_)  ############        ############        ##############
    ###################}#A#}#############:##############}##00\);_(#################;_(@_)  }###}##############################00\);_(*##########
    #######???#########}#-#}#############F#################00\);_(#####}###}#############@#################00\);_(#################;_(@_)  #####
    ###################}#-#}#############3#################00\);_(#####}#U#}#############E#################00\);_(#################;_(@_)  #####
    Because the csv which is uploaded has dropdowns and some formattings.
    when download from tcode cg3y i am getting correct file
    When try to use open(binary mode) and read dataset i getting data as it is (junk).
    i need to process in background.
    Any help.
    Rhea.

    upload file to string format
    begin of ty_tab,
    string type char200,
    end of ty_tab.
    loop at ty_tab into string
    use statement replace string into tab deliminated fromat(particular occurance in string)
    now call class to break string at tab into fields
    endloop.
    DATA : BEGIN OF i_data OCCURS 0,
            data(200)    TYPE c,       "To hold Upload file data
           END OF i_data.
    OPEN DATASET v_str FOR INPUT
                              IN TEXT MODE
                              ENCODING DEFAULT IGNORING CONVERSION ERRORS.
        IF sy-subrc EQ 0.
          DO.
    *Read a line from input file
            READ DATASET v_str INTO i_data-data.
            IF sy-subrc NE 0.
              EXIT.
            ENDIF.
    *Append record to an internal table
            APPEND i_data.
            CLEAR: i_data.
          ENDDO.
    *Close the file
          CLOSE DATASET v_str.
    *---Start of inserti
    LOOP AT i_data.
            REPLACE ALL OCCURRENCES OF '"' IN i_data WITH '#'.
            SPLIT i_data AT cl_abap_char_utilities=>horizontal_tab
                                INTO i_doc-pvaudt
                                     i_doc-pvpate
                                     i_doc-vecatc
                                     i_doc-vhvend
                                     i_doc-vhidt8
                                     i_doc-vhinvn
                                     i_doc-vhhexp
                                     i_doc-vhiref.

  • Error while uploading file in BPS

    Hi all,
    I am getting an error while uploading file to BPS through web interface
    I get a red stop button with error message : error while calling up RFC.
    when i double click the red stop button, i get no long text but the error message I get is UPC 202
    please advice me to resolve this issue.
    many thanks in advance,
    Ravi

    The informations are really not much to have an idea about the problem.
    The problem can be located in the fm that calls the file because is trying to search the file on a system where there are some kind of problems in the communication between the systems involved to read and pass the file. Did u map the file name with logical filenames ? Very strange problem. Can you browse in the server where the file is located . Is it on your pc ?
    Or, there is some problem in the datas provided, but this problem should arise more when you save than when you just press to load.
    With this kind of imformations is very hard to have an idea. You need to debug to see what s going on
    Regards

  • Error while uploading file into KM

    Hi Experts,
    I m getting error while uploading file into KM. Its throwing an error message like " Syngenta-POC.doc" does not exist, or file is empty; you cannot upload empty files"
    please assists me.

    Shantanu,
    Please check the files which you are upload is empty or unknown format. If everything seems valid then try to check for the corresponding SAP Note in service.sap.com
    Ram

  • Error ERR-7621 while uploading file

    Hi ,
    I am getting the below error while uploading files to the server from local machine by using browse option.
    Expecting p_company or wwv_flow_company cookie to contain security group id of application owner.
    Error ERR-7621 Could not determine workspace for application (:) on application accept.
    OK
    Can anyon suggest me how to resolve this error?
    Many Thanks in advance
    Bhavani S

    Shantanu,
    Please check the files which you are upload is empty or unknown format. If everything seems valid then try to check for the corresponding SAP Note in service.sap.com
    Ram

  • Error while uploading file?

    Hi all
    I am uploading data from CSV, while uploading i am getting error "Unable to interpret "7086,,203,23-Jul-10,,7086,,,B7306663,,72" as a number." Error is coming at some fields.. there i am using some data element which is of type int1 and another one is CURR field. Any specific type definitions required here... pleaes help...
    Thanks,
    Kris.

    Hi Sarbjeet,
    Please look at once to this code i am using...
    get the datasource Xstring
      wd_context->get_attribute(
         EXPORTING
           name =  'HEADER_DATASOURCE'
         IMPORTING
           value = lw_head_datasource ).
    *CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
    *EXPORTING
    *in_xstring = lw_head_datasource
    *IMPORTING
    *out_string = lw_head_string.
    DATA : conv   TYPE REF TO CL_ABAP_CONV_IN_CE.
    Creates a Conversion Instance
    CALL METHOD CL_ABAP_CONV_IN_CE=>CREATE
          EXPORTING
            INPUT       = lw_head_datasource
            ENCODING    = 'UTF-8'
            REPLACEMENT = '?'
            IGNORE_CERR = ABAP_TRUE
          RECEIVING
            CONV        = conv.
          conv->READ( importing data = lw_head_string ).
    get the data of file
       split  lw_head_string at cl_abap_char_utilities=>newline
        into TABLE lt_head_data.
    delete the header
      DELETE lt_head_data INDEX 1.
    get all the field name
      LOOP AT lt_head_data into lw_head_string.
        SPLIT lw_head_string at cl_abap_char_utilities=>horizontal_tab
         into table lt_head_field.
    ***get all the 6 fields of one line
        READ TABLE lt_head_field INTO lv_head_field INDEX 1.
        ls_head_context-DEALER_CODE = lv_head_field.
        READ TABLE lt_head_field INTO lv_head_field INDEX 2.
        ls_head_context-CLAIM_TYPE = lv_head_field.
    I have around 40 fields.. i am getting error here...
        READ TABLE lt_head_field INTO lv_head_field INDEX 23.
        ls_head_context-KMS_HRS_PERDAY= lv_head_field.
    If i change the type KMS_HRS_PERDAY from INT1 to CHAR1 it is working fine... can u help me .. please
    Thanks,
    kris.

  • Error while uploading file using wininet in c++.

    I'm going to upload text.txt file
    using wininet.
    Here is a code.
    #include "stdafx.h"
    #include "iostream"
    #include "windows.h"
    #include "wininet.h"
    #include "tchar.h"
    #include "iostream"
    #include "string"
    #include "sstream"
    #pragma comment(lib, "ws2_32.lib")
    #pragma comment(lib, "Wininet.lib")
    int main(){
    TCHAR hdrs[] = _T("Content-Type: multipart/form-data; boundary=---------------------------7d82751e2bc0858");
    TCHAR frmdata[] = _T("-----------------------------7d82751e2bc0858\r\nContent-Dis name=\"uploadedfile\"; filename=\"C:\\Users\Ahmer\Desktop\asd\test.txt\"\r\nContent-Type: text/plain\r\n\r\nfile contents here\r\n-----------------------------7d82751e2bc0858--\r\n");
    LPCTSTR accept[] = {_T("*/*"), NULL};
    HINTERNET hSession = InternetOpen(_T("MyAgent"), INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0);
    HINTERNET hConnect = InternetConnect(hSession, _T("http://localhost/cpp/"), INTERNET_DEFAULT_HTTP_PORT, NULL, NULL, INTERNET_SERVICE_HTTP, 0, 1);
    HINTERNET hRequest = HttpOpenRequest(hConnect, _T("POST"), _T("uploadfile.php"), NULL, NULL, accept, 0, 1);
    BOOL sent = HttpSendRequest(hRequest, hdrs, _tcslen(hdrs), frmdata, _tcslen(frmdata));
    if(hSession==NULL)
    cout<<"Error: InternetOpen";
    if(hConnect==NULL)
    cout<<"Error: InternetConnect";
    if(hRequest==NULL)
    cout<<"Error: HttpOpenRequest";
    if(!sent)
    cout<<"Error: HttpSendRequest";
    //close any valid internet-handles
    InternetCloseHandle(hSession);
    InternetCloseHandle(hConnect);
    InternetCloseHandle(hRequest);
    return 0;
    Here is a php file.
    move_uploaded_file($_FILES["uploadedfile"]["tmp_name"], "/FileFolder");
    there is error Error:
    HttpSendRequest.

    That's prefect, I changed only these two lines
    HINTERNET hConnect = InternetConnect(hSession, _T("localhost"), INTERNET_DEFAULT_HTTP_PORT, NULL, NULL, INTERNET_SERVICE_HTTP, 0, 1);
    HINTERNET hRequest = HttpOpenRequest(hConnect, _T("POST"), _T("cpp/uploadfile.php"), NULL, NULL, accept, 0, 1);
    and now there is no error in this code but this is not uploading  file yet.
    Is there any error in the php file ? or in this line .
    TCHAR frmdata[] = _T("-----------------------------7d82751e2bc0858\r\nContent-Dis name=\"uploadedfile\"; filename=\"C:\\Users\Ahmer\Desktop\asd\test.txt\"\r\nContent-Type: text/plain\r\n\r\nfile contents here\r\n-----------------------------7d82751e2bc0858--\r\n");
    I have a file in this path 
    C:\\Users\Ahmer\Desktop\asd\test.txt\
    Thanks for you Time.

  • Error while uploading files to AWS S3

    Hello Experts
    SAP PI 7.31
    I am working on the following scenario. SAP PI receives a file attachment from SOAP response and the same needs to be uploaded to AWS S3 using REST (Advantco REST Adapter) (PUT Method):
    File --> SAP PI --> REST
                     ||
                   SOAP
    To do this without using BPM, I am using RequestResponseBean and ResponseOnewayBean in Sender_File Adapter. In the module parameters, I have mentioned the details of the REST receiver channel. I am using PUT method in Receiver_REST and have checked option "keep attachments"
    When I run this interface, the message fails while sending the file to Receiver_REST with the following errors:
    Sender_File: ResponseOnewayBean - Attempt to process file failed with com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.lib.ra.cci.XIAdapterException
    Receiver_REST Adapter: Error: Broken pipe (Software version: 1.0.11)
    This is the first time we are using REST Adapter to upload files to AWS S3. Could you please provide pointers on the same?
    Thanks
    Jaya

    05/08/17 11:22:31 java.io.IOException: java.io.IOException: sqlldr: not found
    Does the client m/c have sqlldr installed (it will need Oracle client installation)? Does it have the ORACLE_HOME/bin directory in whatever path is appropriate for the client OS?
    Cheers, APC

  • Error while uploading file to db from o'reailly multipart

    Hi,
    i have a servlet that uses the o'reily mutlipart functions, on my linux and windows it works correctly but on my hosted server i get an error about not being able to write (check error message)
    the problem is that i do not write tot the filesystem but as a binary stream to the database.
    I have full access to that database (use it all the time)
    Does anyone know if the multipart usess a tempfile or so when uploading?
    please advise
    here is the error i get
    Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    java.lang.IllegalArgumentException: Not a directory: .
         at com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:211)
         at com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:106)
         at com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:86)
         at be.sejo.schoonheidssalon.client.AddPicture.service(AddPicture.java:38)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)

    I have used O'Reilly Multipart extensively. The upload functionality works great with Multipart. There are different implementations of Multipart. I have used the Multipart with directoryname and maximum file size as shown below. The reason I did this because I wanted to store files based on parameters coming in multipart request.
    try {
    // Create a temporary directory to store uploded files
    String tempDirName = FILE_UPLOAD_DIR_NAME + "/temp";
    File tempDir = new File(tempDirName);
    if (!tempDir.exists()) {
    tempDir.mkdir();
    MultipartRequest multi = new MultipartRequest(request, tempDirName, 50 * 1024 * 1024);

  • Unknown File Format Error while Uploading file through SFP in Note Implemen

    Hello All,
    I am implementing SAP Note 1528165 - Form 16: Layout changes for financial year 2010-11 which has few PDF forms to be uploaded.
    While doing the manual steps given in the attachment; I am getting following error.
    Error occurred when uploading file (unknown file format)
    Message no. FPUIFB068
    Manual step listed in the attachment is given below:
    Step 6 u2013 Creation of PDF form HR_INTAXF162006_600
    a) Download attached file 'SFPF_HR_INTAXF162006_600.zip' on the local file system.
    b) Unzip the .zip file
    c) Execute transaction code 'SFP'.
    d) Enter 'Form' as 'HR_INTAXF162006'.
    e) Goto menu bar and select the 'Utilities' option and select 'Uploading form' from menu.
    f) Select the file, downloaded in the step u2018bu2019 (SFPF_HR_INTAXF162006_600.XML) from the local
    file system.
    g) Save the form and activate the same.
    Please help/suggest.
    Thanks in advance.
    Arti Dobariya

    Hi,
    ADS has to be configured to perform those manual steps.
    Please check the note 1580196 GTS: Error occurred when uploading file
    (unknown file format).
    The manual steps related to SFP transaction need to be performed if your are running the form 16 in pdf format.
    Since ADS was not configured in our system; we end up using  the option of running form 16 in SAP Script.
    Changes related to SFP transaction need not be perfored in case you are running the form in SAP Script format as these are pdf specific changes.
    Regards,
    Arti

  • Unknown File Format Error while Uploading file through SFP

    Hello All,
    I am implementing SAP Note 1528165 - Form 16: Layout changes for financial year 2010-11 which has few PDF forms to be uploaded.
    While doing manual steps given in the attachment; I am getting following error.
    Error occurred when uploading file (unknown file format)
    Message no. FPUIFB068
    Manual step listed in the attachment is given below:
    Step 6 u2013 Creation of PDF form HR_INTAXF162006_600
    a) Download attached file 'SFPF_HR_INTAXF162006_600.zip' on the local file system.
    b) Unzip the .zip file
    c) Execute transaction code 'SFP'.
    d) Enter 'Form' as 'HR_INTAXF162006'.
    e) Goto menu bar and select the 'Utilities' option and select 'Uploading form' from menu.
    f) Select the file, downloaded in the step u2018bu2019 (SFPF_HR_INTAXF162006_600.XML) from the local
    file system.
    g) Save the form and activate the same.
    Please help/suggest.
    Thanks in advance.
    Arti Dobariya

    Hi,
    ADS has to be configured to perform those manual steps.
    Please check the note 1580196 GTS: Error occurred when uploading file
    (unknown file format).
    The manual steps related to SFP transaction need to be performed if your are running the form 16 in pdf format.
    Since ADS was not configured in our system; we end up using  the option of running form 16 in SAP Script.
    Changes related to SFP transaction need not be perfored in case you are running the form in SAP Script format as these are pdf specific changes.
    Regards,
    Arti

  • Different languages used while uploading file from java Application

    Hi everybody,
    i have a problem with multiple languages , let me clear you the question, i were developing a java application using spring ,hibernate frame works, so i got a problem while uploading a file with chinees language or other
    it was saving with different format other than chiness in the database, can any one help me out ... i need the exact language when i upload the files,and when i get the data from DataBase which is in chinees language is '걨' going to be like as '???'
    thank you very much

    Santhosh_25 wrote:
    using utf-8 characterSet, but its not showing properly
    thank youOkay.. the problem with your browser settings.. (not sure)..
    In firefox try to set character encoding...
    go to View--->Character Encoding--->Unicode (UTF-8)..
    In IE
    go to View--->Encoding-->More-->Unicode (UTF-8)
    set this and try.

  • Single Sign-On Error while uploading file via WEBADI

    Hello,
    I am getting error while uploading the file via WEBADI. Below is the error message.
    Error Message:
    The Single Sign-On server registration is invalid. Please contact the System Administrator.
    I noticed that this template is uploading data when I connect to Oracle applications and go to WEB ADI responsibility and create a new template.
    In order to make this WEBADI work do I have to create a new template each time I upload the file?
    Our goal is to use the same template, change the numbers and re load it.
    Also, Is there any way I can go to login screen when I click on UPLOAD under ORACLE in excel. That way connection is established.
    Thanks for the help.

    Hi, Actually NW Portal and SQL server has been installed on the same machine.
    Now I am trying to add my SQL server as a JDBC system and checking the connections and I do not see a property under User Management.
    When I try to connect to R/3 backend system "...Dedicated Application server" then I can see the property but not for the JDBC syste.
    any clue how to get rid of the error and to check the connection.
    Thanks in advance.
    Gopi m.

Maybe you are looking for

  • Moving average price in Semifinished material.

    Dear All,       Our client wants to go for moving average price in case of semifinished material, which is supposed to be normally standard price. The problem is the MAP is not getting updated after the GR against the production order. What settings

  • Mp3 playback bug after update (size greater than 8 MB & Bitrate 192...)

    okay, after the upgrade to the itunes version 7.4 something strange happened. I couldn't play some files any more. After some testing i figured out that the affected files had a pattern - namely: size > 8MB & Bitrate > 192 & No Album Picture This isn

  • ICC Profiles and Photoshop Elements 10

    Photoshop Elements 10 will not bring up any of the ICC Profiles downloaded for my Epson Stylus 1280.  I have photos of the PSE Screen shot showing paper types "NONE" under change settings.  And under Printer Settings:  Paper Type shows "UNKNOWN". Wha

  • What can I do if I microwave my iPhone?

    I made the idiotic decision of microwaving my iPhone 5 - only for four seconds, but nonetheless it has caused my phone to lose its wifi and phone service... it only shows "No Service" in the top left corner and I don't know what to do. I feel like a

  • Shuts down COLD

    I am stunned. The Apple help crew was terrific over the past month of problems installing Leopard in my iMac, the most alarming of which was its increasingly frequent habit of just shutting down cold. Turns out that the problem was known to Apple, wh