BAPI used to fetch / display Documents from Repository

Hi
Please let me know the BAPI used to fetch / dispaly Data from DMS Repository.
Also, do let me know the inputs required.
I have tried - BAPI_DOCUMENT_CHECKOUTVIEW (but while executing is always displays - 300
The Knowledge Provider is using document type LGL as a storage system)
Inputs given -
Documenttype - LGL
Documentnumber - 10000000003
DocumentPart - 000
DocumentVersion - 00
Originaltype - 0 (im not sure if zero is correct)
Getstructure - 1
Original Path - blank
HostName - blank
Get Header - X
Thanks
Prashant

Thanks Arun.
Able to download file using these BAPI's from SE37.
One query - It is downloading files in name of user (original files name not getting downloaded)
Eg:, My file name was demo.docx but  is downloaded as myusername.doc
Further, i hope these bapi can be called via RFC (using Java Code).
Thanks Again.
Regards
HI Arun
Further to my earlier Mail, I'm not able to upload the same using Java Code, getting the error -
Type ::::::::E
Message ::::::::File d:\dms\z_IPI_PRASHANT01.doc cannot be created
While Checking the Trace in SM59, got the following error -
Trace file opened at 20111010 142232 India Standard Time, SAP-REL 701,0,134
======> cannot open SAPGUI
ABAP Programm: SAPLSYSE (Transaction: )
User: IPI_PRASHANT (Client: 220)
Destination: SAPFTP (handle: 3, , )
SERVER> RFC Server Session (handle: 1, 43220900, {5D1DF3E0-ACBD-F11F-8EA0-00A0D1
SERVER> Caller host:
SERVER> Caller transaction code:  (Caller Program: java)
SERVER> Called function module: RFC_START_PROGRAM
Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 1742
FUNCTION: 'exec_sapgui'
cannot open SAPGUI
PROG =sapftp erpdev sapgw00 43232164 IDX=4
Please helpe in getting this sorted out.
I have been tring the same now for more than a month.
Regards
Edited by: Prashantroy on Oct 10, 2011 2:37 PM

Similar Messages

  • Display Document from Archive (TOAHR)

    hi all,
    is there a FM for displaying Document from Archive? i 've used a FM, but its only displaying FOTO and PDF, and it doesnt work with EXCEL or WORD, is there any idee ?
    Best Regards

    Not sure just searched in se37 and got this ARCHIVOBJECT_DISPLAY_WEBGUI.
    You can search for more in se37for ARCHIV*.

  • Display Document from BI Server in Crystal Report

    Hi all,
    I accessed BI Query from BI server in Crystal Report. We can upload any comments or documents to the query. I want to display the document and comments in Crystal Report from the BI server.
    Is it possibel? If possible how can i do this?
    Thanks & Regards,
    Hemalatha J

    As I see there was no response on these issue although it is marked as answered. I'll give a hint for the ones that might want to try this.
    One could extract the metadata and documents from the tables names to be found in the tables SDOKLOTAB and SDOKPHTAB (as an example, for InfoObject documentation we have the tables BDSLOIO8, BDSLOIOT8, BDSLOPR8, BDSPHIO8 and BDSPHF8) or one could export the metadata from the BI repository (though, this is a manual approach).
    Edited by: marius.grunca on Apr 27, 2009 5:58 PM

  • Display document from Content Server

    Hello Expert,
    I need to display document in CE portal, that are stored on ECC content server.
    Does anyone know how to do this?
    Thank you in advance.
    Francois
    Edited by: François BECKER on Oct 13, 2011 9:39 AM

    Hi,
    Try using this sample code
    class lcl_handle_events definition.
      public section.
        methods:
                 on_double_click for event double_click of cl_salv_events_table
                importing row column.
    endclass.                    "lcl_handle_events DEFINITION
    class lcl_handle_events implementation.
      method on_double_click.
      if column = 'INSTID'.
        clear gv_usrnme.
    *Reading the ALV table to get the purchase order number
        read table gt_usrnme into gv_usrnme index row.
        if sy-subrc = 0.
    *Passing the value of the PO number to ME23N Transaction
        set parameter id 'BES' field gv_usrnme-instid.
    *Calling ME23N
        call transaction 'ME23N'.
        endif.
        endif.
      endmethod.
    data gv_event  type ref to lcl_handle_events.      "events object
      gv_events = gs_table->get_event( ).
      create object gv_event.
    *... §6.4 register to the event Link_CLICK
      set handler gv_event->on_double_click for gv_events.
    Hope this helps you. Here i was calling a different transaction code based on each line selection..
    Regards
    Ansari

  • Fetching preceding documents from VBFA by passing subsequent document

    Hi Folks,
    Here my requirement is to fetch preceding documents  by giving subsequent documents as input to tableVBFA(document flow). As there is no index present on the field VBELN and POSNN it takes long time to retrieve data based on these fields.Creating secondary index is not possible. I have also tried with function module 'SD_VIEW_VBFAVG'  as it takes single VBELN input, i have to place this in a loop in order to get preceding documents for range of VBELN.  Please let me know if there is any other way of doing this. Immediate help is appreciated.
    thanks in advance.
    Akanksha.

    hi,
    u try to use this FM  WB2_VBFA_ARRAY_READ.
    take care
    Tarapada. D.

  • Using JTables to display data from a text file

    How do I display data from a .txt file into a column inside a JTable?

    dont quite get the "vectors" part..
    by the way, my program is as follows
    * Damn Java ..
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    public class ScoreBoard extends JPanel {
    private boolean DEBUG = false;
    public ScoreBoard() {
    super(new GridLayout(1,0));
    String[] columnNames = {"Player's Name",
    "Time Completed",
    "$ Amount Earned $"};
    /* Object[][] data = {
    {"1",
    new Integer(5), new Integer(500)},
    {"2",
    new Integer(5), new Integer(3200)},
    {"3",
    new Integer(5), new Integer(1000)},
    {"4",
    new Integer(5), new Integer(100)},
    {"5",
    new Integer(5), new Integer(200)},
    final JTable table = new JTable(data, columnNames);
    table.setPreferredScrollableViewportSize(new Dimension(600, 90));
    if (DEBUG) {
    table.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    printDebugData(table);
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    //Add the scroll pane to this panel.
    add(scrollPane);
    private void printDebugData(JTable table) {
    int numRows = table.getRowCount();
    int numCols = table.getColumnCount();
    javax.swing.table.TableModel model = table.getModel();
    System.out.println("Value of data: ");
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + model.getValueAt(i, j));
    System.out.println();
    System.out.println("--------------------------");
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("ScoreBoard");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    ScoreBoard newContentPane = new ScoreBoard();
    newContentPane.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    and i want to display the player name from a textfile.txt to the player column instead of hardcoding it like above. Thanks!

  • Fetching session names from repository using Informatica SDK

    Hi guys, I'm using the Informatica SDK to create a java application that accesses the Informatica repository. I'm having a bit of an issue while trying to fetch the names of already created sessions from the Informatica Repository. I'm able to connect to the repo without any issues and have been able to add sources, targets, mappings, sessions, workflows, etc... and save them directly afterwards. However, when I try to fetch the session names from a folder in the repository, I get the following error: Mon Jul 27 15:03:01 PDT 2015  Severity:DEBUG  ThreadID:14 Running the pmrep process in the working directory: [C:\Informatica\9.6.1\clients\PowerCenterClient\client\bin].Mon Jul 27 15:03:01 PDT 2015  Severity:DEBUG  ThreadID:14 Running the command [listobjects -o session  -f "TechOps" -s .].Mon Jul 27 15:03:01 PDT 2015  Severity:DEBUG  ThreadID:14 Running the command [exit].Mon Jul 27 15:03:01 PDT 2015  Severity:DEBUG  ThreadID:14 Parsing the output of the ListObjects command for each folder.Mon Jul 27 15:03:01 PDT 2015  Severity:DEBUG  ThreadID:14 The following errors occurred while running the ListObjects command: [Failed to read repository connection information. Please first connect to the repository using the connect command.Failed to execute listobjects.].The following errors occurred while running the ListObjects command: [Failed to read repository connection information. Please first connect to the repository using the connect command.Failed to execute listobjects.].com.informatica.powercenter.sdk.mapfwk.exception.RepoOperationException: The following errors occurred while running the ListObjects command: [Failed to read repository connection information. Please first connect to the repository using the connect command.Failed to execute listobjects.].at com.informatica.powercenter.sdk.mapfwk.core.Folder.fetchSessionNamesFromRepository(Unknown Source)at com.informatica.powercenter.sdk.mapfwk.core.Folder.fetchSessionNamesFromRepository(Unknown Source)at com.mars.Main.main(Main.java:170) This doesn't really make sense to me as I'm able to connect to the repo fine to add and save changes. Here's my code for fetching: // Create a list of session names and store the namesList<String> sessionNames = null;try {      sessionNames = folder.fetchSessionNamesFromRepository();} catch (RepoOperationException e) {      // TODO Auto-generated catch block      e.printStackTrace();} catch (MapFwkReaderException e) {      // TODO Auto-generated catch block      e.printStackTrace();} // Print the list of session namesfor (int i = 0; i < sessionNames.size(); i++) {System.out.println("Session " + i + " is " + sessionNames.get(i));} I've confirmed that the folder object works fine as I can add and save other objects to that folder in the repo. The other thing is that if I go to the Informatica path on my drive and run the pmrep command followed by the command for fetching session names, it works fine. Any help on this would be greatly appreciated. Thanks

    Hi Shruti,
    Instead of doing the following when setting the font attributes:
    FontImpl fnt = (FontImpl)res.getFont();
    fnt.getDecoration().setTextColor(c1);
    res.setFont(fnt);
    Try doing this instead:
    res.getAttributes().setForeground(c1);
    res.getFont().setSize(10);
    Hope this helps.
    Regards,
    Dan

  • How to display document from external archive via archivelink?

    Hi,
    I would like to display in SAP (via ArchiveLink) scanned document which was stored in an external archive (FileNet). The archive system is connected to SAP via ArchiveLink. However the scanned document isn't stored in the archive system via SAP so I don't know the ARCHIV_DOC_ID. I only know OBJECT_ID as far as the metadata of document is considered.
    I tried to use ARCHIVOBJECT_DISPLAY function module with object_id and arvchiv_id but I get the message no. OA512 (Parameter info was not transferred for command docId). I can only display scanned document entering the right value of ARCHIV_DOC_ID parameter. But actually I don't know the value of this parameter from the level of SAP system.
    Could anybody give me some clue or hints?
    Best regards,
    Zacaria

    Hi
    Just as Fred written SAP needs to be linked to external archiving system by a Contenent Repository (transaction OAC0).
    The menu for ArchivLink setting is in customazing:
    Was it done that?
    Max

  • Using flash to display images from sql server or file system

    hello,
    what methods and parameters of the urlloader class we have to use to display images in a flash player if possible..
    also movie should update everytime a new image is added to a database or file
    the images can either be in a file system or in a sql database (if possible)
    does flash comes with an object of this type or we have to create it.
    regards,

    i responded to your duplicate message 4 days ago:
    is it possible to insert and retrieve images from sql server using actionscript.
    you'll need server-side script to query your database and you can use the flash urlloader class to call your script.
    also  is it possible to create a flash scrolling gallery based on images  stored in a database and everytime an image is added it is displayed in  the gallery.
    load the data using the urlloader class and  then load the images.  periodically query the database for new images if  there's no direct way for flash to know a new image was added.

  • Crawler not indexing the documents from repository

    Hi All,
    I've installed TREX 6.1.09 with EP6.(version=6.0.9.0.0 and
    KnowledgeManagementCollaboration 6.0.9.0.0 (NW04 SPS09) on my Windows 2003 platform.
    NameServer port is configured in J2EE visual Administrator and also all lights are green in TREX Monitor in KM -> Monitoring.
    Now, i created an index and assigned my newely uploaded Portal.par as a Datasource to it. One more thing, i logged into the portal as as Administrator and all this has done successfully.
    But when i check in the TREX Monitor, i see both index and its associated queue are idle and also indexing of document is not taking place.
    When i checked ApplicationLog it gives me the XCrawler error like below
    "Error  4/25/06 7:33:03 PM  XCrawlerService  Failed to create crawler task index2_FileNet - com.sapportals.wcm.service.xcrawler.XCrawlerException: The SQL statement "SELECT "XCRW_TASK_INDEX" FROM "KMC_XCRW_TASKS" WHERE "XCRW_TASK_ID" = ?" contains the semantics error[s]: type check error "
    Sir, i've already done all the work around given in the Discussion Forum but could not got my problem solved.
    Plz. guide me where i'm wrong in configuration ASAP.
    Lot of Thanks in advance

    hi Mridul,
    This is a quite an exception that occurs in sp9. I experienced the same exception and so does most others. The solution is to upgrade to sp14.
    This has been suggested by Mr.Noufal in his weblog. Read it
    An installation that kept me searching
    Also the thread he refers in his blog
    Re: XCrawlerException with index
    So the thing you need to do is apply the patch and upgrade it straight away as it will work afterwards.
    Regards,
    Ganesh N
    Was the answer useful to you ?
    Message was edited by: Ganesh Natarajan

  • Use automator to send document from pages directly in outlook

    send an email from pages directly in Outlook  Even though Outlook is selected as the default reader, Mail opens to send a document directly out of Pages.  Is it possible to set up a service in Automator to use Outlook instread of Mail? Or is there another solution?

    What version of Palm desktop do you have? Go to help - about in Palm desktop for the version number.
    Is there a media conduit in your version of Palm desktop? If so, have you tried using that conduit?
    Click on the following link to the kb.palm.com webpage for the article regarding copying Copying, deleting, sending and beaming files and applications on an SD/MMC expansion card
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=10102
    Click on the following link for the support page for your device on the kb.palm.com webpage.
    http://www.palm.com/us/support/centro/centro_att/
    There are links on the page to the user guide, troubleshooting, how to's, downloads, etc.
    Post relates to: Palm i705

  • BAPI to disconnect documents from material

    Hi,
    I have a JCo program to transfer material/document data from PLM system to SAP. I use "BAPI_DOCUMENT_CREATE2" to create new documents in SAP and connect the same to the material that's being created using "BAPI_MATERIAL_SAVEDATA".
    When i do updates on the materials currently i have no way of disconnecting the documents that have been already linked to this materia in SAP when they come off in PLM system. I have been searching for a BAPI that can disconnect all the documents that have been connected to a material.
    Is there any BAPI that i can use to simply disconnect documents from materials or do i have to write ZBAPI?
    Thanks in advance,
    Kris

    Hi Arif !!
    I think it works !
    I've used BAPI_EQMT_DETAIL to get Equipment number using the material and serial number. Then with the equipment number, I've used BAPI_EQUI_GETSTATUS to get the status.
    Does it sound right? I mean, the equipment number unique as material+serial number ??
    Thanks !
    Regards,
    Matias.

  • Access DMS documents from MDM ??

    Hello folks
    We have a customer that has SAP DMS (Document Management System from SAP ERP) where the product image files are stored on a SAP Content Server.
    We are planning to implement MDM for rich product catalogue whereby end-users access MDM via Portal, but we need to access some documents on DMS too.
    I know that there is standard PLM iviews that shows DMS documents linked to a Material, can we use these iviews to modify them so that they are launched on request of user after browsing in MDM iviews (managing same material numbers) ?
    Has anyone of you made this ?
    Any hint/help on this is most welcome !
    Thanks
    /Sooriya

    Hi Sooriya,
    We can get the Product ID from MDM Standard iview through EPCF Eventing. Based on that ID, we can fetch the documents from DMS.
    I am new to DMS. Can you please share some information on fetching document links from DMS through standard or APIs?
    In my scenario, i have to fetch the documents link from DMS for all Master records and store the link in MDM. Also, when a new master s created in MDM, I have to attach/upload documents for the master record and store the document link in MDM. The actual document is present in DMS. When I send the newly created Master data to ECC, I have to link the Master data and the documents in ECC also.
    Your help is greatly appreciated!
    Thanks,
    Arun prabhu S

  • File name structure for picking up X12/EDIFACT documents from an FTP Server

    According to some documents, and posts in this forum, the file name for a document retreived from an FTP server by B2B has to be in the following format: %TPName%_%X12 Doc Type%_%X12 Version_1_12345.dat
    Why is this format required? Is it possible to obtain all this information for the Header Envelopes of each X12 or even EDIFACT EDI Document?

    Thanks Ramesh.
    I did specify the propery oracle.tip.adapter.b2b.edi.identifyFromTP=Group, but I was still not getting the expected results. Now I played around for a while and now I identified the problem . When I specify the property oracle.tip.adapter.b2b.edi.identifyFromTP=Group, I should use the Group ID when I create the agreement so that the agreement would be identified by using group id. I think I got that working now.
    I have one question on the trading partner end point URL in FILE/FTP. When I specify the endpoint URL for a trading partner would that be used to pull the document from the trading partner or push the documents to trading partner?
    In my testing even though I specified the end point URL for the trading partner using FILE protocol, when I put the message in that URL ( folder), it did not pull the message from that URL ( this trading partner is the initiator for that EDI 204 message). But when I put the messages into the host partner's end point URL, it got pulled and processed successfully. I am little confused on the usage of trading partner end point URL for the FILE/FTP protocols . Could you explain me little bit or point me to a documnet where it is expalined in detail?
    Bala

  • "Create Simple document" from other objects

    Scenario: Creating a document using option "Create Simple document" from other objects
    I have created a document type and defined the object link for Functional Location with option "create simple document"
    When clicking on create icon on the additional data tab on IL02 screen, The system asks for the document type and then the file to be uploaded.
    The document type that i have defined has the Description filed as mandatory field and hence i am not able to create the document.
    However, for the Document type when i set the description field as not mandatory the system creates DIR. But this DIR has no description.
    Please let me know if there is a BADI, using which i could set the Functional location name as the description OR if there is some enhancement by which the user is asked to enter the description when creating the document.
    Warm Regards,
    Vivek Mohankumar

    Hi Vivek,
    After my tests I would like to inform you that this is                  
    the standard system behavior as the document description field is       
    maintained as mandatory in transaction DC10. Please note that for the   
    simple creation of documents this should not be set as a mandatory      
    field.                                                                               
    The creation mode can be defined in transaction DC10 for each object    
    under 'Define object links'.                                                                               
    Please note that the value "1" for the creation of documents is used    
    to enable a user to simple attache a word file to an object             
    without going to the transaction CV01n. Therefore the system behaviour  
    is different then creating a document by CV01n and attaching a          
    file to it. With simple creation mode there should not be any           
    mandatory fields as the user cannot enter anything during the creation  
    process.                                                                               
    However, you can change the behaviour how the document is created by    
    MM02 transaction if you change the customizing in transaction DC10      
    like this:                                                                               
    If you maintain the value "2" for creation of documents, the user is    
    put to transaction CV01n and then the description can be entered. So    
    maybe this would solve the issue.  
    Regarding a useful BADI I can only recommned you to test BADI DOCUMENT_OBJ1,
    DOCUMENT_OBJ2 or DOCUMENT_MAIN01 for fill the description field.
    I hope this information could be useful for you and help to avoid the   
    mentioned error message.                                                                               
    Best regards,
    Christoph

Maybe you are looking for