Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

error: while using fm 'bapi_document_create2'

Former Member
0 Likes
387

Hi.

I am using fm 'bapi_document_create2' for creating douments of dms.

it throws me an error 'version assigned automatically internally for document type'

error no: e006(26)

i have populated all tables properly and passing to the bapi.

    • part of code***

loop at it_docdata.

CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'

EXPORTING

DOCUMENTDATA = it_docdata

  • HOSTNAME =

  • DOCBOMCHANGENUMBER =

  • DOCBOMVALIDFROM =

  • DOCBOMREVISIONLEVEL =

  • CAD_MODE = ' '

  • PF_FTP_DEST = ' '

  • PF_HTTP_DEST = ' '

IMPORTING

DOCUMENTTYPE = documenttype

DOCUMENTNUMBER = documentnumber

DOCUMENTPART = documentpart

DOCUMENTVERSION = documentver

RETURN = ireturn

TABLES

CHARACTERISTICVALUES = it_doccharval

CLASSALLOCATIONS = it_docclassalloc

DOCUMENTDESCRIPTIONS = it_docdescp

OBJECTLINKS = it_objectlinks

DOCUMENTSTRUCTURE = it_docstructure

DOCUMENTFILES = it_docfiles

LONGTEXTS = it_doclongtext

  • COMPONENTS =

.

endloop.

*******************************************************************

what could the problem?????

please treat it on priority.

Thanks and regards

Siddhesh

1 REPLY 1
Read only

Former Member
0 Likes
288

Hi,

I know the original post is from several years back, but could you please explain what he solution was?

I am experiencing the same issue.

regrads

Julian