HR Renewal: Client infotype with upload/download file functionality

Hi Gurus,
I am writing to you today cuz a client of mine asked me to adapt one of their client-specific infotype for HR Renewal. Now the old-legacy infotype was developed by someone else so I am just to adapt the functionality for decoupled infotype framework and front-end.
The infotype has no subtype and record from 01.01.1800 to 31.12.9999 with a table-control listing all the pdf (or other format) file for a particular employee (such has income tax statement; SEPA bank account sheet; ID card etc... any kind of personal document relevant to employees). (that data is listed from a client Z table when opening the infotype; e.g. there is not sub-strucutrue in the pnnnn to  represent that information).
upload, download and open file functionality is done via the infotype old-framework screen 2000 by some custom code merely replicated what is available by cl_gui_services.
File are stored directly on the SAP system not using the GOS option;
back-end stuff is more or less done and working at least I can do pretty much what I want in puit_ui tcode; read;modify... off course no file upload there
front-end is another story; I have managed the FPM views for the infotype (dataset; biz card, etc) and also I have managed to list the existing file in the ATS list.
However What I need still to do is to be able to upload from NWBC files to the back end system; and also download or open them. this seems to be a little harder than expected.
I am now doubting if I should rather do a P&F FPM form based or if I can achieve what it is suppose to do? or maybe I should go back to the client and talk him through changing that infotype architecture? using subtype instead of a connection to a Z table and GOS services to store employee files seems way easier for me; but still I am facing the upload/download functional which I dont really no how to wrap around the FPM either it is ATS or GL2. I have checked indian-specific infotype 3743 has this uploading functionality (GOS) but no corresponding FPM I could inspire myself on!
Also, not sure if I am missing something but when I try to change the value of one the field on the infotype pnnnn structure (that infty actually has one checkbox field) and save I end up with a dump because to BOL model does not find my entity (lo_entity). it s not the first infotype I am enabling for HR Renewal and I never had this error before.. I wonder what I am missing....
Would you gurus oriente me a lil on how I should best proceed? should I rather use P&F? Your help and advise would greatly be appreciated!
Thanks.

Hello:
So after some thinking through:
- upload and download are handler by the FPM ATS feeder (client copy with enhanced options into to manage event method).
- lo_entity without pointer causing dump occurred because I had inconsistently used the set automatic tag option into the FPM configuration floorplan editor.
- PAOC_ASR_PERSONAL_FILE would be my recommendation but client want to follow on its own mini-dev for personal file hosting.
Thank you gurus!

