cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: Document Creation in CV01N

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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. .

Makal
Active Contributor
0 Kudos

Instead of BAPI, you can use LSMW.