cancel
Showing results for 
Search instead for 
Did you mean: 

Assigning DMS to Material Master

Former Member
0 Kudos

Hi Experts,

I want to upload certain type of DMS documents created in CV01n into Material master->Additional data ->Documents tab. Is their any Function module available in SAP for assigning the Document info record details to the Material master. Kindly share your valuable suggestions here.

With Kind Regards,

-RK

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi RK,

with BAPI_DOCUMENT_CHANGE2 you can change a DIR. In table ObjectLinks you can link a material to the DIR.

regards Iring

Answers (1)

Answers (1)

christoph_hopf
Advisor
Advisor
0 Kudos

Hi,

I would recommend you to use some DMS BAPIs like DOCUMENT_CHANGE2. Here you can add an object link to the necessary material master.

Please see the SAP note 766277 which contains a complete documentation on all DMS BAPIs.

Further keep in mind that you always need a BAPI_TRANSACTION_COMMIT afterwards to realiste the changes of the DMS BAPI.

With the following BAPI sequence you should be able to create correct object links between document info records and material master:

BAPI_DOCUMENT_GETDETAIL2 - obtain all existing document data for the document info record

BAPI_DOCUMENT_CHANGE2 - enter the material master key in table ObjektLinks

BAPI_TRANSACTION_COMMIT - realise changes of CHANGE2 BAPI.

Best regards,

Christoph

P.S.: Please reward points for useful information.