Skip to Content
0
Former Member
Sep 06, 2007 at 07:16 AM

BAPI_DOCUMENT_CREATE error

514 Views

Dear Experts,

When I use BAPI_DOCUMENT_CREATE to create document, I encountered error message "E26300 The Knowledge Provider is using document type DRW as a storage system", can anyone tell me how to solve this issue?

Below is the parameters that I pass in:

docdata-documenttype = 'DRW'.

docdata-documentnumber = it_struc-zmatnr+5(7).

docdata-documentversion = '00'.

docdata-documentpart = '000'.

docdata-statusextern = 'IA'.

docdata-wsapplication1 = 'TIF'.

CLEAR docfiles.

REFRESH docfiles.

docfiles-datacarrier = 'SAP-SYSTEM'.

docfiles-docfile = 'c:\TEST4.TIF'.

docfiles-wsapplication = 'TIF'.

APPEND docfiles.

CLEAR docdesc.

REFRESH docdesc.

docdesc-language = 'EN'.

docdesc-description = 'TESTING'.

APPEND docdesc.

CLEAR objectlinks.

REFRESH objectlinks.

objectlinks-objecttype = 'MARA'.

objectlinks-objectkey = it_struc-zmatnr.

CALL FUNCTION 'BAPI_DOCUMENT_CREATE'

EXPORTING

documentdata = docdata

IMPORTING

DOCTYPE = doctype

DOCNUMBER = docnumber

DOCPART = docpart

DOCVERSION = docver

RETURN = return

TABLES

DOCUMENTDESCRIPTIONS = docdesc

OBJECTLINKS = objectlinks

DOCUMENTFILES = docfiles

.