‎2005 May 20 8:01 AM
Hi together!
I want to add an objectlink to a document.
I use the BAPI_DOCUMENT_CHANGE2:
lt_drad-objecttype = 'KNA1'.
lt_drad-objectkey = '100789'.
CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'
EXPORTING
documenttype = idrad-dokar
documentnumber = idrad-doknr
documentpart = idrad-doktl
documentversion = idrad-dokvr
IMPORTING
RETURN = ls_return
TABLES
OBJECTLINKS = lt_drad
.
errors occured ??
IF ls_return-type CA 'EA'.
ROLLBACK WORK.
MESSAGE ID '26' TYPE 'I' NUMBER '000'
WITH ls_return-message.
The idrad is filled but the bapi does not add the objectlink.
What can I do ?
Volker
‎2005 May 20 8:49 AM
Hi Volker!
Did you delete the append? Otherwise you just fill the header line of lt_drad, not the table.
Regards,
Christian
‎2005 May 20 8:49 AM
Hi Volker!
Did you delete the append? Otherwise you just fill the header line of lt_drad, not the table.
Regards,
Christian
‎2005 May 20 9:10 AM
Hi Christian !
Thanks !
Sometimes it's just a little thing
Works !
Es geht !!
‎2005 May 20 9:53 AM