‎2006 Sep 11 9:56 AM
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?
‎2006 Sep 11 10:00 AM
check tables TDWA <b>/TDWAT</b>for list of Document types
Regards
Prabhu
Message was edited by: Prabhu Peram
‎2006 Sep 11 10:07 AM
in se11, kindly take this structure 'BAPI_DOC_DRAD'.
u will get more idea.
rgrds
anver
‎2006 Sep 11 10:08 AM
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
‎2006 Sep 11 10:28 AM
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'?
‎2006 Sep 11 10:40 AM
‎2006 Sep 11 10:45 AM
Hi,Anversha
Is DRAW a table?
OBJ NAME - >Document
which document?
‎2006 Sep 11 10:59 AM
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