Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Document info records

Former Member
0 Likes
4,718

Hi friends,

I have a requirement to print all documents linked (DMS) to my material. How can I do this?

Thanks in advance

Hi friends,

I have a requirement to print all documents linked (DMS) to my material. How can I do this?

Thanks in advance

7 REPLIES 7
Read only

Former Member
0 Likes
2,757

Hi,

I am assuming you are trying to print a list of all documents linked to your material and not trying to print the actual documents. To get a list of documents linked to your material you can use database view M_CV01O which is the "Generated View for Matchcode ID CV01-O". Select the M_CV01O records with DOKOB = "MARA" and OBJKY = your material. You can write an ABAP report for this or just use SE16.

You can also use transaction CV04N -> choose the Object Links tab -> then choose the Material Master tab and enter your material.

Regards,

Jamie

Edited by: James Gaddis on Mar 10, 2008 12:18 PM

Read only

Former Member
0 Likes
2,757

Drawing master data in stored in table DRAW. Drawing Links are stored in table DRAD, with a DOKOB of MARA for materials, and a OBJKY equal to the material number.

This makes the same assumption that you wan toprint the LIST of documents, and not the documents themselves. It is hard to tell by your question.

Edited by: David Knittle on Mar 10, 2008 12:20 PM

Read only

0 Likes
2,757

Correct... database view M_CV01O joins together tables DRAD and DRAW.

Read only

Former Member
0 Likes
2,757

Hi Thanks for your answers, I want to print the document itself..

Read only

0 Likes
2,757

you can use the data in DRAW to determine where the actual document is, and print it from there... I am not sure how you would trigger the frontend printing, but we often grab the documents from the vault (with open dataset, etc) and attach them to emails, upload them to websites, etc. you need to know the vault info (where in the server the documents are, based on the vault ID in the DRAW table and on customizing), and the extension (in the draw table), and the actual name as stored in the vault (hey!, in the draw table).

just a quick scan of SE84 shows a function module called DOCU_PRINT...

If not that check out others in the SDOC function group

I have never tried this, though, so i cannot say if it'll work.

Edited by: David Knittle on Mar 11, 2008 7:42 AM

Read only

0 Likes
2,757

Hi David,

My documets are PDF docs and stored in Content server

Read only

0 Likes
2,757

I just looked at DOCU_PRINT... it is not right.

I just got one to print using DOCUMENT_SHOW_DIRECT, with the print option

Hope this helps