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

BAPI_DOCUMENT_CHANGE2 For object links upload

former_member184497
Participant
0 Likes
1,139

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

2 REPLIES 2
Read only

former_member184497
Participant
0 Likes
786

Hi any one can help

Read only

former_member184497
Participant
0 Likes
786

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'