cancel
Showing results for 
Search instead for 
Did you mean: 

DMS file or document mapping during Vendor creation or change

sankar1781
Participant
0 Kudos

Hello Experts,

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.

Best Regards.

Accepted Solutions (1)

Accepted Solutions (1)

sankar1781
Participant
0 Kudos

It's resolved by,

Creating a DMS document using FM CVAPI_DOC_CREATE.

Assigning a vendor or customer CV120_DOC_GET_APPL.

Answers (1)

Answers (1)

thilakan_t
Participant
0 Kudos

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

sankar1781
Participant
0 Kudos

Hi,

Thanks for your answer.

But I am looking a BAPI , technical approach to automate this process.