on 10-06-2009 5:56 AM
HI,
I Created a document thru CV01N transaction and attaching a file ..When Iam saving the document it is asking for storage location ....i gave the corresponding storage location and the document is craeted successfully .
Now...I want to craete the document through a BAPI.......BAPI_DOCUMENT_CREATE..here in this BAPI...there is no storage location parameter available.
So my requirement is to crate a a document thru a BAPI..and attach a file to the document so that the file will be stored in a puticular storage locatiom.
ANY BAPI'S VAIALBLE FOR THIS??
Any ideas plz??
Regards
Arjun
hi,
solved myself by using
lw_docfile-storagecategory = 'DMS_C1_ST'.----
>>>storage category
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = lw_docdata
IMPORTING
documentnumber = lv_docnum
return = lw_return
TABLES
documentdescriptions = lt_dsp
objectlinks = lt_objlink
documentfiles = lt_docfile. .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Instead of BAPI, you can use LSMW.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
10 | |
9 | |
6 | |
3 | |
3 | |
3 | |
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.