Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_DOCUMENT_CREATE2 - Document upload to DMS - Back ground

Former Member
0 Kudos

Hi,

We are trying to uploda a file into DMS(CV01N) from SAP R/3, BAPI 'BAPI_DOCUMENT_CREATE2'. This works fine in foregroung but when we ececute it in background, we get an error saying 'Error while checking in and storing'.

Could anyone please suggest me if we can sucessfully execute in back ground mode?

Thanks,

Ranjith Singh.

7 REPLIES 7

JL23
Active Contributor
0 Kudos

where are your documents? on a presentation server (your PC) or on an application server?

a background process cannot take documents from your PC.

Former Member
0 Kudos

Hi,

Thanks for your prompt reply. I checked three scenarios 1. File from local network ,2. from local desktop (Foreground is working but background is not working ) and 3. From application froground and background is not working.

Text file from application server is being read and written in the list but not able to upload into DMS either in forgroung as well as through background.

Thanks,

Ranjith Singh.

JL23
Active Contributor
0 Kudos

I really wonder why applicaton server does not work. Dont you get any helpfull message?

did you write the file path/name in the right format?

Former Member
0 Kudos

The path is correct and was verified. The error message that i get is 'Error in Checking and Storing file 'FILE PATH''

Former Member
0 Kudos

Mainly i am focussing on uploading local Network file or local desktop into DMS(CV01N) system in backgroud mode only

Edited by: Ranjith Singh on Oct 20, 2011 11:15 AM

JL23
Active Contributor
0 Kudos

it is not possible to download in background to a presentation server (your local PC) hence it is not possbile to upload either.

when you submit the program to the background thenthe session is no longer attached to the PC that created it.

Because of this you have to go via the application server.

compare hundred of threads by searcing the ABAP forum with keywords +download +background

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0901cba-f49e-2910-748c-d7ce4c0c4...

Former Member
0 Kudos

Thanks for you relpy. I went through threads. I need to upload document into DMS system which is cross platform of SAP, connected to SAP via CV01N t-code.

This document upload should happend through BAPI from JAVA calling which is similar to background.

Anyway thanks for your efforts.