Similar Messages

  • Upload/Download file to/from a document library in a SharePoint online site

    Hi,
    I am referring to the below blog for Upload/Download file to/from a document library in a SharePoint online site.
    http://blogs.msdn.com/b/rohitpuri/archive/2007/04/10/upload-download-file-to-from-wss-document-library-using-dav.aspx?CommentPosted=true#commentmessage
    I would like to know if this is feasible with a SharePoint online site.
    If feasible, how can I resolve the below exception I am getting while using the code.
    “The remote server returned an error: (403) Forbidden”.
    Thanks,
    Thanan

    Hi,
    Actually what I am trying to achieve is the two things.
    1) By using only the user's name, need to upload/download from/to the document library of SharePoint online site using the CSOM. (i.e., achieving Single Sign On / Windows Authentication)
    2) I need to achieve the above only by passing the document URL; not by hardcording/ configuring the document library name in the windows application.
    Can anyone pls help on this now?
    [Below code is working fine. But need to arrive the solution whereas the above 2 conditions are not violated.
    using (var clientContext
    = new ClientContext("https://yoursiteurl.com"))
               string passWd
    = "password";
               SecureString securePassWd
    = new SecureString();
               foreach
    (var c in passWd.ToCharArray())
                    securePassWd.AppendChar(c);
                clientContext.Credentials
    = new SharePointOnlineCredentials("username", securePassWd);
               using
    (var fs =
    new FileStream("fileName",
    FileMode.Open))
    var fi =
    new FileInfo("fileName");
    var list = clientContext.Web.Lists.GetByTitle("Doc Library");
                   clientContext.Load(list.RootFolder);
                   clientContext.ExecuteQuery();
    var fileUrl = String.Format("{0}/{1}", list.RootFolder.ServerRelativeUrl,
    fi.Name);
    Microsoft.SharePoint.Client.File.SaveBinaryDirect(clientContext, fileUrl,
    fs, true);
    Thanks,
    Thanann

  • Uploading/Downloading Files in Webdynpro ABAP

    Hello,
    I am trying to Upload/Download Files in Webdynpro ABAP using the following link:
    http://wiki.sdn.sap.com/wiki/display/WDABAP/UploadandDownloadfilesinWebdynproABAP
    It works fine and the file(either .doc or .txt) gets uploaded successfully. But when I download it ,it is not able to retrieve the contents.
    May be the SAP ECC system does not work with Microsoft Office 2007.
    Please help.
    Thanks.

    I guess it has problem with .doc extension but
      .txt you can read
    and also .docx and .xlsx will provide the content
    it is only this .doc and .xls which will create problem.
    e.g. .docx after downloading will give one .zip file.
    change its extension to .doc or .docx. the content will be there.
    thanks
    sarbjeet singh.

  • Problem with uploading a file in Clustered Environment

    Hi,
    I have a problem with uploading a file in a clustered environment. I have an iview component which facilitates an upload action of an xml config file. The problem is that the upload of the modified XML file is reflected only in the central instance of the cluster and not in the dialog instances. The dialog instances hold the old config file.
    Is there any solution to upload the file to all the nodes in the cluster.
    Thanks
    Kiran

    Hi,
    This is a known problem with clustered environment. Remember that your portal component runs on just on dialog instance and it doesn't automatically have access to the other nodes.  However, there are some ways to get around this
    1. Use KM to store files. KM is a common repository for all application servers and therefore you needn't worry more
    2. Use an external batch oriented product (suresync/robocopy) to synch folders on the different DIs. You basically use your existing portal component, but there is a batch job which makes sure the upload folder is identical on all DIs (however, there is a slight delay depending on how often you run the batch job)
    3. Store the files on a shared disk directly from the portal component.
    Cheers
    Dagfinn

  • HT1338 I have a problem with opening downloaded files from the internet; zip types. Can you tell me an app to open these types of formats of files?

    I have a problem with opening downloaded files from the internet; zip types. Can you tell me an app to open these types of formats of files?

    It should unzip if you double-cick.
    What are you seeing happen when you do that?
    Select a .zip file in the Finder and Get Info (cmd-i). What is set for it to Open With. It should be Archive Utility.

  • To whom this may concern, I'm having troubles with uploading Flash Files Online throught Adobe Flash Professional and I would to correct the Error Messages I've received as an indication that I need to correct them in order to test a Flash and Shockwave F

    To whom this may concern, I'm having troubles with uploading Flash Files Online throught Adobe Flash Professional and I would to correct the Error Messages I've received as an indication that I need to correct them in order to test a Flash and Shockwave Files I have stored into the Software of Flash!. Could you please help me get this matter resolved? Gerard Hargrove.

    what exactly are you trying to do and attach a screenshot of the error message, if it's in english.

  • Firefox crashes when uploading/downloading files from/to 'desktop folder'

    Hello
    I'm hoping, that you can help me!
    I'm using Firefox 28.0 on MacBook Pro Mavericks 10.9.2
    Firefox crashes/freezes when I try to upload/download files from/to my 'desktop folder'.
    I't only happens, when I use this folder. Download to 'download folder' or any other folder works fine.
    Download to 'desktop folder' when using Safari also works fine.
    I't only happens when desktop and firefox tries to communicate.
    It's very annoying when I accidentally forget, that the bugs is there, and I have to force quit and start all over again. And sometimes I don't even have a choice, because 'desktop' randomly opens as default folder, when I try to upload things.
    Thank you so much in advance!
    Kind regards Elizabeth

    Hi ESwan,
    I am not a Mac user so not the best person to attempt to assist but here goes.
    I am presuming that info such as
    PID: 1695 Event: cpu usage (microstackshots only)
    Relate to the Mac OS X crash & event logging and reporting.
    What we need are the ones that Firefox itself generates and submits for processing by Mozilla Firefox
    * See [[Firefox crashes - Troubleshoot, prevent and get help fixing crashes#w_get-help-fixing-this-crash]]'''#w_get-help-fixing-this-crash'''
    From what you say the crashes occur after a certain action and I am hoping that you will be able to use the easy method as in the article linked above. Navigate to about:crashes by keying ''about:crashes'' into the address bar. You are loolking for the ones starting wth ''bp-'' Paste two or three of those into your next post. Include the bp- part but not any link information before that. After they are pasted into the forum the forum software changed them to be links.

  • SSL and uploading/downloading files

    When I download/upload file via HTTP and using SSL, is my attached file sent encrypted or SSL is only for message itself? In other words I download file from https://myfoo.com/myfile.txt <-- will this file be encrypted during transmission?
    Thank you.
    Andrei

    Yes the transmission is encrypted.
    SSL is about encrypting the mediumin network layer, aka the content of the tcp packets, not end to end encryption; so your file will be transmitted in an encrypted form along with other control data. But on the client side when put together you don't have to do further decryption.

  • How to upload/download file to/from server using FiledownloadUI ?

    Hi experts,
    I don't have much experience of WDABAP. I have to upload a file  to server and then download it again. I have implemented  this functionality but I am unable to view contents of .xls/.doc/.docx/.msg file only  txt file contents are properly visible. I have used  following command to upload the file:-
    OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    I had  also tried this but it is throwing  exception that it can be used only for character type data.
    OPEN DATASET fname FOR OUTPUT IN TEXT MODE  ENCODING UTF-8    WITH SMART LINEFEED.  
    Thanks in advance.
    Problem Solved!
    Regards,
    Vishesh
    Edited by: Vishesh@1986 on Sep 26, 2011 7:37 AM

    I have resolved the issue myself!!!

  • Uploading & Downloading Files into DMS Server using Web Dynpro Java

    Hello Friends,
          I want to Upload a file from Portal to Document Management Server and to Download a file from Document Management Server to Portal,  In short, I want to give the user the facility to Upload a File into DMS Sever via Portal and also to download the file from DMS Sever via Portal.
      Can anybody give me a Input for the same from Both Java Development End as well as ABAP End, more inputs are required from ABAP end, since i have a very less ABAP Experience on working with DMS. Few Questions i have in my mind?
    1. How to actually access the file contents with the help of Document Number?
    2. With the help of Doc-Number we can extract the file from DMS sever but to provide a option for downloading in portal, the   RFC should convert the File Contents into X-String or is there some other way?
    +3. While Uploading the Data should be given in Which format to RFC? Are there any limitation with respect to size or formats. Is there any Standard RFC i can use directly in WD4 Java application to upload the file into DMS Server and which will return me the Document Number? +
    Please give me your valuable inputs.
    Thank You.
    Edited by: TusharShinde on Feb 21, 2011 11:13 AM
    Now, I am able to download the File in Portal via my WD4 Java Application from DMS Server by passing the Document Number, but I am facing the problem in downloading the PDF files, Its not working for PDF files. Please give me inputs for the same.
    Thank You.
    Edited by: TusharShinde on Feb 22, 2011 10:13 AM

    HI,
    Thanks for reply.
    I am able to download the file From DMS server but I am still not able to Upload the File to DMS Server via Portal. For Download also it is working for all file formats but not for PDF any specific reason for the same.
    function zhrf_rfc_dms_download_document.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(LV_DOCUMENT) TYPE  DOKNR
    *"  EXPORTING
    *"     VALUE(LV_FADA) TYPE  XSTRING
    *"  TABLES
    *"      LT_DOC STRUCTURE  BAPI_DOC_FILES2
    *"      LT_OUT STRUCTURE  ZST_DMS_FILE_XSTRING
    data: ls_docfiles type bapi_doc_files2,
             ls_dms type dms_doc_files,
             lt_docfiles type standard table of bapi_doc_files2.
    *      data: LT_OUT  type table of  ZST_DMS_FILE_XSTRING.
      data :wa_out like line of lt_out.
      select single * from dms_doc_files
        into ls_dms
        where doknr = lv_document."Retrieve file
      if sy-subrc = 0.
        ls_docfiles-documenttype = ls_dms-dokar.
        ls_docfiles-documentnumber = lv_document.
        ls_docfiles-documentpart = ls_dms-doktl.
        ls_docfiles-documentversion = ls_dms-dokvr.
    *    ls_docfiles-documenttype = '321'.
    *    ls_docfiles-documentnumber = LV_DOCUMENT.
    *    ls_docfiles-documentpart = '000'.
    *    ls_docfiles-documentversion = 'A0'.
      endif.
      call function 'BAPI_DOCUMENT_CHECKOUTVIEW2'
        exporting
          documenttype    = ls_docfiles-documenttype
          documentnumber  = ls_docfiles-documentnumber
          documentpart    = ls_docfiles-documentpart
          documentversion = ls_docfiles-documentversion
          documentfile    = ls_docfiles
          getstructure    = '1'
          getcomponents   = 'X'
          getheader       = 'X'
    *      pf_http_dest    = 'SAPHTTPA'
          pf_ftp_dest     = 'SAPFTPA'
        tables
          documentfiles   = lt_docfiles.
      data: i_bin type standard table of sdokcntbin,
            i_info type standard table of scms_acinf,
            v_info type scms_acinf,
            v_id type sdok_phid,
            v_cat type sdok_stcat.
      if sy-subrc = 0.
        loop at lt_docfiles into ls_docfiles.
          v_id = ls_docfiles-docfile.
          v_cat = ls_docfiles-storagecategory.
          call function 'SCMS_DOC_READ'
            exporting
              stor_cat              = v_cat
              doc_id                = v_id
              phio_id               = ls_docfiles-file_id
            tables
              access_info           = i_info
              content_bin           = i_bin
            exceptions
              bad_storage_type      = 1
              bad_request           = 2
              unauthorized          = 3
              comp_not_found        = 4
              not_found             = 5
              forbidden             = 6
              conflict              = 7
              internal_server_error = 8
              error_http            = 9
              error_signature       = 10
              error_config          = 11
              error_format          = 12
              error_parameter       = 13
              error                 = 14
              others                = 15.
        endloop.
        if sy-subrc <> 0.
        else.
          data: v_xstring type xstring.
          read table i_info into v_info index 1.
          call function 'SCMS_BINARY_TO_XSTRING'
            exporting
              input_length = v_info-comp_size
            importing
              buffer       = v_xstring
            tables
              binary_tab   = i_bin
            exceptions
              failed       = 1
              others       = 2.
          if sy-subrc <> 0.
          endif.
        endif.
        wa_out-file_name =  ls_docfiles-docfile.
        wa_out-binary = v_xstring.
        lv_fada = v_xstring.
        append wa_out to lt_out.
      endif.
    endfunction.
    The above is the RFC Code,  I am using in my WD4Java app for downloading the file From DMS Server, Is there any Improvement suggested for above RFC to make it work in more efficient way. Please give me input for my Upload RFC.
    Thank You.

  • Upload download files

    Hi SDN,
    My reqd is that i want to upload file to the application server and then download the file from <b>webdynpro ABAP.</b>
    This file can be of any format eq excel,word,pdf..etc
    file when downloaded also needs to be opened in the same format.
    there can be two files with the same name when uploaded,( file name needs to be a combination ).
    I need to get back an unique key while uploading the file.
    Kindly tell me how to proceed.
    Please pass any FM or sample code that will help me
    TIA
    Bidyut

    Thanks for your reply Anuj.
    We have no separate server for archiving the files.
    please help
    Bidyut
    Message was edited by:
            Guest

  • IWeb's built in ftp client won't upload new files

    iWeb's built in ftp client is mad at me, refusing to upload new files. No doubt because last Sunday I asked GoDaddy to change my domain name (same site, name changed). They did. Immediately nothing would upload. GoDaddy said "Well some FTPs are picky." Problems continued so I said OK, please change the domain name back to its previous name, and all would be put right again. I thought.
    No so. iWeb's ftp client seems still offended for having been disturbed. I make a change. Save. Click Publish Site Changes. Get the window saying Content Rights. Click Continue. The blue line scrolls nicely, "Publishing will continue in the background" shows, then **"Your site has been published"**...
    ...but no changes or files have been uploaded. The old page is the same.
    Looks like I permanently po'd iWeb’s ftp. Should I give up and rebuild my site in a new folder? Try Fetch?
    I shouldn't have done that stupid thing last Sunday. Live and learn.
    Help?

    The root folder on the server is the top level one that you upload your files to.
    You publish your website files to a local folder on your Mac. This produces an index.html file and a folder with the same name as your site in iWeb.
    An FTP application transfers the files on your Mac to the root folder on the server using File Transfer Protocol.
    Unlike Cyberduck, most shareware FTP applications will show both the files on your Mac and those on the server in the same window so its just a question of browsing to the folder containing your website files on your Mac and dragging them across to the icon of the root folder on your server. The application will take care of the rest.
    The process really is just about as simple as dragging files from one folder on your Mac to another as long as you have the FTP application set up correctly.

  • Safari cant upload/download files, other browsers crash

    MY Ipad 3th generation can't upload or download any files in Safari From the new Ios 8.
    This have nothing to do with Safari because other browsers like Chrome crash directly if you want to upload a file from your photo library.
    This all happened after the update to Ios 8.
    I hope that they come fast with an update.

    Hi
    I wonder if you installed any software like Speed Download ?
    http://www.yazsoft.com/products/speed-download/faqs/?how-to-un-install-speed-dow nload-properly.

  • Webutil - issue with uploading text files with client_get_file_name

    Hi,
    I'm using webutil client_get_file_name to upload files from the client machine to the server.
    It works fine for xls,pdf,doc files etc. but not for txt files it seems.
    It doesn't display any error at all either.
    Has anyone seen this type of issue before?
    Kind regards,
    Tom
    Windows XP
    Forms v10.1.2.0.2

    Hi Sarah et al,
    The code that I'm using to upload any file type format is:
    vfilename := client_get_file_name('c:\',file_filter => 'All files (*.*)');
    it works for doc/pdf/xls/rtf/csv etc.
    but not for text files i.e. .txt
    Also, could someone tell me how to open a .msg (Outlook message) file
    as it gives the output:
    'Cannot read item' upon the opening of the Outlook application.
    I'm using the following to try and open it:
    CLIENT_HOST( 'cmd /C start '||p_filename);
    Your help would be appreciated.
    Kind regards,
    Tom

  • How to upload & Download file in Adf using Jdeveloper 11.1.2 ??

    Hi All,
    I have just started working on Oracle ADF, Thanks a lot guys for solving our queries.
    I'm using Jdeveloper 11.1.2, How to upload and download file in ADF..?
    I have seen couple links on net but none of them worked on jdeveloper 11.1.2......
    Please Help......

    Hi guys,
    I'm able to download file in ADF using af:fileDownloadActionListener.......
    does any one knows how to upload a file using ADF???

Maybe you are looking for