cancel
Showing results for 
Search instead for 
Did you mean: 

clarification of background processing and BAPI_DOCUMENT_CREATE2

Former Member
0 Kudos

Hello,

i am sorry to mention this long discussed topic,

but i would very appreciate to clarify how can i checkin new originals for a new document using background processing.

we are trying to use BAPI_DOCUMENT_CREATE2 to create a document and checkin original from a network path +
server\file.pdf+
.

i have read that i should add the path in AL11 - did it, how should i use it?

i have read that i should use the SAPFTPA & SAPHTTPA parameters when calling the function - i have these in SM59 and the connection test is successful - but what should i do with them?

will be very thankful for your help.

here's an example from our code:

call function 'BAPI_DOCUMENT_CREATE2'

exporting

documentdata = ls_doc

  • pf_ftp_dest = 'SAPFTPA'

  • pf_http_dest = 'SAPHTTPA'

importing

documenttype = lf_doctype

documentnumber = lf_docnumber

documentpart = lf_docpart

documentversion = lf_docversion

return = ls_return

tables

documentdescriptions = lt_drat

objectlinks = lt_drad

documentfiles = lt_files.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Populate the document original information according as per below guideline.

The tables 'DOCUMENTFILES' contain the entries about originals that you you want to allocate to the document. The meanings of the structure fields are:

'SOURCEDATACARRIER': Data carrier name (optional) of a server on which

an original is stored

'STORAGECATEGORY': Name of the data carrier that you want to check

original into. The function module determines the

storage type, SAP Database, vault, or archive

using the name of the data carrier.

'DOCFILE': File name of the original

'WSAPPLICATION': Name of the workstation application. This entry is

necessary when no workstation application has been

assigned to the document info record or the new

original is of another type.

Regards

Keerthi

Former Member
0 Kudos

Hi Keerthi,

if i will follow the guidelines above there will be no problem running it in the background?

any guidelines about special things to do with the Workstation Application or the Data Carrier that will support the background processing?