How to open files from the SAP DMS (DOC Mgt. System) ?

Hello All,
        I making the Transaction CV04N in BSP.
When I execute this CV04N I should give a DOC Nr and the list is generated for this DOC.Now in the List if I select one Record and then Press Display Icon then the content of this list is opened in a new window in it's respective format (PDF,Word,GIF,Image file  etc).These are stored in the SAP DMS.
        I want to open a file from this SAP DMS .
This can be done in ABAP using the standard FMs. But in BSP we can't use these FMs as it will call a screen.
The Fm which I'm using is " DOCUMENT_SHOW_DIRECT ".
In Report prog. To this FM I'll pass the
a, DOC Type
b, DOC Number
c, Document part and
d, Document version.
then It'll directly open a PDF file in a new window.
But in BSP how should I acheive this as the FM calls a screen internally.
The content of the documents are stored in the DMS. Is there any TCODE or Table to get the files from the DMS ?
How should I proceed ? can any one help me out.....
Regards,
Deepu.K

Hello All,
         I found the FM : <b>CVAPI_DOC_OPEN_CAD</b> which wil return the file path.
But when I execute this in my BSP since the FM internally calls a screen it fails.
But can anyone tell me the alternative for this.
Should I create a FM omitting the GUI code ?
I found one more thread which says that I can use classes starting with cl_gos*.
But all the classes use a gui.
Dowload a document from R/3 DMS to BSP page
Am I wrong in the interpretation of the logic from the above thread ?
Please suggest me .
I too went thru the BSP Applications <b>CVAW_ENTIRE, CVAW_DOCUMENT_DISPLAY.</b>
But these are used to display only the <b>thumbnails.</b>
There is no code for displaying other formats like PDF,XLS etc.
Please correct me if I'm wrong and let me know the correct path to solve my problem.
Regards,
Deepu.K

