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.

Similar Messages

  • Make Firefox open URLs passed from external applications in new tabs

    I upgraded Firefox (Mac) from 3.6.13 to 3.6.14 yesterday.
    Since then Firefox does not respond to URLs passed from external applications, as it has always done.
    The external apps pass the URL, FireFox is brought to the front, but no Tab (or new window) is opened.
    Nothing else has changed. Firefox is selected as my default browser (in Safari Prefs) and there is only one copy of FireFox on my laptop,

    Hi David
    Go to Safari Preferences>General. At the bottom you'll see an option for opening in a tab. Makes sure Tabs are enabled in your Tab panel.

  • Get HTML (Dynamic Converter) converted content from external application

    As per requirement, External (Other java application) application suppose to get dynamic converted (HTML version) content from UCM.
    I am trying to execute GET_DYNAMIC_CONVERSION service using RIDC and web service client call.
    I dont see HTML content is coming as the result of GET_DYNAMIC_CONVERSION service.
    Would you please guide me in getting HTML converted document from external application.
    Please let me know, if you need additional details.
    Thank you in advance
    Edited by: 958795 on Sep 12, 2012 3:29 PM

    Hi Srinath,
    I have tried your response. Still i am getting hda data only, not HTML content.
    GET_DYNAMIC_URL service with fileUrl attribute is returning HTML content from UCM GUI (browser) but not from RIDC.
    Code i tried is:
    DataBinder dataBinder = idcClient.createBinder();
              dataBinder.putLocal("IdcService", "GET_DYNAMIC_CONVERSION");
              //dataBinder.putLocal("dID","1832");
              dataBinder.putLocal("dDocName","ECMPS5_002024");
              dataBinder.putLocal("IsJava","0");
              dataBinder.putLocal("RevisionSelectionMethod","LatestReleased");
              dataBinder.putLocal("DCViewFormat","WebViewable");
              // execute the request
              ServiceResponse response = idcClient.sendRequest (userPasswordContext, dataBinder);
    InputStream istream=response.getResponseStream();
    InputStreamReader isr = new InputStreamReader(istream);
    BufferedReader br = new BufferedReader(isr);
    String line = null;
    while ( (line = br.readLine()) != null)
    System.out.println(line);
    }

  • Open Pages documents from an older version

    I need to open Pages documents from an older version of Pages that I saved to an external drive from a computer that I no longer have access to.  My current operating system is 10.7.5 and I can't upgrade it right now.  I see that Pages 5.0 requires 10.10 or higher and I can't find older versions to download and from what I've read, it doesn't sound like I'd be able to open the old documents with the new version anyway.  I really need these documents. What can I do?

    I found it helpful to convert all my old Pages '08 files to .doc files.  They can be opened by the new version of Pages.
    Since the new version of Pages is no longer back compatible, and so not good for anything you want to keep for a long time, you might consider using an open source word processing application like Libra Office.  That's what I had to do.  After seven years of being a happy Pages user - archiving thousands of files in Pages -Apple has abandoned us.  I no longer think it is wise to use the new Pages and then five years down the road (or sooner) not to be able to open them in a newer version.
    If you would like a quick way to convert your Pages '08 files to .doc, let me know.

  • Not able to open office documents from SharePoint site using Forms auth on a Mac with Office 2011

    I posted the same question on the Mac Office forum (http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macstart/not-able-to-open-office-documents-from-sharepoint/7fba517b-ebd1-4e90-a54a-c70c5f035146?tm=1418836613595) but figured it's probably more
    of a SharePoint question so I'm going to try here as well.
    We just discovered an issue where a user logs into a SharePoint site using Forms based authentication.  When clicking on an Office file they get
    'Sorry, this site hasn't been shared with you' message:
    The user can download the file and can also open the file within the browser (Office Web apps).  This SharePoint site is on a Web app that uses mixed authentication (forms for external partners) and Windows/Kerberos for internal employees.
     When logging into this same site as an internal user I am able to open the file just fine.
    I checked the 'Microsoft Document Connection' settings and selected and deselected 'Enable Basic Authentication' and neither helped.  
    I also tried to add the site URL under 'Microsoft Document Connection' -> Add connection -> Connect to a SharePoint site.  When I put the site URL in and click 'Connect', I get an error saying that 'Only connection to SharePoint or OneDrive
    servers are supported' message.  If I try the same thing as an internal user using Windows/Kerberos authentication I am able to connect to the site just fine.
    Any ideas??

    Hi Szamir,
    As you are using Form Based authentication to open the documents from SharePoint site, I recommend to check the things below:
    Make sure that the user has permission to view the documents in the site.
    Please select "Sign me in automatically" when you sign in the login page.
    More references:
    https://social.technet.microsoft.com/Forums/en-US/ae8cc886-c362-4709-8575-07d339144714/not-able-to-open-microsoft-office-documentsdocxxls-etc-from-document-library-in-a-fba-site-in?forum=sharepointgeneralprevious
    http://manojvnair.blogspot.com/2011/06/login-prompt-while-opening-office.html
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Documents from external system

    Hi experts.
    I would like to aks You how can I solve following problem:
    1. I have an aplication in ABAP
    2. There is an external aplication for optical archive of documents
    3. We are ucing JaCo to communicate with external aplication.
    And, main problem is, that I need to view scanned document from external aplication in our SAP aplication.
    I have two ideas:
    1. through HTML viewer - I will get an URL addres of HTML code of the scanned document - but, there is an problem with rights. To view this URL i need this url has to be a public (user's browser must "see" it). but, this is not possible to public this url, because there are scanned agreements. And, when this url is private only for SAP server and external application, the HTML viewer cannot find it ..... I have thinking about using username and password in HTML code and url addres, but, that is not what I prefer ...
    2. through PDF - the external application create an PDF document on their directory. But, how can I view this PDF in SAP (from external directory in other system).
    Many many thans for any answer.
    Have a nice day .....

    Hi,
    From your description, you want to get numerous files into SharePoint Document Libraries.
    After you log on to the SharePoint document library->click Actions->followed by
    Open with Windows Explorer. After Windows Explorer opens, you can upload and download files and folders using the standard copy-and-paste operation.
    Refer to the article:
    http://windowsitpro.com/systems-management/easy-way-get-numerous-files-and-out-sharepoint-document-libraries
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to send delivery document from external system to ECC

    i have a business requirement to send a delivery and billing documents from external system ( MS access )  to ECC
    could any one light me how to do this ???
    Thank you in advance

    Hi Ahmed,
    Talk to your middleware team, They will upload the data through RFC.
    Basiclly RFC(Remote function call) works like it will call the function module and then upload the data.
    For more information, check the link given below.
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5b6a85b11d6b28500508b5d5211/content.htm
    Hope this helps,
    Regards,
    MT

  • Pages 2.0.2 doesn't open Pages documents from ipad

    Pages 2.0.2 doesn't open Pages documents from ipad 2. Document succesfully transferred as Pages document to computer, but Pages 2.0,2 wouldn;t open it. Version too old?

    Pages 2 is iWork '06, two versions behind what the iOS Pages creates. You need to use Pages '09 which you can purchase from the Mac App Store as a stand-alone application or a retail box of the iWork '09 suite.

  • Will not open a document from a website in another tab.

    When I am trying to open a document from a website link, a new tab opens in the link but the document is not there, the screen is blank. This happen EVERY time. For example, I just wanted to print a coupon from a department store and I clicked on the link, it opened in another tab and it was blank. The way I solve this is I open up Safari or Google Chrome and open the website and I can then get the coupon to show up. Other people have had this same problem with Firefox. I work at a store that uses printed coupons and people come in and tell me this. This also happens with PDF file links.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • "An error occurred sending the command to the application" When trying to open excel document from outlook 2007

    Error message "An error occurred sending the command to the application" When trying to open excel document from outlook 2007.
    OS: Windows Server 2008 R2
    If I save the document then it opens fine, messing with default file associations does not resolve this problem, I've googled for ir it and some suggest unticking compatibility mode or "run as admin" for excel application, neither is selected in my case.
    Outlook is configured to run as remote application from remoteApp server, this error is only occurring for one user, for others excel documents open just fine.

    Hi
    Thank you for using
    Microsoft Office for IT Professionals Forums.
    From your description, we can Create a trusted location follow these steps
    Click the Microsoft Office Button , and then click Excel Options.
    Click Trust Center, click Trust Center Settings, and then click
    Trusted Locations.
    If you want to create a trusted location that is not local to your computer, select the Allow trusted locations on my network (not recommended) check
    box.
    Click Add new location.
     IMPORTANT   We recommended that you don't make your entire
    Documents or My Documents folder a trusted location. Doing so creates a larger target for a hacker to potentially exploit and increases your security risk. Create a subfolder within Documents or My Documents, and make only that folder a trusted location.
    In the Path box, type the name of the folder that you want to use as a trusted location, or click Browse to
    locate the folder.
    If you want to include subfolders as trusted locations, select the
    Subfolders of this location are also trusted check box.
    In the Description box, type what you want to describe the purpose of the trusted location.
    Click OK.
    More detailed information you can refer to this link:
    http://office.microsoft.com/en-us/word-help/create-remove-or-change-a-trusted-location-for-your-files-HA010031999.aspx?CTT=1#BM12
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything
    I can do for you, please feel free to let me know.
    Hope that helps.
    Sincerely
    William Zhou CHN
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Getting error while opening Excel document from SharePoint site

    Hello All,
    I am getting following error while opening Excel document from SharePoint site.
    This issue appears when we open Excel document from Windows>> Run using below mentioned command:
    Excel.exe "{File Name}"
    If once I go to Excel back stage and browse for the SharePoint location, then this problem disappears.
    I have a work around for this issue but main problem is that i do not have any work around when i need to open Exel document using Excel COM interop in C#.
    Thanks,
    Amit Bansal
    Amit Bansal http://www.oops4you.blogspot.com/

    Hi Amit Bansal,
    Thanks for posting in MSDN forum.
    This forum is for developers discussing developing issues involve Excel application.
    According to the description, you got an error when you open the document form SharePoint site.
    Based on my understanding, this issue maybe relative to the SharePoint, I would like move it to
    SharePoint 2013 - General Discussions and Questions forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Sorry, we couldn't open...Error opening office documents from SharePoint 2013 in the desktop applications

    Sorry, we couldn't open...Error opening office documents from SharePoint 2013 in the desktop applications        
    One of our Managers encounters the error 'A problem occurred while accessing the Office document cache.  Do you want to repair this problem?'
    Then When he says yes it give a warning that the cache will be backed up and replaced
    Then it says 'A new office document Cache has been created...'
    Then it loads this cache with an error
    Then After all that the next time he tries to open the document it says  is encountered "Sorry, we couldn't open 'URL."
    We have Reinstalled office 2013 on the users PC repaired the cache numerous times
    Followed -  http://office.microsoft.com/en-gb/word-help/manually-rename-the-office-document-cache-HA101848838.aspx
    Updated Lync to 2013 leaving Access as the only office 2010 application (required for legacy systems access)
    Repair installed office 2010 and office 2013 again
    The SharePoint site has been added to the trusted sites list and the set up assistant run from office 365
    And the issue remains the Same all other users including some who also have Access 2010 for legacy systems access have no Issues OS is windows 7 32 Bit browser is IE 9
    Office 365 said
    Reply by Rachel Zhang MSFT Support
    Hi Alex,
    From your description, I notice that the issue is related to Office client. We would like to help you, but I’m sorry that our forum does not focus on this scenario and has limited resources regarding it. However, we have a dedicated support forum where
    the support engineers will help you with the issues about Office client:
    Microsoft Office Community:
    http://answers.microsoft.com/en-us/office/forum/office_2013_release?tm=1365567547805
    Feel free to sign in to the Office community and click Participate->Ask a Question to post the question with the relevant information.
    Microsoft Office Community:  
    Feel free to sign in to the Office community and click to post the question with the relevant information.
    Office team said
    Hello Alex,
    Thank you for posting your query in Microsoft Office Community.

    Check if other excel works fine
    Do you have any script\macro in excel file
    Check if all application pool on all servers are running
    both office and IE should be same build (64 or 32 bit)
    what is the error message in ULS log and Event viewer
    If this helped you resolve your issue, please mark it Answered

  • Problem opening Office documents from KM

    Hello, I have some problem opening Office documents from KM.
    We stored a lot of office documents (Excel, Word ecc.) in a File System repository (the standard repository "/documents"), when I open one of these files, before to view the document, a little logon window appears, it asks portal user's credentials.
    If the user presses the "Cancel" button the logon window will be closed and the document showed, but on the next attempt to open an office file the system will asks again the user information .
    If the user gives the right information the documents will be showed and the logon window does not appear again..
    How con I avoid the logon request for each Office document in my repository?
    Any suggestion??
    Best Regards

    Thank you a lot Brad!!
    We use Office 2003 and the note 549610 solves our issue!!
    Best Regards.

  • E72 I can not open office documents from my email ...

    I have the phone for two months and already I have two problems. For two weeks I can not open office documents from my email and I can not connect the phone via Bluetooth to my computer.

    Se7entadi wrote:
    i can not open www.icloud.com/activationlock from my iphone . i get this error. Your browser is not supported. to use icloud, we recommend using the latest version of safari, firefox, or internet explorer. i have IOS 7.1.1
    So follow the instructions and use one of the recommended browsers.  What's the problem?

  • Can't open Office documents from network share

    Dear,
    I have a user named X that can't open Office documents from two specific shares. We call this shares T and U.
    When the user X opens Office documents the error message is "...xlsx can't be opened". The problem is not client specific because when I login on the same client I can open the documents without any problem. If you copy the file to your desktop it
    opens fine.
    Any idea?

    Anybody?
    We have a problem with a customer that they can't open Office documents(Word,Excel etc.) on Windows 8 image on a network share. The error message is just that they can't open the document. The documents are on a sharepoint site and we can open the documents
    within the site and also we can open the Office documents on a Windows 7 image.
    I think there is a group policy for Windows 8 for this but I don't know for sure?
    Anybody?

Maybe you are looking for