Open DMS document through Portal

Hi Experts,
I  develop one intereactive form in that i want to show attachement. I found many standard fms for that but i could not able execute same fms on portal. i used following code . This code works fine in backend but in frontend it could not work.
CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTVIEW2'
          EXPORTING
            DOCUMENTTYPE    = WA_DOCLIST-DOCUMENTTYPE
            DOCUMENTNUMBER  = WA_DOCLIST-DOCUMENTNUMBER
            DOCUMENTPART    = WA_DOCLIST-DOCUMENTPART
            DOCUMENTVERSION = WA_DOCLIST-DOCUMENTVERSION
            DOCUMENTFILE    = DOCFL
            GETSTRUCTURE    = '0'
            DOCUMENTFILES   = DOCFILE.
Here in this fms i could not pass rfc destinations so by default it pass "SAPGUI" but in case of frontend it would not pass anything.
Regards,
Gurprit Bhatia

Ans.

Similar Messages

  • Open DMS Document in Module Pool?

    Hi all,
    I have Moudule pool screen and i want to open th DMS documents on click of button in module pool uploaded by end users.
    Users are uplodading the DMS Documents through webdynporo.
    Is there any way to do this?
    Regards,
    Arpita

    Users dont want to go through CV03N.they want that attachment will open directly.
    WIth this FM BAPI_DOCUMENT_CHECKOUTVIEW2 will get the data on Application server but how to open the docu?
    I wnat to open docu on button click of module pool..Is this possible in Module pool?
    Thanks..

  • A friend wants me to put together on booklet that's been done in excel. I'm on a mac os 10. Do I need to download microsoft excel for mac or can I open the document through indesign?

    A friend wants me to put together on booklet that's been done in excel. I'm on a mac os 10. Do I need to download microsoft excel for mac or can I open the document through indesign?

    I second LibreOffice as it's the most recent fork, however NeoOffice and OpenOffice will also work.
    Just say No money to Redmond!
    Also the old Ready Set Go! will be having a Lion version out soon.
    It's a low cost page layout program (like Indesign but without the high price) and can make booklets etc better, import the excel grpahics from LibreOffice.
    http://www.diwan.com/ready/prsg.htm

  • Why I ca not open my document through adobe today ugent ??

    why I can not open my documents
    through adobe today ?

    This is a web forum not a chat room. Why did you mark your question as the answer?
    You still haven't given us much to go on? Are you opening these files from a website (clicking on a link)? I'm assuming they are pdf files, correct? If so, what web browser and operating system do you have?
    Remember, we aren't sitting there in the room with you so you need to be descriptive and answer all questions...

  • Unable to open CATS link through Portal...

    Hi Guys,
    I am unable to open the CATS Link through Portal.
    Once I click the link "Record working time", Iam getting error message i.e:
    500   Internal Server Error
    SAP NetWeaver Application Server 7.00/Java AS 7.00 
    Failed to process request. Please contact your system administrator.
    [Hide]
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       com.sap.aii.proxy.framework.core.BaseProxyException: Access via 'NULL' object reference not possible., error key: RFC_ERROR_SYSTEM_FAILURE
        at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:150)
        at com.sap.xss.hr.cat.record.model.valuehelp.CatsValueHelpModel.hrxss_Cat_Wd_F4_Get_Meta_Data(CatsValueHelpModel.java:259)
        at com.sap.xss.hr.cat.record.model.valuehelp.Hrxss_Cat_Wd_F4_Get_Meta_Data_Input.doExecute(Hrxss_Cat_Wd_F4_Get_Meta_Data_Input.java:137)
        at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)
        at com.sap.xss.hr.cat.record.blc.RfcValueHelpManager.onRFCGetMetaData(RfcValueHelpManager.java:294)
        ... 66 more
      at com.sap.xss.hr.cat.record.model.valuehelp.Hrxss_Cat_Wd_F4_Get_Meta_Data_Input.doExecute(Hrxss_Cat_Wd_F4_Get_Meta_Data_Input.java:137)
        at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)
        at com.sap.xss.hr.cat.record.blc.RfcValueHelpManager.onRFCGetMetaData(RfcValueHelpManager.java:294)
        ... 66 more
    See full exception chain for details.
    System Environment
    How to solve this issue?

    Hi,
    You will have to check this with the person who is upporting our portal applications. From the error description it does not look like there is any thing wrong with CATS application as such.
    Regards
    Sreekanth

  • DMS BAPI RFC Open DMS document from external application

    Hello,
    I want open a document stored in DMS through RFC BAPI, from an external application (for example .NET)
    EasyDNS run OK: I have included the bapi Z_EASYDMS_ECL_OPEN_DOCUMENT (code from a SAP note)  in the system and I can open ECL/EAI & local documents (pdf, word, ...)
    If I run Z_EASYDMS_ECL_OPEN_DOCUMENT from SE37 run OK: I can see every document, document is downloaded to local system and then open.
    But when I call bapi Z_EASYDMS_ECL_OPEN_DOCUMENT from my external application through RFC I don't receive any result: document is not download to local system.
    I have debugged the bapi (with SM50) and I have see that the calling entry in bapi, run and then ... crash.
    I have detected the fail in OLE_FLUSH_CALL: system has a dump.
    Summary:
    - EasyDMS run Ok
    - SE37 Z_EASYDMS_ECL_OPEN_DOCUMENT run ok
    - Z_EASYDMS_ECL_OPEN_DOCUMENT dump at OLE_FLUSH_CALL
    Any idea?
    thanks in advance,

    Hello,
    it is possible to extract DMS's file to application server directory:
    FUNCTION Z_DMS_VIEW.
    ""Interfase local
    *"  IMPORTING
    *"     VALUE(DOC_NUMBER) LIKE  BAPI_DOC_DRAW2-DOCUMENTNUMBER OPTIONAL
    *"     VALUE(DOC_PART) LIKE  BAPI_DOC_DRAW2-DOCUMENTPART OPTIONAL
    *"     VALUE(DOC_TYPE) LIKE  BAPI_DOC_DRAW2-DOCUMENTTYPE OPTIONAL
    *"     VALUE(DOC_VERS) LIKE  BAPI_DOC_DRAW2-DOCUMENTVERSION OPTIONAL
    *"     VALUE(ORIGINAL_PATH) LIKE  BAPI_DOC_AUX-FILENAME OPTIONAL
    *"  EXPORTING
    *"     VALUE(P_RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
    *"  TABLES
    *"      DOC_FILES STRUCTURE  BAPI_DOC_FILES2 OPTIONAL
      CLEAR:   doc_files.
      REFRESH: doc_files.
      DATA: i_doc_files like bapi_doc_files2.
    DATA: i  type i.
    i = 2.
    while i = 2.
       i = 2.
    endwhile.
      CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTVIEW2'
        EXPORTING
          DOCUMENTTYPE    = DOC_TYPE
          DOCUMENTNUMBER  = DOC_NUMBER
          DOCUMENTPART    = DOC_PART
          DOCUMENTVERSION = DOC_VERS
          DOCUMENTFILE    = i_doc_files
          GETSTRUCTURE    = '0'
          GETCOMPONENTS   = 'X'
          ORIGINALPATH    = ORIGINAL_PATH
          HOSTNAME        = ' '
          GETHEADER       = 'X'
          PF_HTTP_DEST    = 'SAPHTTPA'
          PF_FTP_DEST     = 'SAPFTPA'
        IMPORTING
          RETURN          = P_RETURN
        TABLES
          DOCUMENTFILES   = DOC_FILES.
    ENDFUNCTION.
    ORIGINAL_PATH must be a directory of application server.
    By background is not possible (I don't know how can we do that) download thsi file to PC.
    Then with the file in application server we can :
    - to map application server directory in a drive unit of Pc
    - to transfer with a ftp client from Pc
    - rfcexec
    But always the bapi can not download the file: it must be a process in Pc who transfer the file.

  • DMS SEARCH THROUGH PORTAL

    Dear SAP Gurus,
        I'm using SAP NW 2004s ,i have connected my portal with DMS and when i search documents from DMS through dms search iview it is giving wrong result,please help me in solving this issue.
    regards,
    sathya.

    Hi sathya,
    1) you had connected dms to portal using connector ( supplied by sap --- hardcoded by SAP)
    2)you search documents through search iview (supplied by sap --- hardcoded by SAP -- i hope so ).
    in this scenerio it is better to raise an  message to SAP or look out for SAP note in market place.sometimes such problems could be solved by importing a latest service pack but then it will be informed by sap through SAP note.
    Regards,
    Vijay.

  • System error while opening the timesheet through Portal

    Hi Experts,
    I am getting the below error message while opening the timesheet through Web Portal. But I am not getting any error if I book time through back end i.e. CAT2 Transaction.
    System error: No receiver could be determined
    This error comes in Portal only (not in backend) once I enable "HR Enables CATS" option in Data entry profile through CAC1 transaction. There is no error if the same option is disabled.  But we need this option to be enabled.
    Can anybody help me ASAP for the same?
    Thanks,
    Atin

    Hi Atin,
    Can you please let me know how was that problem with HR Enabled Cats is Solved as w are facing the exact same issue.
    thanks
    Gaurav

  • DMS document in Portal UWL

    Hello,
    I have the following requirement:
    1 - Workflow is created after the invoice image is attached to the FI document (the imagem is stored in a DMS document linked to the FI Document).
    2 - The workitem is created in the UWL. This workitem has a link to the image. When the user double clicks, the image (jpg for example) appears in the windows viewer.
    This is all. Is there any way I can do this? I see several theoritical solutions:
    1 - Retrieve the image URL (I don't know how to do this)
    2 - Attach the DMS document to the workitem. This is not good because a WebGUI windows would open with the DMS object, not the image.
    3 - ?
    Suggestions?

    Thanks Manasa.
    But my question is how to get a document from SAP - DMS (say CV03N).  If I get a document then I can convert and make it display on the BSP screen. 
    Thanks,
    Krish

  • Error when open DMS document

    Dear DMS experts,
    After migration DMS server from one server to another an error has occurred in transaction CV03N when try open original document I got next error massage: File C:\temp\file_name cannot be created (Message no. 26172).
    This happens when I try to open the documents that have already been previously saved, the documents are saved now - open normally.
    In tr. SLG1 I see the following errors:
    1. Error
    Long Text:
    An error occurred when calling module SCMS_DOC_READ_FILES
    Message no. 1R579
    Diagnosis
    Exception number 14 occurred when function module SCMS_DOC_READ_FILES was called with document 0050569339A51ED4828753F4B06C13F3.
    Details:
    In tr. SLG1
    MANDT      200
    STOR_CAT    ZDMS_C1_ST
    PATH       C:\temp\
    FRONTEND   X
    COMP_NAMES %D0%9D%D0%B0%D0%BA%D0%B0%D0%B7 1029 26122012.tif
    COMP_NAMES File_name
    ERRMSG     Content repository DMS_C1 does not exist
    V1 SCMS_DOC_READ_FILES
    V2 14
    V3         DMS_PCD1
    V4         0050569339A51ED4828753F4B06C13F3
    %LOGNUMBER 00000000000000111877
    2. Error
    Connect Error: Connect to Host IP_HOST_DMS_SERVER Port 1090 error: NIECONN_REFUSED
    Message no. 04100
    I run Programs, and get next result:
    1. Program RSIRCCON. My location is spelled correctly but when I run program, chose my repository and run Single_Test I receive next result:
    Error when setting up connection.
    2. Program RSHTTP05
    SAPHTTP check
    Check RFC destination SAPHTTP...
    ... OK.
    Ping RFC destination SAPHTTP...
    ... OK.
    Check RFC destination SAPHTTPA...
    ... OK.
    Ping RFC destination SAPHTTPA...
    ... OK.
    3. Program RSHTTP20
    Connect Error: NiHostToAddr  error: NIEHOST_UNKNOWN
    Message no. 04100
    In SMICM->trace file -> display all.
    I see many massage like this:
    [Thr 5196] Wed Apr 08 09:11:00 2015
    [Thr 5196] *** WARNING => Connection request from (13/14/0) to host: IP_HOST, service: 1090 failed (NIECONN_REFUSED)
    [Thr 5196]  {000105f9} [icxxconn.c 2271]
    [Thr 4904] *** WARNING => Connection request from (13/14/0) to host: pwdf2625, service: 1090 failed (NIEHOST_UNKNOWN)
    [Thr 4904]  {000105fc} [icxxconn.c 2271]
    I do not know this problem relates to the existing or not yet, but I don’t know what is IP_HOST, none of my server does not have this address.
    My Storage Categories: ZDMS_C1_ST
    In SM59 SAPFTPA is working, but SAPHTTP don’t work. After change program SAPHTTP  on a SAPGUI front-end, SAPHTTP is working.
    I try ping my DMS – ok
    In tr. CSADMIN I checked connection - all good.
    Status: Running
    Try test «nipping» on both servers all fine.
    Tried to change the version of SAPGUI - did not help.
    My system parameters DMS server:
    OS: Windows Server 2012
    DB: MAXDB Database Studio
    I can not understand what the problem is because already migrate  the server and it was all good
    Thank you in advance.
    Regards,
    Vitaliy

    Hi S S B ,
    I'm sorry, I have laid out a mistake with the old Content  repository DMS_C1, my new new  Content  repository ZDMS.
    In SLG1 I have next error:
    1. Error: Problem class Other:
    Connect Error: Connect to Host My_DMS_HOST Port 1090 error: NIECONN_REFUSED
    Message no. 04100
    2. Error: Problem class Additional Information
    Long Text exists:
    An error occurred when calling module SCMS_DOC_READ_FILES
    Message no. 1R579
    Diagnosis
    Exception number 14 occurred when function module SCMS_DOC_READ_FILES was called with document 0050569339A51ED482808B4B77CD53F3.
    Detail exists:
    MANDT      200
    STOR_CAT   ZDMS_C1_ST
    PATH       C:\temp\
    FRONTEND   X
    COMP_NAMES %D0%9D%D0%B0%D0%BA%D0%B0%D0%B7 1029 26122012.tif
    COMP_NAMES Наказ 1029  26122012.tif
    ERRMSG     HTTP error: 404 (Not Found)  ""
    V1         SCMS_DOC_READ_FILES
    V2 14
    V3         DMS_PCD1
    V4         0050569339A51ED482808B4B77CD53F3
    %LOGNUMBER 00000000000000111957
    Regards,
    Vitaliy

  • Cannot open Office documents through mapped drives - Opens Office start screen

    Hi all,
    So very strange issue here. (Windows 7 - Office2013 with Office365 subscription)
    We have a user who reported that when they opened anything in Word or Excel etc, it simply does not open and instead goes to the Word (for example) start screen where it asks if you would like to start blank document etc.
    Strange thing is, after some troubleshooting, I found that this issue only occurs when opening from the file server. Desktop is fine. Even stranger is that it only happens when opening the document via the mapped drives. When going through the full path
    in explorer it works fine.
    I have tried the below...
    Office repair and clean re-install
    Starting Word in safe mode - Recent docs that were opened from mapped drive do not work either
    Adding users server credentials in Windows credentials manager (though not sure how to add for mapped drive - only for full path)
    Disconnecting and re-adding mapped drives
    Logging into another computer with this user works fine.
    Logging in as another user on the laptop works fine too.
    Thanks
    Glen

    Hi,
    Since you have mentioned:
    "Logging into another computer with this user works fine.
    Logging in as another user on the laptop works fine too."
    It's just an issue with the specific user on the specific computer, probably the Windows Profile has been corrupted.
    The detailed steps to fix the corrupted user profile, please refer to this article below:
    http://windows.microsoft.com/en-hk/windows/fix-corrupted-user-profile#1TC=windows-7
    If your computer is on a domain:
    Open Microsoft Management Console by clicking the Start button
    , typing
    mmc into the search box, and then pressing Enter.‌  If you're prompted
    for an administrator password or confirmation, type the password or provide confirmation.
    In the left pane of Microsoft Management Console, click Local Users and Groups.
    If you don't see Local Users and Groups
    If you don't see Local Users and Groups, it's probably because that snap-in hasn't been added to Microsoft Management Console. Follow these steps to install it:
    In Microsoft Management Console, click the File menu, and then click
    Add/Remove Snap-in.
    Click  Local Users and Groups, and then click Add.
    Click Local computer, click Finish, and then click
    OK.
    Click the Users folder.
    Click the Action menu, and then click New User.
    Type the appropriate information in the dialog box, and then click Create.
    When you are finished creating user accounts, click Close.
    Restart the PC.
    Hope this helps.
    Regards,
    Melon Chen
    TechNet Community Support

  • Open PDF document through JavaFX

    Hello All,
    I want to open pdf document when user clicks on "Help" link in JavaFX. PDF document is usually locally stored on user's machine.
    How I can achieve this ?
    thnx in advance,
    Venky

    Will it work for Linux ?No, of course.
    I think you must do something like:
    var params = [ 'cmd', '/c', pdfFilePath ]; on Windows
    var params = [ 'open', pdfFilePath ] on Mac
    var params = [ 'gnome-open', pdfFilePath ] on Linux with Gnome
    var params = [ 'kde-open', pdfFilePath ] on Linux with KDE
    then your Runtime.getRuntime().exec(params);
    You can catch exceptions if you are not sure of the platform (particularly Gnome vs. KDE): if raised, try something else...
    That's how Processing does its open() function. (Untested in JavaFX...)

  • Open KM Document in Portal Content Area

    Hi All,
    I have created a KM Document iview. I did upload 1 document in KM Repository (test.doc) and have given this path in the document iview.
    Now when I preview the iview......then i get a dialog box Open, Save, Cancel. On pressing Open, the doc gets opened in the New Window in MS Word.
    I want the document to be opened in the same window when I click on the link.
    Plz let me know how to achieve this.
    Regards
    Nikhil

    Hi,
           At the iveiw level (document iview or URL iview), you can set the property "Launch in New window" to "Display in Portal content Area".
            Consider awarding points if this helps.
    Regards
    Ramesh Kotagiri

  • Error opening Visio documents in Portal KM

    Hello,
    When I try to open a visio document (.vsd), the error "the page cannot be displayed..." appears, although I have installed the Microsoft Office Visio 2003. why it happens this?
    If I Uninstall the program (Visio 2003) and only installed the Visio viewer, the documents are displayed correctly, but I want have the program installed and see the documents correctly.
    What I must set?
    I have a Netweaver 04s SP10
    Thanks in advance
    Flavio

    I would recommend installing all available updates for MS Office, Internet Explorer, and Windows. If that doesn't help, it seems to be a case for Microsoft's customer support.

  • Open a document through FileSystem

    Hello guys,
    I'm building an HTML5 extension for Photoshop that will serve as a version control for your PSD files. It will soon be avaliable in GitHub =)
    The thing is, when the user click on a previous version, the extension should open that version as a new document in Photoshop.
    Since Photoshop's API can only open files that exists on the disk (at least that is what i found out), i tried to use FileSystem and FileWriter to retrieve the data from the web and write it into a new PSD on the user's local disk.
    Whoever, when i try to get the path from the file i just created (using fileEntry.fullPath), it returns me a path from inside the sandbox (quite a lot of googling told me that's the way things works when writing files from javascript). Then, Photoshop can't find the file.
    What should i do?
    I am using Photoshop CC, Eclipse, Mac OSX 10.7.5.
    The code on my JS is that:
    window.requestFileSystem(window.TEMPORARY,1024*1024*1024,onInitFs,errorHandler);
    function on InitFs(fs){
         fs.root.getFile('tempVersion.psd',{create:true,exclusive:true},function(fileEntry){
              fileEntry.createWriter(function(fileWriter){
                   fileWriter.onwriteend = function(e){
                        new CSInterface().evalScript("$._ext_PHXS,openDocument('"+fileEntry.fullPath+"')");
                   var blob = new Blob([toWriteData]);
                   //the toWriteData is an Uint8Array of the original PSD file.
                   fileWriter.write(blob);
              },errorHandler);
         },errorHandler);
    And my jsx it's like that:
    openDocument : function(file){
         app.open(File(file));
    Thanks for your time!

    Hi,
    You can manipulate local file with CEPEngine extension libreries, can download below:
    http://forums.adobe.com/message/5894888#5894888
    ten

Maybe you are looking for

  • Performance issues in Reader 7

    Hi, We have a serious issue with performance in Reader 7.  Our client is locked down to this version and we have developed our forms targeting this version in Designer but only recently discovered the performance problems.  We seem to have pinpointed

  • Field symbols?

    Hi, Can any one give me clear idea of field symbols and their use in the programing? i read some help docs but could not get it what exactly it means Thanks, Ravi

  • How can I take off icloud storage??

    Well I click 5gb for free by accident and now it takes off five gb and I dont want that because I have a 8gb and nowi can't download any music because I don't have any room!

  • Where's My Hard Drive?

    I posted something along these lines over in the installation and set-up board, so I'm sorry if I'm repeating myself somewhat for some of you all, but I thought maybe a different board phrased a little differently might net some more results. So, I'l

  • BT Home Hub 3 GigE broken?

    I just got BT infinity installed today. All is working fine and getting 70/20 mb speeds, this is when I connect the cable to port 1, 2 or 3. However when I connect the cable to port 4 GigE it just drops connection. I open a dos command and ping a ran