Hi Aniruddha
Hope your ABAP colleague is aware of the user-exit where this code goes.
He needs to call the FM:
call function 'BAPI_DOCUMENT_GETOBJECTDOCS'
exporting
OBJECTTYPE = 'EKPO'
OBJECTKEY = LV_OBJKY "concatenate PO no and PO item no.
tables " gives DMS document details.
DOCUMENTLIST = LT_DOCLIST.
The LT_DOCLIST table will have the DMS document details for this PO item.
Once you get this, READ this table and call the CV02N/CV03N transaction using the CALL TRANSACTION method with the parameters IDs of the 4 fields and don't forget to use SKIP FIRST SCREEN.
This should be fine i guess. Your ABAP colleague should be able to figure out things.
Let me know if you need more detail.
Regards,
Harsh