Application Development 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: 

DMS - Creating links with BAPI_DOCUMENT_CHANGE2

Former Member
0 Kudos

I am trying to create a document link to a material using BAPI_DOCUMENT_CHANGE2 but the BAPI does nothing. It returns no error but does not create the link. I can change contents, delete links but not create new links.

Any help will be appreciated.

VF

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

Hi,

Check this thread..

regards

vijay

3 REPLIES 3

former_member188685
Active Contributor
0 Kudos

Hi,

Check this thread..

regards

vijay

0 Kudos

Thanks for the answer but my code is correct as you can see

w_type = 'KPR'.

w_number = '0000000000000010000000011'.

w_part = '000'.

w_version = '00'.

t_link-deletevalue = ' '.

t_link-objecttype = 'MARA'.

t_link-objectkey = 'VF01'.

APPEND t_link.

CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'

EXPORTING

documenttype = w_type

documentnumber = w_number

documentpart = w_part

documentversion = w_version

documentdata = w_data

documentdatax = w_datax

  • HOSTNAME =

  • DOCBOMCHANGENUMBER =

  • DOCBOMVALIDFROM =

  • DOCBOMREVISIONLEVEL =

  • SENDCOMPLETEBOM = ' '

  • PF_FTP_DEST = ' '

  • PF_HTTP_DEST = ' '

  • CAD_MODE = ' '

IMPORTING

return = w_return

TABLES

  • CHARACTERISTICVALUES =

  • CLASSALLOCATIONS =

  • DOCUMENTDESCRIPTIONS =

objectlinks = t_link

  • DOCUMENTSTRUCTURE =

  • documentfiles = t_file

  • LONGTEXTS =

  • COMPONENTS =

.

Is it possible that the KPR document type is the cause of this?

I have already done a debug to the BAPI but couldn't find anything. I am running SAP ERP Central Component 5.0 (SAP_APPL-SAPKH50010) I have already looked for SAP Notes, SAP FANS Forum, SDN Forum but couldn't find nothing yet. I think I am going to put a note in OSS.

Former Member
0 Kudos

OK, I have solved my problem. I had to implement the note 880077. This solved the problem.

Thanks,

VF