cancel
Showing results for 
Search instead for 
Did you mean: 

DMS STORAGE CATEGORIES

Former Member
0 Kudos

Hi,

I am calling a bapi to run in background from .net.I want to store the documents directly to storage categories (DMS_C1_ST).

Can anyone provide me the solution ASAP.

Regards,

veeramani

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can use the structure BAPI_DOC_FILES2 for the internal table to be passed in the BAPI . For storagecategory you can hard code ur category.

It should be something like this.

Data:

lt_documentfiles        type table of bapi_doc_files2.

refresh lt_documentfiles.
         clear ls_documentfiles.

* BUILD 'DOCUMENTFILES' TABLE

         ls_documentfiles-documenttype       = ls_datatab-doc_type..
         ls_documentfiles-documentnumber     = '*'.
         ls_documentfiles-documentpart       = '000'.
         ls_documentfiles-documentversion   = '00'.
         ls_documentfiles-sourcedatacarrier = 'PC'.
         ls_documentfiles-storagecategory   = 'DMS_C1_ST'
         translate ls_datatab-filetype to upper case.
         ls_documentfiles-wsapplication     = ls_datatab-filetype.

Hope this helps.

Best Regards,

Simran