Efficient way of saving documents uploaded by users

Hello Experts,
We are looking out for an efficient way of storing of documents uploaded by the users. Below is the explanation of our scenario in detail.
We are working on the SAP E-Recruiting module and have designed custom Interactive Adobe Forms & Web Dynpro Components for the client. An end user (initiating manager) would fill in the form & upload file(s) in support of his statement & click on the "submit" button. As of now we are achieving the upload functionality through WDA's FileUpload ui element & dumping the file contents into a field of type RAWSTRING.
We now want to change our approach of using the RAW_STRING field & go for a more efficient one. I have been googling around and read a bit about approaches like:
Class CL_BDS_DOCUMENT_SET
Class CL_FITV_GOS
Function Module BDS_BUSINESSDOCUMENT_CREATEF
But all these 3 approaches seem to be targetted towards some particular business object. They expect some sort of class name or the other to be passed on to them as input. However ours is a complete custom requirement wherein the entire forms data is going into a Z-table so none of these approaches would hold good. (Please correct me if I am wrong when I say that coz I haven't personally worked on any of them till date!) Awaiting your expert opinions on this matter.
Regards,
Uday
Any ideas please?
Edited by: Uday Gubbala on Mar 4, 2010 10:56 AM

See if this sample code helps....we hav DMS ( Document management System )
MOVE: 'DRW' TO DOCUMENTDATA-DOCUMENTTYPE,
        'C:\Users\sci30\Desktop\test.doc' TO
         DOCUMENTDATA-DOCFILE1,
        'TEST DESCRIPTION' TO  DOCUMENTDATA-DESCRIPTION.
*          move 'WR' to documentdata-STATUSINTERN.
  MOVE 'WRD' TO DOCUMENTDATA-WSAPPLICATION2.
  CLEAR : WA_OBJ_LINK.
  MOVE 'MARA' TO WA_OBJ_LINK-OBJECTTYPE.
  MOVE HEADDATA-MATERIAL TO WA_OBJ_LINK-OBJECTKEY.
  APPEND WA_OBJ_LINK TO GT_OBJ_LINK.
  CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
    EXPORTING
      DOCUMENTDATA               = DOCUMENTDATA
*         HOSTNAME                   =
*         DOCBOMCHANGENUMBER         =
*         DOCBOMVALIDFROM            =
*         DOCBOMREVISIONLEVEL        =
*         CAD_MODE                   = ' '
*         PF_FTP_DEST                = ' '
*         PF_HTTP_DEST               = ' '
*         DEFAULTCLASS               = 'X'
    IMPORTING
*         DOCUMENTTYPE               =
*         DOCUMENTNUMBER             =
*         DOCUMENTPART               =
*         DOCUMENTVERSION            =
     RETURN                     =    RETURN_DOCUBAPI
   TABLES
*         CHARACTERISTICVALUES       =
*         CLASSALLOCATIONS           =
*         DOCUMENTDESCRIPTIONS       =
      OBJECTLINKS                = GT_OBJ_LINK
*         DOCUMENTSTRUCTURE          =
*         DOCUMENTFILES              =
*         LONGTEXTS                  =
*         COMPONENTS                 =
  COMMIT WORK.

Similar Messages

  • Most efficient way to get document names?

    I was wondering what is the most efficient way to get the document names in a container? Use the built in 'name' index somehow, or is there an 'efficient' XPath/XQuery?
    We've been using the XPath /* which is fine with small instances, but causes a java heap out of member error on large XML instances i.e. /* gets everything which is not ideal when all we want are document names.
    Thx in advance,
    Ant

    Hi Antony,
    Here is an example for retrieving the document names on c++:
    void doQuery(XmlContainer &container,
    XmlQueryContext &context,
    const std::string &XPath)
    XmlResults results(container.queryWithXPath(0, XPath, &context));
    // Iterate through the result set as is normal
    XmlDocument theDocument;
    while(results.next(theDocument))
    std::cout << "Found document named: "
    << theDocument.getName() << std::endl;
    Regards,
    Bogdan Coman

  • WHAT IS THE MOST EFFICIENT WAY OF ORGANISING DOCUMENT FILING ?

    I know this sounds dumb, but I am flummoxed about how to organise filing of folders on my Mac. In the real world filing is easy but computers seem to make it completely different & a nightmare.
    I have ten years worth of using various macs all copied onto the latest one & now occupying about 230 Gigabytes. There are loads of duplicated files and repeated backups from all those years just sitting around taking up space & making it impossible to find anything.
    Obviously I was careless about filing right from the start, not realising what a mess it would get into.
    In the real world you can just clean up an untidy mess and make it tidy, organised and easy to find things. But in the real world you dont have an electronic lunatic duplicating everthing all the time. With over a million files to look at & sort it is simply impossible to do what you would do in the real world.
    One obvious solution is just to archive it and start again. But this time I would like to know how to stop this happening again and what is the best 'system' or way of organising files to stop it all becoming a total mess again.
    What seems to happen is that my good intentions of having about ten folders on my desktop to cover ten areas of activity naturallly degraded as when you have a busy day you collect all sorts of things on the desktop outside of those folders which you want to just leave on the desktop to deal with and complete another day.
    This process happens every day and so when you then clean up the desktop you just bung all those files in the basic ten folders. But that just means you transfer the mess from the desktop into the ten basic folders and the same process just gets endlessly repeated all the way down through each hierarchical layer of the folders.
    This is obviously a problem everyone has, and some bright spark must have worked out a way of preventing this from happening.
    i.e. someone must have worked out the best way of organising a filing system on a Mac.
    And part of this problem is illustrated by email which I have no idea how to stop getting bigger & bigger.
    The only solution I can think of is to archive my whole desktop on an external disk and start all over again from the begining by setting up a brand new account. But while this would work to start off with, unless I can work out some way of doing things better, it will also eventually become a horrible, cluttered mess.
    Has anyone got any ideaas about how to deal with this problem. It must be a problem for everyone really ?

    Well, there are two sides to this. The first is obviously the organizing of your files, which is something that you really have to work out your own solution for. I don't know what your ten folders are called, but it seems that that's not working for you as a way to keep things managed on a daily basis. What kind of files are these - documents (eg Word files), photos, something else? Do they all need to be filed in folders? (If they're images, there are better ways to manage them - eg iPhoto). Do they all even need to  be kept?
    The other side to this is retrieval. We keep things organized so that we can easily retrieve them. However, the advantage of a computer-based system, above a paper filing system, is that you can have multiple ways of getting to information without having to change the way the files are stored. For example, the Finder can store searches as Smart Folders, meanings that you can search documents for "Tax Return" and store the results in a sidebar shortcut. Any documents containing that text (whether in the title or in the document itself, your choice) will automatically be displayed in that "folder" (although you're not moving files, you're simply displaying the result of a search).
    Similarly, tags in 10.9 Mavericks are designed to let you add keywords to files (such as "Urgent", "Pet Information", "Household", "Financial", and so on), and documents tagged this way are automatically shown collected in the sidebar.
    Email services are moving in the same direction. You *can* spend a period of time every day manually filing email into mailboxes you've created to organize them, but a more efficient method can be to leave them all in one folder (ie, the inbox), tag them appropriately, and then display the tagged results as folders (this is what Gmail does with labels), or search for specific criteria (show me all mail from Bob with attachments, show me all mail that includes the phrase "Project Werewolf".
    If you can figure out a smart retrieval system that works for you, I would recommend that over the manual organization which is currently causing you frustrations. Do some basic organizing, sure - you don't want everything in one huge folder - but don't forget there are tools which are there to help you find things quickly.
    Matt

  • Advice needed: Efficient way to scan users

    Hi all,
    I wish to know the efficient way to scan users in Lighthouse. I need to write a workflow that checkout all the users and perform some updates. This workflow should run everyday at midnight.
    I have created a scanner myself. Basically what It did are:
    1. call FormUtils.getUsers method to return all users' name into a variable.
    2. loop through this list and call a subprocess workflow to process every user. This subprocess checks out a user view, performs updates, and then checks in view.
    This solution is not efficient at all since it causes my JVM to be Out of Memory. (1G RAM assigned to JVM with about 78,000 users)
    Any advice is highly appreciated. Thank you.
    Steve

    Ok...I know understand what you are doing and why you need this.
    A long, long, long time ago (back in 3.x days) the deferred task scanner was really bad. Its nightly scan would scan ALL users each time. This is fine when your client had 4k users...but not when it has 140k users.
    Additionally, the "set deferred task" function had problems with two tasks with the same name "i.e. disable resource" since it used the name as the xml object name which can not be duplicated.
    soooo, to beat this I rewrote the deferred task handler to allow me to do all of this. Part of this was to add a searchable field called 'nextTaskDate' on the user object. After each workflow this 'date" is updated so it is always correctly populated with the users "next deferred task date"
    each night the scanner runs and querys all users with a nextTaskDate of today. This then gives us a result set that we can iterate over instead of having to list each user and search for tasks. It's a billion times faster.
    Your best bet is to store the task date in miliseconds and make your query a "all users with next task date BEFORE now"...this way if the server is hosed you can execute tasks you may have missed.
    We have an entire re-usable implmentation framework that we have patented (of which this code is a part) that answers most of these types of issues you are bringing up. It makes these implementations much much simpler, faster, scalable and maintainable.
    this make sense?
    Dana Reed
    AegisUSA
    Denver, CO 80211
    [email protected]
    773.412.3782
    "Now hiring best-in-class IdM architects. Inquire via emai"

  • Document library Permission - users/group can add/upload/modify but same time not to see other documents

    Hi,
    I have a question regarding SharePoint document library permission. I am using SharePoint 2013.
    I have 3 SharePoint groups (SP-Group-NL, SP-Group-US & SP-Group-BR).
    I have given the contribute access to all 3 groups in the document library, so that people can with in these group can upload/add/modify document inside it.
    Now I want that people from specific group can only view those document which they uploaded and not all.
    Note - (a) I don't want to use audience targeting. (b) I don't want to right any code.
    Regards,
    Yogendra

    Hi Yogendra,
    Per my understanding, you might want users in a specific group can view only the documents uploaded by themselves.
    In the OOTB list view settings, we can set filter on a list view to only display the documents created by the current user:
    However, if you want this filter only apply to users in a specific group, Audience Targeting or custom code would be required as there is no such OOTB feature in SharePoint
    list can meet this requirement.
    With Audience Targeting, a possible solution is that, we can add two list view web parts into one page, set Audience Targeting on one of them to display only when
    the current user is in the specific group, then modify the view settings to apply filter on this list view web part to make it only display the documents created by current user.
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Most efficient way to use thumbnails of multiple sizes

    When a user submits an image on my website, the upload script
    currently creates thumbnails in three different sizes (120px, 90px,
    and 20px). Different thumbnail sizes are used in different areas of
    the site.
    Is there a more storage-efficient way to display high-quality
    thumbnails in different sizes, without requiring a separate
    thumbnail file for each size used?
    I cannot rely on browsers to resize images as the quality is
    often very undesirable.

    AngryCloud wrote:
    > I may not have been clear in my last post...
    >
    > When an image is viewed normally on a page, it is saved
    to the client's
    > computer so that it will load instantly the next time
    the image is called for.
    >
    > I do not want visitors to have to wait for the same
    images they have already
    > seen to re-download and resample. A file of each
    resampled image should be
    > saved to the client's computer to avoid this.
    >
    >
    Is it possible to save resampled images on a page to the
    client's
    > computer?
    It sounds like your page needs to check whether the cached
    version
    exists before creating the a new image, otherwise its always
    going to
    create a new version of the image and send it to the
    browser... but I
    don't know how this is possible.
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

  • Import Saved Document Presets from older PS to PS CC 2014

    Is there a way to import saved document presets from older versions of Photoshop into Photoshop CC 2014? I have a fair amount of document presets I use almost daily and it'd be a pain to have to enter all of them again to save them.

    If you create an action set with just the one action and save the set upload the uploade it to the web and post a link to the .atn file we can download the action and test that on our machines.  You will get feedback from both Mac and PC users. It sound odd that it would work once then fail the second  time. Was Photoshop CC 2014 up before you used bridge menu tools>photoshop>batch the first time or was Photoshop started because you used tools>photoshop>batch.  If is was not up did you try closing PS down before the second batch?

  • Why saving documents on an AFP server sometimes results in damaged Pages docs?

    We used to work with some AFP shares on a Mac OS X server, to open, edit and save Pages, Keynote and Numbers documents flawless.
    Since the new generation of this OS X  Apps appeared with Mavericks, all goes "bonk": Many documents appear as folders after saying on the AFP share and cannot be reconstructed in any way.
    Copying documents from the AFP share to the user's desktop and replacing them later after edit is a no-go, because users forget to perform this step and it's extremely inconvenient.
    Is there any solution for this open/edit/save problem on remote shares?

    Thanks Peter,
    we use a generic Mac OS X server running under Mavericks. Pages 09 is no alternative because our users are highly mobile and use docs via WebDAV in iOS Apps too.
    What we want: opening and saving iWork docs like in earlier versions directly from the AFP share. It does work, but you never know if the doc will survive the latest edit or appear as a bunch of useless data on the share.
    The download/upload is a solution that simply doesn't work in a modern workflow.
    Stephanos

  • Document upload  in BEX

    HI
    All
    I have a question is there any way that we can upload documents with Infocubes or ODS and in Report we can Edit those documents or say change and save it not static like Metadatarepository User need to add notes to reports on BEX.
    Thanks in Advance Thaughts Ideas?
    Paul

    Hai Ashok ,
    can u plz tell me how to upload a file to bex....or can send mail to [email protected]
    here my situation is i need to upload a picture /image to bex ...can u plz tell how to do tht ...
    I will asign points yar ..
    its urgent
    Suri...

  • Most efficient way to loop though many similarlly named fields?

    Hi,
    I have a 5 page document with each page containing appx. 50 similarly named fields.    E.g. Viol1Num, Viol2Num, Vio3Num ...  Viol50Num.
    I am looking for an efficient way of programming a loop to look at each field in Javascript so I can do some manipulations in those fields on what the user entered.
    In FormCalc I've previously used the 'foreach' function similar to:
    foreach (Field1, Field2, Field3.....Field50) do
         'BLAH'
    endfor
    however, that gets really lengthy, especially when dealing with subsequent pages where I have to start adding 'topmostSubform.Page2.' in front of each field name so that I can access from the first page all of the fields on subsequent pages.  Also, I need to do this in Javascript, not FormCalc.
    For example, in JS I am using this loop to mark all fields as read only:
    for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++) {
    var oFields = xfa.layout.pageContent(nPageCount, "field");
    var nNodesLength = oFields.length;
    for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) {
    oFields.item(nNodeCount).access = "readOnly";
    How could I do something similar to that so I could look through each field and perform actions on it without having to list out every single field name?
    I tried altering that to look at fields instead of field properties, but I couldn't get it to run.
    Thanks.

    If this is an LCD form then you're better off asking over at the LCD forum.

  • Most efficient way to loop through similarly named fields?

    Hi,
    I have a 5 page document with each page containing appx. 50 similarly named fields.    E.g. Viol1Num, Viol2Num, Vio3Num ...  Viol50Num.
    I am looking for an efficient way of programming a loop to look at each field in Javascript so I can do some manipulations in those fields on what the user entered.
    In FormCalc I've previously used the 'foreach' function similar to:
    foreach (Field1, Field2, Field3.....Field50) do
         'BLAH'
    endfor
    however, that gets really lengthy, especially when dealing with subsequent pages where I have to start adding 'topmostSubform.Page2.' in front of each field name so that I can access from the first page all of the fields on subsequent pages.  Also, I need to do this in Javascript, not FormCalc.
    For example, in JS I am using this loop to mark all fields as read only:
    for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++) {
    var oFields = xfa.layout.pageContent(nPageCount, "field");
    var nNodesLength = oFields.length;
    for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) {
    oFields.item(nNodeCount).access = "readOnly";
    How could I do something similar to that so I could look through each field and perform actions on it without having to list out every single field name?
    I tried altering that to look at fields instead of field properties, but I couldn't get it to run.
    Thanks.

    I have solved my issue.   It took some battling in javascript using xfa.resolveNode.
    I have 5 pages, each consisting of a series of 60 fields named Viol1Num, Viol2Num, Viol3Num .... Viol60Num.
    If when this javascript runs, it detects a blank field, then insert a '3' into it.
    The below is the javascript which runs for the second page of this document.
    while (LoopCounter < 61) {
    if ((LoopCounter != 21) && (LoopCounter != 22)) {
    if((xfa.resolveNode("topmostSubform.Page2.Viol" + LoopCounter + "Num").rawValue == null) | (xfa.resolveNode("topmostSubform.Page2.Viol" + LoopCounter + "Num").rawValue == "")) {
    xfa.resolveNode("topmostSubform.Page2.Viol" + LoopCounter + "Num").rawValue = 3;
    LoopCounter = LoopCounter + 1

  • Create an iview for batch document upload to KM

    Hi, I´m trying to create an iview for batch document upload to the portal. At the moment, I've only been able to upload documents from a source directory in the server, given an xml file uploaded from the client, which indicates the location of these files.
    The inclution of the uploaded file to KM is not an issue, that is already solved. I'm just trying to make it usable by an administrative user that may not have access for creating folders in the portal server, unlike me.
    I need help doing one of these two things:
    1. creating an upload percentage status bar
    or 2. accesing the client's directory to upload and insert the file into the repository one by one.
    Can anyone help?
    (by the way, I'm trying to to exactly what the portal epa import iview does, but with documents, so i know it's possible, i just don't know how)

    See /thread/71174 [original link is broken]

  • Efficient way get FCE4 Log and Transfer to read .mts files stored on drive?

    Hi All
    I've searched the FCE discussion forum and not found an answer verified by more than one user to this question: What is an efficient way to get FCE4 (via the Log and Transfer window) to see .mts files from an AVCHD camera stored on a drive (NOT via the camera -- directly from the drive)?
    I am trying to plan the most space-efficient system possible for storing un-transcoded .mts files from a Panasonic AG-HMC151 on a harddrive so that I can easily ingest them into FCE4. I am shooting a long project and I want to be able to look at .mts files so that I can decide which ones to transcode to AIC for the edit.
    Since FCE4 cannot see .mts files unless they have their metadata wrapper the question is really 'how do I most efficiently transfer .mts files from the camera to a storage harddrive with their metadata wrappers so that FCE4 can see them via the log and transfer window?'
    Nick Holmes, in a reply in this thread
    http://discussions.apple.com/thread.jspa?messageID=10423384&#10423384
    gives 2 options: Use the Disk Utility to make a disk image of the whole SD card, or copy the whole contents of the card to a folder. He says he prefers the first option because it makes sure everything on the card is copied.
    a) Have other FCE users done this successfully and been able to read the .mts files via Log and Transfer?
    In a response to this thread:
    http://discussions.apple.com/thread.jspa?messageID=10257620&#10257620
    wallybarthman gives a method for getting Log and Transfer to see .mts files that have been stored on a harddrive without their metadata wrappers by using Toast 9 or 10.
    b) Have any other FCE4 users used this method? Does it work well?
    c) Why is FCE4 unable to see .mts files without their metadata wrappers in the Log and Transfer window? Is it just a matter of writing a few lines of code?
    d) Is there an archiving / library app. on the market that would allow one to file / name / tag many .mts clips and view them prior to transcoding into space-hungry AIC files in FCE?
    Any/all help would be most gratefully received!

    I have saved the complete file structure on DVD as a backup, but have not needed to open them yet. But I will add this. As I understand the options with Toast you are infact converting the video to AIC or something like it. I haven't looked into it myself, but I can't imagine the extra files are that large, but maybe there are significant, I don't know. The transcoded files are huge in comparison to the AVCHD file.
    A new player on the scene for AVCHD is Clipwrap 2.0. As I understand this product. It rewraps the AVCHD into a wrapper the Quicktime can open and play. This is with the MTS files only, the rest of the file structure is not needed. The rewrap is much faster that the transcode to AIC. So you have the added benefit of being able to play the files as well as not storing the extra files. The 2.0 version (which is for AVCHD) was just recently released. I haven't tried it and don't personally know of anyone who has. You might want to try this, there is a trial version as I recall.

  • Best way to share documents over a same network

    How best to share a document on a LAN ?
    Thought I'd ask the experts who do this all the time...
    We never share docs but need to over our LAN so we can both edit same docs.
    What is the easiest, most efficient way to do so? Public folder, iDisk, or ?
    Thanks for any help with this beginner sharing question.
    System info:
    Both Mac running Snow Leopard
    Ethernet LAN

    It becomes confusing if more than one person is editing the same document at the same time. You could use a public folder then turn on "track changes" in your word processing program. The issue of course is if you are both editing then one or more of you will lose your edits when you save the document unless you are very careful on save.
    The best solution is to use a document management system that does version control. merges changes, etc.
    If there are only two of you each of you will need to coordinate document saves to ensure changes are merged. If one of you has the document open the other will have trouble saving changes as the document will be locked. Not to mention the need to review every word in the document to ensure the other's changes are not overwritten.
    If there are more than two of you editing the same document at the same time you need a document magement system. You can't rely on a manual process, especially if it is a large document you are all editing.
    If there are just two of you you could make one of you responsible for the document then use email to send this responsible person the document for merging and saving the changes to the document.
    The big issue IMO is not how to share the documents over the LAN but how to maintain version control. Sharing documents on the LAN is a trivial task.

  • Pop up message when saving document with document set

    Hi
    I want to display a pop up message when a user saves a document of a particular Content Type in a document set.
    How can this be done ?
    Thanks

    Hi,
    According to your post, my understanding is that you wanted to pop up a message when saving document.
    To achieve it, you should custom the edit form page.
    You can use the SharePoint Designer
    to customize the behavior of the "save" button.
    You should add the "onclick" method to the submit button, and put your JavaScript there.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/9d830f96-693a-438d-a5c8-005d1e86b578/how-to-show-a-popup-box-before-saving-properties-for-a-document-in-document-library?forum=sharepointdevelopmentlegacy
    You can also use the event receiver, when the files have been uploaded or edited to call the event receiver to open a pop up dialog.
    Thanks,
    Jason
    Forum Support
    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]
    Jason Guo
    TechNet Community Support

Maybe you are looking for

  • Where can I learn about javascript?

    I would love to be able to use javascript in my interactive PDF forms and am finding it difficult to find good reference articles on the subject. Does anyone else have or has solved this issue?

  • How can I delegate method from modalView to the parentView

    Hi I've 2 ViewControllers: parent,and child(ModalView) the parent is named "testDelegationViewController" and the child is "modal" then I want to send some parameters from the modalView to parentView On dismiss of the child but it doesn't work. I thi

  • Training Course and material - CR800

    Hello, I am an admin in SAP CRM 2007, and need help.  I want to take the best course possible to help me in my work, and I have been told that CR800 would be my best option.  However, I cannot find a course scheduled.  Can anyone offer a better alter

  • Video App Crash

    Not sure if anyone else has had this issue yet. Not very technical but still an annoyance. Basically, I downloaded a movie onto my iPad, the movie freezes about 30 minutes in. Try to get the movie running again (Hoping it was just a small freeze) by

  • New to IOS apps and Adobe CC

    I am Creative cloud photographer member ( Lightroom CC   Photoshop CC ) and would like to know if downloading "Adobe Shape CC" on my iPhone will change my subscription plan. In other words; what are the costs with this app ?