Multiple - Documents Display

All,
I am using fuction module ALINK_DOCUMENTS_DISPLAY to display Content server Documents.
So my question is
1. This function module have option to display only 1 document at a time. Is any other function module that can display multiple documents ?
2. Is any class available with the same functionality of the above said fm does ?

Hi  a®s,
I don't know of any FM for this purpose, but I think it should be possible.
For document display, SAP will always download a copy of the server content to the local SAP work directory. You can check this, if you display a document and, when open, check the directory.
Then they call the respective application (windows, excel, word) and create an OLE application to display/edit.
My idea is to download multiple files, create docking/splitter/dialogbox containers (one for for each document) and create document viewer instance in each control
C_OI_CONTAINER_CONTROL_CREATOR=>get_container_control
will get you the DOI Container, then
* initialize the SAP DOI Container, tell it to run in the container
* specified above and tell it to run application in-place
  CALL METHOD mo_container_control->init_control
    EXPORTING
      r3_application_name      = 'whatever your title is here'(001)
      inplace_enabled          = 'X'
      inplace_scroll_documents = 'X'
      parent                   = mo_excel_container
      register_on_close_event  = 'X'
      register_on_custom_event = 'X'
    IMPORTING
      error                    = mo_error.
*   get document proxy
  CALL METHOD mo_container_control->get_document_proxy
    EXPORTING
      document_type  = mc_document_type
    IMPORTING
      document_proxy = mo_document_proxy
      error          = mo_error.
Refer to this document Desktop Office Integration (BC-CI). It helped me a lot when I tried to integrate an excel application.
But to be honest, I did not try more than one instance of OLE application. But I do not see any obstacles.
If this seems too complicated, you may try to call your function
DATA:
  gv_task TYPE char08 VALUE 'T0000000'.
    ADD 1 TO gv_task+1."increase  numeric part of task name
    CALL FUNCTION 'XYZ'
      STARTING NEW TASK gv_task
This will open a new session.
Good luck, let us know...
Kind regards,
Clemens

