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: 

DMS - Document checkin in background

christophe_faure
Explorer
0 Kudos

Dear all,

Is it possible to checking document in background process ?

I would appreciate if anyone could please guide me on this procedure.

Thanks in advance .

6 REPLIES 6

Former Member
0 Kudos

Hi Bruno...

u can very well schedule ur BAPI_DOCUMENT_CREATE2 in background.

What u need is tht the originals to be checked should be placed at a location from which the application server can access it.

This necessarily means tht the folder must be shared on the network. And the absolute network path e.g.
<sharedfolder>\<filename> must be specified in the BAPI call.

Regards,

Mahesh.

0 Kudos

Hello Mahesh,

Thank for your anwser, but this is not what i really want.

Is it possible to checking document in background process without share folder on the network ?

Regards.

0 Kudos

Hi Bruno,

Since u need to upload originals from the background, ur frontend pc is no longer in the scenario. So ur originals must be located where ur Application server can access it.

So this can be either on a shared folder or on the Application server hard disk.

if u r concerned about the security of shared folder, u can have a secured ftp connection and specify the url of the ftp folder.

Regards,

Mahesh

0 Kudos

I have been searching through the forum and seem like everybody will this issue has not got a solution so do I. Our situation is when the ABAP debugger is turned on in the SAPRFC.ini file, the BAPI works fine checking in a file from the network drive. But when the debugger is off, the BAPI threw an error saying "Cannot check in file".

This BAPI works fine in 4.7 but failed in 6.0. Any idea?

former_member156446
Active Contributor
0 Kudos

Refer to this [LINK>>>> |http://www.sap-press.de/download/dateien/1681/sappress_effective_document_management_with_sap_dms.pdf]it should help

jack_graus2
Active Contributor
0 Kudos

You could solve this by defining a RFC destination in SAP that points to SAPHTTP.EXE on the computer that holds, and hass access to the documents. When you use function module API_DOCUMENT_MAINTAIN2 (or a simular one) you can pass this RFC destination to the function module (input parameter pf_http_dest). This will trigger the HTTP call from the computer that can access the documents to the content server.

Regards Jack