Skip to Content
0
Former Member
May 03, 2011 at 11:03 AM

DMS Objectlisks Issue

54 Views

Dear team,

We have written one Zprogram for linking some vendor codes to DMS conraol number ,my Zprogram is working fine,

when i execute that report vendors are sitting in objects of Document contraol number , But When I go to vendor screen XK03 the same dcouemnt number is not appearing ( message is No assignments found).

I have used below 2 function modules

wa_objectlinks-objecttype = 'LFA1'.

wa_objectlinks-objectkey = wa_final-lifnr.

APPEND wa_objectlinks TO it_objectlinks.

CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'

EXPORTING

documenttype = 'VEN'

documentnumber = wa_final-doknr

documentpart = '000'

documentversion = '00'

documentdata = ls_doc_data

documentdatax = ls_doc_datax

IMPORTING

return = ls_return

TABLES

  • characteristicvalues = lt_chr_val

  • classallocations = lt_cls_aloc

objectlinks = it_objectlinks.

IF sy-subrc = 0.

IF ls_return IS INITIAL.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

iuuse is why documents are not appearing in XK03.

Siva