Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI_DOCUMENT_CHECKOUTVIEW2 with JCO retrieve only one document


We are facing an issue using JCO API.

Here is our cinematic :

1. Call of BAPI_DOCUMENT_GETLIST to retrieve a list of SAP documents


3. Call finally BAPI_DOCUMENT_CHECKOUTVIEW2 which, in theory, will retrive all the attached files of current SAP document (using middleware sapftp.exe)

Our environment is JRE 1.6, JCO 2.1.8 and calling our java program always retrieves only the first attachement and not the following...

No exception are raised. The same call RFC from ABAP is successful : the three documents attached are downloaded in C:\Temp.

Any idea where to look? JCO compatibility? Where could i find logs? Trying to debug the BAPI when i call it from java, raised an error : Unable to create file in C:\Temp... But the previous file was created in the same folder... So it's weird...

Maybe timeout issue?

Thanks a lot for your help!

Former Member
Not what you were looking for? View more on this topic or Ask a question