Similar Messages

  • How can I check the open-mode of an opened file from the file refNum?

    How can I check the open-mode of an opened file from the file refNum?
    Especially whether a file is opened as read-only or write-only? I haven't found any VI in the panel with file VIs.
    Thanks for any hints!

    Check this post. Probably you can use a kernel.dll call.
    http://forums.ni.com/t5/LabVIEW/file-date-created/m-p/109836

  • The dialog box open twice when open file from the server

    I use the following code to download/open file from the server:
    <%
    String filename = "MengxianhuiDocTest.doc";
    String filepath = "D:\\";
    response.setContentType("APPLICATION/OCTET-STREAM");
    response.setHeader("Content-Disposition",
    ??attachment; filename=\"" + filename + "\"");
    java.io.FileInputStream fileInputStream =
    new java.io.FileInputStream(filepath + filename);
    int i;
    while ((i=fileInputStream.read()) != -1) {
    out.write(i);
    fileInputStream.close();
    out.close();
    %>
    If the application runs, the Open or Save dialog box display.When I select open the file,
    the dialog box will display twice.
    Pls help me.
    Thanks.

    thx
    but I tried it and it did't work.
    The dialog box also display twice.

  • Can the new garageband open files from the previous garageband? in my case it seems not to work and I would like to know if it is possible at all...

    Can the new garageband open files from the previous garageband? in my case it seems not to work and I would like to know if it is possible at all...

    No.
    I find it extremely frustrating that Apple does not care for such an obvious bug affecting one of the basic funcionalities of AirPlay. Unless, of course, if there's something I don't know - but I've done some research and it seems that plenty of people have same issue and no solution is settled.

  • How can I list open files from the same application

    I often have several different files open in Word, Excel or Adobe.  However only one is visible.  How do I get a quick list of the other open files from an application?

    Many applications have a Window menu at the top of the screen. Clicking on it will list all the open windows, as well as providing other options depending on the application.
    (113485)

  • How to download files from the internet??

    I am a new Mac user, and I am soooo befuddled by downloading files, and what to do with them once they are on the desktop/under devices in Finder. Would someone here be kind enough to explain how to do this, please, or show me in the forum where this is already covered? Thank you very much in advance.

    Hiya,
    Downloading files is simple. All downloads appear in a download window that will open up. Once they are downloaded, you can click the "clear" button if you wish - you don't need them in there any more, and close the window. Files will then be wherever they're set to download to in your Safari preferences - Desktop, Downloads folder etc - and can then be used as you wish, opened, edited, moved. You can drag the files from the desktop into folders in finder. Sadly, someone at Apple foolishly thinks having no "cut" option in finder as you do in windows was a good idea - not quite sure how they came to that conclusion - so you'll have to drag the files from one folder to another, or copy them and then delete the original.
    If you're downloading compressed files (.zip) you may want to look up "Stuffit Expander" - a great file extraction tool.
    Hope this was the information you're after.

  • Problem Viewing and Opening Files from the Creative Cloud

    I am using Photoshop Touch v1.7.5 on an iPad4.
    When I try to open an existing file from the creative cloud not all of my files and folders are displayed. My list of folders appear alphabetically and stop at those starting with the letter L. Therefore I cannot open all of my files that have previously been uploaded to the cloud.
    Is this a bug or am I missing something here?
    If it's a bug, is Adobe working on it?
    When can we expect an update?

    Here is a link to a conversation I started conceening this very issue.
    Version 1.7.5 Manual Sync Failure
    I Had concerns about this problem back in November.
    It is apparently a bug. Since Adobe has no customer support for the Photoshop Touch app, those of us who primarily make use of the creative cloud and the app are paying for a service that at the moment doesn't completely work.
    It is very frustrating that customers paying for a creative clould account and using the photoshop touch app have only this forum as a source of customer support. As a result, you can't depend on receiving information from someone who is actually an Adobe employee.
    I hope that Adobe is working to fix this problem. However, we don't really know if or when that may happen because of the lack of information that is supplied.

  • Opening files from the "File" menu fails? Illustrator CC 2014

    I can open a couple of files from the "File" menu and then it just stops working. I'm on OS X 10.10.1. I've uninstalled everything and reinstalled and it still does this. If I restart Illustrator it will work for the first couple of files and then it fails again. Has anyone else had this issue? If so, is there a fix for this? I'm really tired of restarting just to open files.

    I wonder if it is the preference file then. At first I assumed it was a permission issue, but it sounds like that is not it.
    To fix the preference file -
    Hold down the ctrl-alt-shift (windows) cmd-opt-shift (mac) keys when starting Illustrator. If you do not see a dialog box asking if you want to reset the preferences let us know.

  • How to download the AppIntegrator zip file from the SAP Service Market Plac

    Hi All,
    I want to download com.sap.portal.howtos.webapp.par file from SAP Market Place. KIndly guide me how to download par file from market place.
    Regards,
    Bidyut

    Below documents will help you to download app integrator
    Step-By-Step Guide to implement Application Integrator
    Integrating your Web Front-ends into the SAP Enterprise Portal using the Application Integrator

  • How to download files from the internet via SAP PI

    Hi,
    is it possible to download files from a certain URL from the internet via SAP PI? Which adapter has to be used?
    Thanks in advance
    Dominic

    Hi nosebear,
    this is a piece of JAVA-code to read a URL. This works also for XML-files.
    You can use this in adater-module, JAVA-Mapping or UDF
    Regards Mario
    import java.io.IOException;
    import java.io.InputStream;
    import java.net.HttpURLConnection;
    import java.net.MalformedURLException;
    import java.net.URL;
    public class testhttp {
    * @param args
    public static void main(String[] args) {
    // TODO Auto-generated method stub
    try {
    System.setProperty("https.proxyHost", "10.xxx.1.80");
    System.setProperty("https.proxyPort", "8000");
    System.setProperty("http.proxyHost", "proxy");
    System.setProperty("http.proxyPort", "8000");
    URL url = new URL("http://www.openbc.com/ <http://www.openbc.com/> ");
    HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    conn.connect();
    System.out.println(conn.getResponseCode());
    InputStream stream = conn.getInputStream();
    int b;
    while ((b = stream.read()) != -1) {
    System.out.print((char) b);
    } catch (MalformedURLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }//catch
    Edited by: Mario Müller on Jul 31, 2008 4:58 AM

  • Can't open files from the 'net...

    Whenever I try to open a file downloaded from the net, it opens with TextEdit...same thing with radio station add-ons...how can i stop/fix this?

    Gaming Grampa wrote:
    Yes, it is City of Heroes, and renaming the file sent it to the zip archive...when i try to open it, it duplicates itself... the site says i need a .NET 2.0 framework...?
    Hi,
    the .Net 2.0 framework is an application layer which is only used with Microsoft Windows !
    Therefor the zip file you have seems to also be for Windows only and can not be run in OSX.
    If you are running the CoH game while in Windows, you can download the .Net framework from here: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=0856eacb -4362-4b0d-8edd-aab15c5e04f5
    Later versions of the .Net framework can be found, when scrolling down on that website.
    As said you can only use this when running Windows on your Mac, not in OSX.
    Regards
    Stefan

  • How to open files from old claris works with Appleworks 6 in OS X 10

    Hi,
    I have some claris works files backed up on a zip disk from a G3 with OS 7.X.
    Now I try to open them on another G3 with Appleworks6 in OS X 10.
    In Appleworks, I choose "open file" but those files are grey out so I cannot choose them. Is there anyway I can open those files in OS X 10?

    Kuul, welcome to Apple Discussions.
    MacLinkPlus @ http://www.dataviz.com/products/maclinkplus/ will probably translate the files so you can open them.
     Cheers, Tom

  • HT204382 Can anyone tell me how to open files in the format 'radio.ram' ?

    Can anyone tell me how to play files in radio.ram' format, as an add-on to QuickTime or whatever?

    Wow, that's a name from the past, Real Player. 
    And it worked.
    It's a product that I'd completely forgotten about going back to my days struggling with Windows on IBM clones and shows that I haven't tried listening to streaming Internet radio in a long, long time!
    Thank you very much, Varjak, for your help.
    Michael Young

  • How to read files from the menu prompt

    Hi all the experts here, help me plz
    this is the menu
    R - Read a batch of student marks from a file
    D - Display a table of student results
    Q - Quit from the program
    when user press R the program has to read a file. The default file name is results1.txt
    but my teacher is gonna change the file name when she tests it.
    so i can't put the fixed file name. i have to read the file name from the command
    prompt
    The user will type the file name and i just have to read that file..but..its hard for the
    biginner...THX guys

    help me guys plz im really stuck man
         public char promptMenu()
              System.out.println ("R - Read a batch of student marks from a file");
              System.out.println ("D - Display a table of student results");
              System.out.println ("Q - Quit from the program");
              char answer = Keyboard.readChar();
              return answer;
    after user press 'R'
    then i have to read a file whatever the user enters..

  • How to via JCO Call RFC upload file to the SAP DMS.

    HI ,ALL :
      NOW i want to upload file via JCO,but i upload in sap gui is success ,but jco call RFC is error ,this is my code:
    excute this  code is not error ,but the data not write to SAP,
            //连接SAP
              Client client = com.hipfung.jco.JCOFactory.getInstance().getClient();
              JCO.Repository repo = new JCO.Repository("ZOA01", client);
              //调用RFC函数
              IFunctionTemplate ft = repo.getFunctionTemplate("CVAPI_DOC_CHECKIN");
              JCO.Function f = ft.getFunction();
              IFunctionTemplate ft2 = repo.getFunctionTemplate("BAPI_TRANSACTION_COMMIT");
              JCO.Function commitFunction = ft2.getFunction();
              //设置传入参数值(注意类型)
              //1.传入参数为Field
                f.getImportParameterList().setValue("TXB",          "PF_DOKAR");  //
              f.getImportParameterList().setValue("0000010101010101020000000","PF_DOKNR");  //文档类型
              f.getImportParameterList().setValue("01","PF_DOKVR");                          //文档版本
              f.getImportParameterList().setValue("000","PF_DOKTL");     
              f.getImportParameterList().setValue("SAPFTPA","PF_FTP_DEST");     
              f.getImportParameterList().setValue("SAPHTTPA","PF_HTTP_DEST");     
              // Get content as table
              f.getImportParameterList().setValue("TBL", "PF_CONTENT_PROVIDE");
            //read file and trans to byte
                      byte b[]=null;
                        File inf = new File("d:
    test.jpg");
                        InputStream in;
                        try {
                             in = new FileInputStream(inf);
                              b =new byte[(int)inf.length()];     //创建合适文件大小的数组
                             in.read(b);                          //读取文件中的内容到b[]数组
                             in.close();
                        } catch (FileNotFoundException e1) {
                             // TODO Auto-generated catch block
                             e1.printStackTrace();
              //set byte to internal table     
             JCO.Table poItem = f.getTableParameterList().getTable("PT_CONTENT");        
             poItem.appendRow(); //增加空行
             poItem.setValue(b, "ORBLK");
             poItem.nextRow();
             //运行RFC函数
              try
                   client.execute(f);
                   client.execute(commitFunction);
              catch(JCO.AbapException ae)
                   System.err.println("JCO.AbapException: < DMS > " + ae);
                   ae.printStackTrace();
              catch(JCO.Exception e)
                   System.err.println("JCO.Exception: < DMS > " + e);
                   e.printStackTrace();
             //返回参数
              JCO.Structure struct = f.getExportParameterList().getStructure("PSX_MESSAGE");
              String te = struct.getString("MSG_TYPE");
              System.out.println("RFC Error Type is :"+te);
              String pr = struct.getString("MSG_TXT");
              System.out.println("RFC get Data is :"+pr);
              com.hipfung.jco.JCOFactory.getInstance().release(client);
    i  can get file via CVAPI_DOC_CHECKoutView
    Edited by: pan qiaoming on Mar 15, 2011 3:05 PM

    HI ,ALL :
      NOW i want to upload file via JCO,but i upload in sap gui is success ,but jco call RFC is error ,this is my code:
    excute this  code is not error ,but the data not write to SAP,
            //连接SAP
              Client client = com.hipfung.jco.JCOFactory.getInstance().getClient();
              JCO.Repository repo = new JCO.Repository("ZOA01", client);
              //调用RFC函数
              IFunctionTemplate ft = repo.getFunctionTemplate("CVAPI_DOC_CHECKIN");
              JCO.Function f = ft.getFunction();
              IFunctionTemplate ft2 = repo.getFunctionTemplate("BAPI_TRANSACTION_COMMIT");
              JCO.Function commitFunction = ft2.getFunction();
              //设置传入参数值(注意类型)
              //1.传入参数为Field
                f.getImportParameterList().setValue("TXB",          "PF_DOKAR");  //
              f.getImportParameterList().setValue("0000010101010101020000000","PF_DOKNR");  //文档类型
              f.getImportParameterList().setValue("01","PF_DOKVR");                          //文档版本
              f.getImportParameterList().setValue("000","PF_DOKTL");     
              f.getImportParameterList().setValue("SAPFTPA","PF_FTP_DEST");     
              f.getImportParameterList().setValue("SAPHTTPA","PF_HTTP_DEST");     
              // Get content as table
              f.getImportParameterList().setValue("TBL", "PF_CONTENT_PROVIDE");
            //read file and trans to byte
                      byte b[]=null;
                        File inf = new File("d:
    test.jpg");
                        InputStream in;
                        try {
                             in = new FileInputStream(inf);
                              b =new byte[(int)inf.length()];     //创建合适文件大小的数组
                             in.read(b);                          //读取文件中的内容到b[]数组
                             in.close();
                        } catch (FileNotFoundException e1) {
                             // TODO Auto-generated catch block
                             e1.printStackTrace();
              //set byte to internal table     
             JCO.Table poItem = f.getTableParameterList().getTable("PT_CONTENT");        
             poItem.appendRow(); //增加空行
             poItem.setValue(b, "ORBLK");
             poItem.nextRow();
             //运行RFC函数
              try
                   client.execute(f);
                   client.execute(commitFunction);
              catch(JCO.AbapException ae)
                   System.err.println("JCO.AbapException: < DMS > " + ae);
                   ae.printStackTrace();
              catch(JCO.Exception e)
                   System.err.println("JCO.Exception: < DMS > " + e);
                   e.printStackTrace();
             //返回参数
              JCO.Structure struct = f.getExportParameterList().getStructure("PSX_MESSAGE");
              String te = struct.getString("MSG_TYPE");
              System.out.println("RFC Error Type is :"+te);
              String pr = struct.getString("MSG_TXT");
              System.out.println("RFC get Data is :"+pr);
              com.hipfung.jco.JCOFactory.getInstance().release(client);
    i  can get file via CVAPI_DOC_CHECKoutView
    Edited by: pan qiaoming on Mar 15, 2011 3:05 PM

Maybe you are looking for