cancel
Showing results for 
Search instead for 
Did you mean: 

How to checkout documents in a WD Java application to client workstation ?

Former Member
0 Kudos

Hello,

I need to make some local checkouts of documents from DMS SAP in a Web Dynpro Java application.

I develop a specific Bapi which is using the following functions : bapi_document_getdetail2 and

bapi_document_checkoutmodify2.

This Bapi works well when I call it from an abap program.

But when I try to call it from a WD Java application, the part of my bapi which interacts with the local workstation don't work.

By example, when I try a checkout into C:\... or into
server\.... :

- it works when this Bapi is called by an abap program.

- it doesn't work when this Bapi is called by a WD Java application.

Could you help me ?

Thanks a lot for your help.

Mathieu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The solution is :

- checkout on the application server (CVAPI_DOC_CHECKOUTMODIFY)

- read the file (READ DATASET)

- transform to xstring (SCMS_BINARY_TO_XSTRING)

- export by BAPI

- read the xstring field in WD java application (IWDResource)

- popup to edit the file locally (IWDWindow)

Former Member
0 Kudos

Can anyone elaborate how to checkout to app. server instead of local machine?