‎2010 Aug 02 7:23 AM
Hi All,
I had used the BAPI_DOCUMENT_CHANGE2 to upload object links(customer number,ecm,doc info records..etc). I want to upload document info records in cv02n TCODE. But i couldn't update the document details it s showing error,how should i assign value to the object links internal table should i concatenate the doc type,number,part and version while assigning to the objectlink-objectkey ...could you please help me out. Thanks in advance
Thsi the piece of code..
CONCATENATE wa_objectlinks-refdoctype wa_objectlinks-refdocnumber wa_objectlinks-refdocpart wa_objectlinks-refdocversion
INTO wa_objlink-objectkey.
wa_objlink-objecttype = 'DRAW'.
wa_objlink-documentdirection = 'X'.
wa_objlink-objectkey = wa_objectlinks-refdocnumber.
APPEND wa_objlink TO it_objlink. " Here i am appending it to the internal table for upload
Note : i have tried debugging it is assiging document direction inside the bapi
‎2010 Aug 02 7:25 AM
‎2010 Aug 02 12:22 PM
Ya i found out the answer ..
we should concatenate doc type, number, version and part and send it to objectkey and set data direction as 'X'