We are implementing MDG -Vendor master and using class VMD_EI_API we manage the data maintenance (creation/change/deletion/block).
The additional requirement is to assign/map the DMS file into it.
We have a separate custom sub screen tab for DMS (which has DMS files or entries stored/can be viewed as ALV grid) under Vendor Master->General data (as an image attached herewith).
The requirement is to maintain/update the DMS file (data received from IB IDoc segment) while creating Vendor or Change a vendor as subsequent posting (i.e., using the Vendor number) .
Found BAPI_DOCUMENT_CREATE2 and BAPI_DOCUMENT_CHANGE2 can be used but not sure as it looks it maintain the records in CV0*N.
So, please share your valuable inputs or the steps on how the best way to create/insert the DMS data.
Thanks in advance.
CV0*N transactions are used to maintain DMS documents. You can create a new document type and link it to any business object(LFA1 for vendor). The data available in DRAW(header) and DRAD(link). You can use those BAPIs to create DMS document with link to vendor and the documents can be displayed in CV03N. You can do enhancement in vendor master screen and navigate between vendor master and CV0*N via the link(DRAD).
SPRO path for DMS config - Cross-Application Components->Document Management->Control Data->Define Document Types