on 05-19-2011 10:38 AM
Hello experts,
I try to use BAPI_DOCUMENT_CREATE2 to put a file in the dms.
When i try it in front-end it works, but not in background.
I need insert a pdf file from al11 into dms.
But he always searches the file in the front-end.
I use:
ls_doc-documenttype = 'Z09'.
ls_doc-documentversion = '01'.
ls_doc-documentpart = '000'.
ls_doc-description = lv_docname.
ls_doc-username = sy-uname.
Files
lt_files-documenttype = 'Z09'.
lt_files-documentversion = '01'.
lt_files-documentpart = '000'.
lt_files-storagecategory = 'ZDOCBEPR'.
lt_files-wsapplication = 'PDF'.
lt_files-description = lv_docname.
lt_files-originaltype = 1.
lt_files-checkedin = 'X'.
lt_files-docpath = '/var/load/IQ0/Data/manuals/123.pdf'.
APPEND lt_files.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = ls_doc
IMPORTING
documenttype = lv_doknr
return = ls_return
TABLES
documentfiles = lt_files.
But I get an error that i doesn't work. Any ideas?
Hi,
This has been discussed and answered several time sin the forum, please SEARCH the forum once again. Just do a check on BAPI_DOCUMENT_CREATE2
regards
N K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.