02-16-2006 12:11 PM
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
02-16-2006 12:33 PM
02-16-2006 12:33 PM
02-16-2006 12:43 PM
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.
02-16-2006 3:02 PM
OK, I have solved my problem. I had to implement the note 880077. This solved the problem.
Thanks,
VF