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

Document assignment

Former Member
0 Likes
965

Hi,all

When I used function "BAPI_DOCUMENT_CHANGE2" to assignment a document to a BOM's material,what are object type and objcect key in structure objectlinks?

7 REPLIES 7
Read only

Former Member
0 Likes
835

check tables TDWA <b>/TDWAT</b>for list of Document types

Regards

Prabhu

Message was edited by: Prabhu Peram

Read only

anversha_s
Active Contributor
0 Likes
835

in se11, kindly take this structure 'BAPI_DOC_DRAD'.

u will get more idea.

rgrds

anver

Read only

Former Member
0 Likes
835

Hi,

Checkout this code

DATA: lt_files LIKE bapi_doc_files2 OCCURS 0 WITH HEADER LINE. 
DATA: i_docdata LIKE bapi_doc_draw2 OCCURS 0 WITH HEADER LINE. 
DATA: i_docdatax LIKE bapi_doc_drawx2 OCCURS 0 WITH HEADER LINE. 
DATA: ls_return LIKE bapiret2. 
DATA: i_originidmax TYPE c. 

i_originidmax = '0'. 
************************************************************************ 
CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2' 
EXPORTING 
documenttype = 'SED' 
documentnumber = '0000000000000000001011484' 
documentpart = '000' 
documentversion = '79' 
* GETOBJECTLINKS = 'X' 
* GETCOMPONENTS = ' ' 
* GETSTATUSLOG = 'X' 
* GETLONGTEXTS = ' ' 
getactivefiles = 'X' 
getdocdescriptions = 'X' 
getdocfiles = 'X' 
* GETCLASSIFICATION = ' ' 
* GETSTRUCTURE = 'X' 
* GETWHEREUSED = ' ' 
* HOSTNAME = ' ' 
IMPORTING 
documentdata = i_docdata 
 RETURN = ls_return
TABLES 
* OBJECTLINKS = 
* DOCUMENTDESCRIPTIONS = 
* LONGTEXTS = 
* STATUSLOG = 
documentfiles = lt_files 
* COMPONENTS = 
* CHARACTERISTICVALUES = 
* CLASSALLOCATIONS = 
* DOCUMENTSTRUCTURE = 
* WHEREUSEDLIST = 

Regards

Sudheer

Read only

Former Member
0 Likes
835

Hi,all

After I test this funcion 'BAPI_DOCUMENT_GETDETAIL2',I got the object type 'SKTO_DOC' and the object key '43BCFE44D486B212E1000000AC1F7815'.I think this object key means the link between bom and document.What can i fill the object key of the function 'BAPI_DOCUMENT_CHANGE2'?

Read only

anversha_s
Active Contributor
0 Likes
835

HI,

Obj. type - >DRAW

OBJ NAME - >Document

RGRDS,

ANVER

Read only

0 Likes
835

Hi,Anversha

Is DRAW a table?

OBJ NAME - >Document

which document?

Read only

0 Likes
835

hi kevin,

kindly chk this FM-> CAD_DOCUMENT_CHANGE

it may help u.

i was going thru that FM in my system

The FM BAPI_DOCUMENT_CHANGE2 is used many place in the above FM CAD_DOCUMENT_CHANGE.

it will help u to slv ur issue.

rgrds,

anver