Skip to Content
0
Former Member
Jun 29, 2011 at 07:46 PM

'BAPI_DOCUMENT_CREATE2' in background

82 Views

I am trying to call 'BAPI_DOCUMENT_CREATE2' in background mode. I need to check in documents from application server, but I am getting "File cannot be opened" error.

I am populating the following fields

bapi_doc_files2-FILE_ID

bapi_doc_files2-wsapplication

bapi_doc_files2-storagecategory

bapi_doc_files2-checkedin

bapi_doc_files2-active_version

bapi_doc_files2-description

CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'

EXPORTING

documentdata = pa_doc_data

pf_ftp_dest = 'SAPFTPA'

pf_http_dest = 'SAPHTTPA'

IMPORTING

documenttype = l_documenttype

documentnumber = l_documentnumber

documentpart = l_documentpart

documentversion = l_documentversion

return = la_return

TABLES

characteristicvalues = pt_characteristicvalues

documentfiles = pt_documentfiles.

.

What should I consider if I wanted to call this bapi in background?