Skip to Content

RFC call from java webdynpro


I'm creating a Java Webdynpro where I call RFC's from SAP.

For the images in the webdynpro, I call the standard SAP function 'CVAPI_DOC_VIEW'

When I execute the function in SAP, I get the url to the contentserver with the correct image.

After calling the same function in my Java Webdynpro, the url is empty.

I've checked the importing parameters after calling from webdynpro and SAP and they are the same.

After debugging, I saw that the function 'CVAPI_DOC_VIEW' is the problem. He's exporting an empty url after calling from the webdynpro.

Does anybody knows the possible fault and solution for my problem?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on May 08, 2014 at 11:57 AM

    Hi Tim,

    As far as I know most of the DMS functions require SAP GUI, that's why it works from SAP GUI and doesn't work from Web Dynpro Java...



    Add a comment
    10|10000 characters needed characters exceeded

    • I'm not an ABAPer but the last time I've dealt with DMS from Web Dynpro an ABAPer wrote a custom function that gets the file content (XSTRING) by sending DMS parameters (documenttype, documentnumber, documentversion, documentpart).

      After getting the XSTRING from my Web Dynpro Java, I convert it to byte[] and created URL by using WDResourceFactory.

      Hope it helps...


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.