Skip to Content
avatar image
Former Member

DMS Document not getting created thru Webdynpro ABAP Strange Problem

Dear all,

My requirement is that I have a Webdynpro ABAP application sitting on SAP Server1 and I am having a FileUploadUI Element in there for uploading files and we have SAP Server2 with the DMS configured. So, what we have done is we have an RFC in SAP Server2 and we are calling it from our webdynpro ABAP application sitting on SAP Server1. And we are calling BAPI_Create2 with all the necessary parameters in this RFC to create the DMS document with the file from webdynpro ABAP application. But its not working. I am passing the Presentation Server File Path of the File to the BAPI_create2.Even if I write the file to the application server of SAP Server2 and then pass this file path to the BAPI_Create2 then also it doesn't work but when I execute this RFC locally in the SAP Server2 with the presentation server file path It executes successfully.

I don't know what I am missing.

Please help.

Thanks and regards,

--Sonal

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 24, 2010 at 03:44 PM

    You can't pass the presentation server file path to the RFC. During RFC from within WDA there is of course no connection to a SAPGUI or the presenattion server. If the file is on the application server filesystem, then you should be able to use this RFC> However you will have to use the alternative destination parameter. Instead of SAPHTTP (the default value), set SAPHTTPA. This is an RFC destination (which should be setup in SM59) that will call the Application server instead of the presentation server.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Sonal,

      I have the same requirement in my work and I would like to know how you solved this issue? Could you please explain the exact procedure that you followed?