cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_DOCUMENT_CREATE2

Former Member
0 Kudos

Hello all,

I am trying to craete a CV01N Document programatically using the BAPI_DOCUMENT_CREATE2.

However i am unable to get the STORAGE CATEGORY field which i require further for reading the document for further processing.

If i pass the STORAGE CATEGORY as suppose 'XYZ' maintained in the system in the Table parameter DOCUMENTFILES then the BAPI returns an error message.

Please suggest ways in which the document can be created with the STORAGE CATEGORY.

Regards,

Arun

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In the documentation for the function module itself, SAP has provided an example and the field has following values.

SAP-CATEGORY for .txt & .ppt files

VAULT for .dwg files

Hope it helps.

Sujay

former_member188827
Active Contributor
0 Kudos

try giving "SAP-SYSTEM" for storage category.

Former Member
0 Kudos

I tried the option provided by you but the BAPI returns an error that the same is not maintained in the system.

former_member188827
Active Contributor
0 Kudos

check table "DMS_PROF03" in se11 and pass value of storage category stored in this table to your FM.

Former Member
0 Kudos

I need to have the Storage category updated for each of my document created by BAPI_DOCUMENT_CREATE2.

When i do a manual creation by CV01N then the storage category is updated.

But by my BAPI i am unable to do the same.I need the storage category for my further processing in the FM SCMS_DOC_READ.

The storage category is a mandatory parameter there.

Kindly suggest.

Regards,

Arun