Similar Messages

  • Display data from multiple document Libraries in List View Webpart

    Hi All,
    I want to display data from multiple document libraries into one list view webpart(custom i have created)
    I went through the following link http://blogs.msdn.com/b/ramg/archive/2009/04/22/implementing-a-simple-cross-site-collection-list-view-webpart.aspx
    but it tells to display only from one document library.
    My motive behind displaying data in the list view webpart is to achieve the functionality of Check In ,Check Out and other OOB features.
    With Regards,
    Jaskaran Singh

    Hi,
    As there is no such OOTB feature, a workaround is to create a visual web part to gather items from libraries and implement functionalities like Check in, Check out files
    in different libraries.
    The links below will provide more details:
    Create Visual Web Parts in SharePoint
    2010
    A demo about displaying list items in visual web part:
    http://www.dotnetcodesg.com/Article/UploadFile/2/217/Web%20Part%20in%20SharePoint%20To%20Show%20All%20List%20and%20List%20Items.aspx
    About the Check In and Check Out:
    How to Check In a document programmatically
    SPFile.CheckIn method
    and SPFile.CheckOut method
    Best regards
    Patrick Liang
    TechNet Community Support

  • Code to display stored multiple documents from KM into table.

    Hi.
    I stored some documets(multiple documents) in KM those documents i have to display(multiple documents) inside table.
    Regards,
    mahesh

    Hi
    Iam using below code iam able to access only one document at a time.I want multile documents in table.
    public void wdDoInit()
        //@@begin wdDoInit()
         wdThis.wdGetComp_Form_16Controller().executeZess_Form16_File_Details_Input();
                   wdThis.wdGetComp_Form_16Controller().executepersonalrfc();
                   wdContext.currentContextElement().setCa_pernr(wdContext.currentOutput12Element().getPernr());
                   wdContext.currentContextElement().setCa_name(wdContext.currentOutput12Element().getEmpname());
         wdContext.nodeCa_node().invalidate();
          try {
    //          Getting the useru2026u2026 
                                  IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
                                  IUser sapUser = wdClientUser.getSAPUser();
                                  com.sapportals.portal.security.usermanagement.IUser ep5User =  WPUMFactory.getUserFactory().getEP5User(sapUser);
                           //          Getting the Resourceu2026u2026u2026       
                                         IResourceContext resourseContext = new ResourceContext(ep5User);
                                         IResourceFactory resourseFactory = com.sapportals.wcm.repository.ResourceFactory.getInstance();  
                               // execute RFC...          
                                         int size = wdContext.nodeIt_Files1().size();
              //String a = size+"";
              for(int i=0; i<wdContext.nodeIt_Files1().size(); i++)
                                            IPrivateForm_16View.IIt_Files1Node node = wdContext.nodeIt_Files1();
                                            IPrivateForm_16View.ICa_nodeElement ele = wdContext.createCa_nodeElement();
                                       String file_path = wdContext.nodeIt_Files1().getIt_Files1ElementAt(i).getZfile_Name();
                                       //String file_path = "knagakrishna";
                               //Get a RID for the file
                                   RID file = RID.getRID("/documents/FORM16/" + file_path );
                                   // RID file = RID.getRID("/documents/FORM16/");
                               //get the file itself from KM
                                         IResource resource = resourseFactory.getResource(file, resourseContext);
                          //collections can not be opened, therefore we have to ignore them
                                         if(!resource.isCollection())
                                            {   byte[] bcontent = this.getByteArrayFromResource(resource); 
                          //get resource type   
                                                      WDWebResourceType resourceType = WDWebResourceType.getWebResourceTypeForFileExtension(resource.getRID().extension()); 
                                                      IWDResource iwdResource = null;
                          //resource type is known
                                                   if (resourceType != null)       
                                                       { iwdResource = WDResourceFactory.createResource(bcontent, resource.getName(), resourceType );
    //          resource type is not known        
                                                   else
                                                        { iwdResource = WDResourceFactory.createResource(bcontent, resource.getName(), WDWebResourceType.PDF); 
    //          save resource in context 
    //          wdContext.currentContextElement().setFileResource(iwdResource); 
    //           wdContext.currentContextElement().setCa_path1(iwdResource.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal())) ;
                        ele.setCa_path(iwdResource.toString()); 
                        ele.setCa_company(wdContext.nodeIt_Files1().getIt_Files1ElementAt(i).getButxt());
                        //ele.setCa_year(wdContext.nodeIt_Files1().getIt_Files1ElementAt(i).getZyear());
                        ele.setCa_year(wdContext.nodeIt_Files1().getIt_Files1ElementAt(i).getZyear());
                         ele.setCa_pernr(wdContext.nodeIt_Files1().getIt_Files1ElementAt(i).getPernr());
                        if( ""== ele.getCa_path())
                                // wdContext.currentContextElement().setCa_error("Letter Does not Exist!!") ;
                                ele.setCa_link( false);
                        else{
                          ele.setCa_link( true);
                                        wdContext.nodeCa_node().addElement(i,ele);
                                        //wdContext.nodeCa_node().add(ele); 
                                       // ele.node().invalidate();
         } catch (Exception e) {
              wdComponentAPI.getMessageManager().reportWarning("No Form16 exist, please contact ASK-HR at .");
    Edited by: Mahesh Shirke on Jun 8, 2011 10:24 AM
    Edited by: Mahesh Shirke on Jun 8, 2011 10:24 AM

  • How do I scan multiple documents to a single pdf from the ADF on my MX922?

    How do I scan multiple documents to a single pdf from the ADF on my MX922?
    Solved!
    Go to Solution.

    Hi Riceburner1,
    Since you have had difficulty scanning using My Image Garden, you can scan using the IJ Scan Utility program that also comes with the printer.  To do this, please follow these steps:
    1. Place the documents in the ADF or on the platen glass of the printer.
    2. Start the IJ Scan Utility.
        For Windows 8.1:
        1. On your keyboard, press the Windows key.
        2. Start typing IJ SCAN UTILITY. The search window opens as you type. Once the IJ SCAN UTILITY is displayed, please select and open it, then continue with Step 3 below.
        For Windows XP:
        1. Go to your START MENU, then select ALL PROGRAMS, then CANON UTILITIES, then the IJ SCAN UTILITY program.
        2. In the Canon IJ Scan Utility window that opens, click SETTINGS.... in the bottom right of the window. The Settings dialog box appears. Please continue with Step 3 below.
    3. In the Canon IJ Scan Utility window that opens, click SETTINGS.... in the bottom right of the window. The Settings dialog box appears.
    4. Click the DOCUMENT SCAN option on the left pane of the window. In the Select Source field of the Scan Options section, select DOCUMENT (ADF/PLATEN) to scan items placed directly on the platen glass, DOCUMENT (ADF SIMPLEX) to perform single-sided scanning from the ADF, or DOCUMENT (ADF DUPLEX) to perform double-sided scanning using the ADF. You can then set the item size, resolution, etc. in the Scan Options section as desired.
    5. In the SAVE SETTINGS section of the window, you will select the save format and location of the document you are about to scan.
         a.) In the FILE NAME field, specify the name you would like to give the file. By default the filename will begin with IMG; you can remove IMG and change it to whatever you would like to name the file.  Please note that the filename that you give the document here will be the default filename for all items scanned until you change the file name.  If you leave the file name the same in the field, the scanned item will have a sequential number appended to the end of whatever name you give it.
         b.) In the DATA FORMAT field, use the drop-down arrow to select the desired option. If you are scanning a multipage document, select the PDF (Multiple Pages) option.
         c.) In the SAVE IN field, please navigate to the area where you would like the file to be saved once it is scanned in. By default, the file will be saved in the MY DOCUMENTS folder.
    6.  In the APPLICATION SETTINGS section of the window, please select the DO NOT START ANY APPLICATION option.  
    7. Once all settings have been selected, click the OK button at the bottom of the SETTINGS (DOCUMENT SCAN) window. The IJ Scan Utility main screen appears.
    8. Click the DOCUMENT button. Scanning starts. Click the CANCEL button to cancel scanning if needed.   Once the scan is completed, scanned images are saved in the previously selected folder location specified in the SETTINGS... window.
    Hope this helps!
    This didn't answer your question or issue? Please call or email us using one of the methods on the Contact Us page for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Printing multiple documents

    Hello FORM experts!
    I have a question here..
    In my program I generate multiple documents and then want to print them all at once with one button click.
    Document info is in a table which is also written into the database table.
    How should this work, should I give my smartform calling function some extra parameters to print them all or should I pass all the info to the smartform and make it print them all there with a loop or sth.?
    I'll explain some more..
    I have a report which then generates special kind of invoices...
    when invoices are generated there's a list of them displayed...
    Now I would like with one button to call out a smartform and print them.
    I want 1 pop-up print screen for all the invoices.
    Right now, I get a pop-up for every single invoice it is printing
    Thank you!

    Hi,
    You can try the following.....Loop at your final internal table and call subroutine printform.In which you will call ur smartform for printing.
    Write the following code....
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          FORMNAME                 = 'ZZSD_INVOICE_TRADE_FORM'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
        IMPORTING
          FM_NAME                  = LV_FM_NAME
    EXCEPTIONS
      NO_FORM                  = 1
      NO_FUNCTION_MODULE       = 2
      OTHERS                   = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION LV_FM_NAME
      EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        CONTROL_PARAMETERS         = CONTROL
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
        OUTPUT_OPTIONS             = OUTPUT_OPTIONS
        USER_SETTINGS              = ' '
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        IT_DISPLAY                 = IT_FINAL
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CONTROL-PREVIEW           = 'X'.       "Preview the output of Smartform
      CONTROL-NO_DIALOG         = 'X'.       "Don't show Dialog
      OUTPUT_OPTIONS-TDDEST     = PRINTER.   "Spool: Output device
      OUTPUT_OPTIONS-TDNOPRINT  = ' '.       "No printing from print preview
      OUTPUT_OPTIONS-TDCOPIES   = 1.         " number of print copies
      OUTPUT_OPTIONS-TDIMMED    = 'X'.       " Print Immediately (Print Parameters)
      OUTPUT_OPTIONS-TDDELETE   = 'X'.       " delete the request after printing
      OUTPUT_OPTIONS-TDLIFETIME = '5'.       " spool retention period
      OUTPUT_OPTIONS-TDCOVER    = ' '.       " no cover print
    REgards,
    Kashyap

  • Indesign CS6 crashes when opening multiple documents

    Only recently, Indesign has started crashing when I open multiple documents.
    Nothing new has been installed on the computer as far as I know.
    I've tried trashing the preferences, accessing the files locally, wiping the computer and diaognosing the iMac hardware... without success.
    It's slightly more stable, as in it doesn't crash everytime now but instead more randomly than before.
    Program has never crashed with one document open.
    Interesting thing is if several files are open, then I close then individually, then close down fine. If I try to quit and close all of them in one go, Indesign crashes.
    Also occasionally has problems displaying links, eg. displays a grey box instead of an eps file.
    I have several crash log files in case someone is able to decipher them.

    1. Is there any reason to use eps? Avoid it use AI, PSD or PDF instead.
    2. Are all used fonts ok? What kind of fonts du you use?
    3. Which Mac OS X do you use?
    Does it crash with alwayst the same files?
    What does the file history tell you? Hold down the command key and got to InDesign > About InDesign… Does it tell you somewhat more specific, like missing plugins, severly damaged files and restored files, when (in which version) the files have been created first (helps often to export to IDML and open this again and save it as INDD and work with the new file.), has the problematic file been converted from another application (Quark Xpress or PageMaker), etc.

  • I have multiple documents how can I combine them into one document?

    I have multiple document files in Pages. How can I combine them into one document?

    Menu > View > Page Thumbnails > click on the thumbnails > Copy/Paste into thumbnails of other document
    Peter

  • Page numbers in thumbnails & document display/status bar do not match

    I am using Acrobat Standard 6.0...documents that I have assembled using separate PDFs that I have scanned or printed to PDF. I am frequently deleting/inserting/replacing pages in the documents. I find that when I select a certain page in the page thumbnails (let's say, 60), and then go back to the document display, I am consistently sent to a different page. Usually it is about 4 pages back (i.e. page 56 in this example), but sometimes I am sent back to the first page. This didn't use to happen & I'm not sure why it started but it has been going on for months. It happens in all of the PDF files that I am using of this type. I just recently started using bookmarks and I seem to be having similar issues, in that some bookmarks that were linked to a certain place on a certain page are now taking me to a location 4 pages previous to the original target. I read the help and tried using Number Pages in the Options on the page thumbnails tab, but this didn't seem to do anything. Does anyone have a suggestion for me? Thanks.

    Hi,
    She is the only one affected and you don't have the problem with the same document, I doubt if her Office is updated? In earlier versions of Office there was this issue and we could easily solve it by keeping Office updated.
    Please learn from Update your computer:
    http://office.microsoft.com/en-001/word-help/update-your-computer-HA010354322.aspx
    Repairing Office from Control Panel is also suggested.
    We can also have the user start Word in Safe Mode to determine if this issue is 3rd-party add-ins related:
    Press Win + R and type “winword.exe /safe” in the blank box, then press Enter.
    If there is no trouble printing the document, disable the suspicious add-ins to verify which add-ins caused this issue.
    Regards,
    Melon Chen
    TechNet Community Support

  • How do you highlight multiple documents rapidly, rather than having to click on the document and on "command" one at a time?

    How do you highlight multiple documents rapidly, rather than having to click on the document and on "command" one at a time? Right now, when I'm trying to highlight documents to export, I have to click on each document individually. Is there a way to highlight one document while scrolling down the list until all desired documents are highlighted? I would like to rapidly be able to do this to save time when I am exporting or saving multiple files from my documents to an external drive, CD-Rom or cloud storage.

    Click on the first item
    Hold the Shift key
    Click on the Last Item.
    All the items in between will be selected.

  • How do you apply a master page to multiple documents at the same time?

    How do you apply a master page to multiple documents at the same time?

    Hi friends,
    Thank you for trying to help me out.
    Let me explain it a bit to remove the ambiguity.
    I have 10 documents nested under a book. Each of these documents have 'n' number of pages. I want to apply my custom made master page "First" to the first page of all these 10 documents in one go. The remaining pages of the documents have to be in default "Right" master page format. How will I do it?
    I tried selecting all the documents and importing the formats from another document with the custom made "First" master page. The master page format is getting imported but the first page of all the documents still remain with the default "Right" master page format.
    I think now my question is more clear...

  • One TOC for Multiple Documents

    Working on a book project where each chapter must be its own document (due to multiple large graphics). Is it possible for the Table of Contents (TOC) can contain info from multiple documents, or will I have to create the TOC manually when I'm done with the book?
    Thanks!

    You will have to create the TOC manually when you're done with the book.
    You could however, as a work around, amalgamate the book without the graphics (but leaving the frames to hold their place), generate the TOC and then add that to your collection of chapters.
    Peter

  • How do I delete multiple documents at the same time

    How do I delete several or multiple documents at the same time.  Do I have to delete each one individully?

    You can select multiple adjacent files or folders by clicking on the first one then shift-click on the last one.  Multiple non-adjacent files or folders can be selected one at a time by command clicking on each one.  Click on any selected file or folder then drag/drop to trash.

  • Need to delete multiple documents at the same time from micro soft word

    I am trying to delete multiple documents  at one time from my word ??

    one way would be to click on "documents" in the sidebar of finder.  Select multiple documents by holding the shify key while you click and drag them to the trash.

  • Uploading Multiple Documents To a List Item sharepoint 2010

    hi Guys ,
    Is there a way we can enable (out of the box )Uploading Multiple Documents To a List Item sharepoint 2010 ?
    cheers

    No, There is no OOB way to do the same you have to build a custom Page/Control OR customise OOB Form to attache multiple files and that will be through integration of ajax based control (multiple file uploader.)
    the other way to do the same is provision a custom field. we have done this for our many  clients.
    Hi, I also encountered the same problem, could u pls provide detailed information by a custom field?

  • Uploading multiple documents into sharepoint list item with REST in sharepoint 2013 using content editor web part :

    hi ,
    i am trying to upload multiple document files into sharepoint list item. I followed below link for implementaion.
    http://techfindings-prem.blogspot.in/search/label/jquery.multifilejs
    It was working for sharepoint hosted app.
     This complete code is written within content edito web part.
    It was working when i was in root site collection with below change (hard coded the root level url) in code in "UploadFile" function.
    var scriptbase = "http://servername" + "/_layouts/15/";
                console.log(' File size:' + bytes.length);
                $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    But the issue came in picture when i was working with the other site collection instead of root one. The url was like below.
    "http://servername/sites/cpg/". This time i need to be there within "cpg" site collection. 
    Now if i hard code the url as i did above my code gets break here while come to below line
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
    I am getting error when i used below code:
    var scriptbase = "http://servername" + "/_layouts/15/";
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    Please hekp in this case. This complete code is written within content edito web part. 
    Regards:
    Sanjay Joshi

    Hi,
    According to your post, my understanding is that you have an issue about upload multiple documents files into library vai REST API.
    As you have said, you have used the hard code url in your code.
    How about use the _spPageContextInfo.webAbsoluteUrl method to get the url?
    I have used this method to get the url, then use the code in the article you have pasted within a content editor web part to upload the files.
    You can replace the hard code url with the _spPageContextInfo.webAbsoluteUrl method, then check whether it works.
    Thanks,
    Jason
    Jason Guo
    TechNet Community Support

Maybe you are looking for