WF_DOC or SOFM to document in DMS.
Hello all.
I have a workflow that at some point has an instance of a workflow document (MS Word), Object type WF_DOC. It is possible to convert that to a SOFM object instance.
I want to be able to create a document in DMS and place this MS Word file in the DMS document. It is possible to use function module BAPI_DOCUMENT_CREATE2 to create documents in DMS, but this function module expects that any files that will be part of the document, come from a local or network drive.
Any ideas?
Thanks
Lande
Just for the record, I will give the highlights of the way the problem was solved.
I did not find a way to checkin the word file in WF_DOC format into the DMS document. I had to save it in a local drive and use this saved file to checkin.
1. Get the contents of the file in WF_DOC format using SWUO_GET_DOCUMENT_CONTENT.
2. Prepare table with binary contents of Word document
FORM prepare_contents .
DATA: w_contents TYPE LINE OF solix_tab,
w_target TYPE sdokcntbin.
LOOP AT lt_contents INTO w_contents.
MOVE w_contents-line TO w_target-line.
APPEND w_target TO lt_target.
ENDLOOP.
ENDFORM. " prepare_contents
3. Download file to local drive using METHOD cl_gui_frontend_services=>gui_download
4. Create the DMS document using BAPI_DOCUMENT_CREATE2
5. Check in the file in the local drive using BAPI_DOCUMENT_CHECKIN2
6. Delete the file in the local drive with METHOD cl_gui_frontend_services=>file_delete.
Similar Messages
-
Document in DMS can not be printed using FM CVAPI_DOC_VIEW
Hi Experts,
We've been using FM CVAPI_DOC_VIEW in the program to get the document in DMS and set value of import parameter 'PF_APPTP' to 3 to make the document to be printed.
But after our system upgraded to ECC6.0, the document could not be printed, only displayed in the screen.
Could you please tell me anything has changed to cause the issue?
Thanks for your time.
AnnaI already found the reason.
Thanks -
Check in new documents in DMS with specific access permissions
Hi,
we have an RFC which creates new documents in DMS.
This calls one after another these FBs:
- CVAPI_DOC_CREATE
- CVAPI_DOC_CHECKIN
- BAPI_DOCUMENT_CHANGE2 for a additional classification of the new document
Now we have a new request from our customer: to give the document specific access permissions.
We try the following:
- manually check in a document template with the necessary permissons.
- the permissions are given in a classification ("O,MW-T-D*,IB,02/03/52/53")
- This is named "authority characteristic" and is checked somewhere else, I do not really know how this works in detail ( but it works)
- check in a new document with a reference to the template and in expectation that the new document has the same classification and therefore the same access permissions
- If I do this manually in CV03N is does work
- We do this with CVAPI_CHECK_IN_WITH_TEMPLATE - but this FB does not copy the classification ( only the description and the attached original documents , and the documentnumber of the new document is an mandatory parameter which is not allowd in our case since we use internal creation of document numbers)
My question is: Is this a possible way to create new documents with specific permissions
Is there a possibility to give the permissions to the documenttype instead of give them to every single document of this documenttype ?
Thanks
KerstinMy guess is that at some point you propagated the ACL entry for "everyone deny delete" to all your folders and sub-folders and their contents by selecting Apply to All in a GetInfo window. Try doing a search in the Leopard forums for
ACL chmod
and you'll find a whole raft of discussions about the problem and suggestions for fixes.
Francine
Francine
Schwieder -
Best practice for securing confidential legal documents in DMS?
We have a requirement to store confidential legal documents in DMS and are looking at options to secure access to those documents. We are curious to know. What is the best practice? And how are other companies doing it?
TIA,
Margie
Perrigo Co.Hi,
The standard practice for such scenarios is to use 'authorization' concept.You can give every user to use authorization to create,change or display these confidential documents. In this way, you can control access authorization.SAP DMS system monitors how you work, and prevents you from displaying or changing originals if you do not have the required authorization.
The below link will provide you with an improved understanding of authorization concept and its application in DMS
http://help.sap.com/erp2005_ehp_04/helpdata/en/c1/1c24ac43c711d1893e0000e8323c4f/frameset.htm
Regards,
Pradeepkumar Haragoldavar -
Updating (CHECKIN) a document in DMS
I have opened an existing document from DMS (from SAP database) using Office Integration(OI) into an URL. I then open a OI Document on that URL and replace a part of the Word document using the Word Interface. Now I am saving this changed document back to the URL with:
CALL METHOD document->save_document_to_url
EXPORTING
no_flush = ' '
url = l_url
user_info = ' '
data_type = ' '
data_subtype = ' '
IMPORTING
error = error
retcode = retcode
CHANGING
document_size = l_docsize.
That seems to work fine because when closing and releasing the OI document and opening again with the OI method open_document usinf the same URL I see the correct changed document. So I am quite sure that the URL contains the correct data.
Now my problem: I am trying to checkin the document again to the DMS and the methods run without error but in the DMS the old version of the Word file remains. What am i doing wrong?
ps_doc_file-url = l_url.
ps_doc_file-fileno = '1'.
ps_doc_file-dttrg = 'SAP-SYSTEM'.
ps_doc_file-dappl = 'WRD'.
ps_doc_file-filename = XXX'
ls_cin_def-replace_file = 'X'.
ls_cin_def-content_provide = 'URL'.
CALL FUNCTION 'CV120_DOC_CHECKIN_FROM_URL'
EXPORTING
ps_cin_def = ls_cin_def
pf_storage = 'SAP-SYSTEM'
ps_doc_file = ps_doc_file
PS_FRONTEND =
TABLES
PT_DRAZ =
PT_COMPONENTS =
ptx_drao = lt_drao
PTX_DRAOZ =
PTX_ARCHIVE_CONN =
CHANGING
ps_draw = ps_draw
PS_AUDITS =
PS_PHIO =
EXCEPTIONS
error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.Seems like i cannot paste the complete code with correct line breaks. From a certain number of characters onwards all line breaks disappear. Sorry cannot display the code here. Have to cancel my question.
Sensational editor
Edited by: SamCooke on May 20, 2009 1:26 PM -
Hello,
does anyone know how to get the document from DMS to a local drive, while using VB Code (with SAP Connector) or .NET?
I tried to use the 'CVAPI_DOC_CHECKIN' but it didn't work.
maybe it's the wrong function to use...
I've also tried to examine the 'CVAPI_DOC_GETDETAIL' but got an error.
does anyone has a sample code in VB or .NET to get the document from a DMS to a local file?Try BAPI_DOCUMENT_CHECKOUTVIEW2.
Remember to reward points if this solves ur problem. -
Type of the document the DMS & individual repository?
Whether it is possible to define for each type of the document the DMS individual repository on Content Server?
try again
-
Save/Print document from DMS with Office 365
Dear All,
We are on ECC 6.0 EHP 4 of SAP. When a word document attachment is opened in DMS (CV03N) from a PC having locally installed Office 365. The document is opening up in office 365 interface inside SAP. Which is good, but we are unable to save the document on to local PC. Upon clicking the File menu, i suppose word tries to bring an additional view instead of a drop down, which was the case with earlier versions. I think this is causing the problem. Can any one suggest how to save and print documents from DMS with locally installed Office 365.?
We have figured out a work around to bring up the 'Save As' and 'Print' functionalities on to quick access tool bar. Using these shortcuts we are able to save the document but not print.
Thank you.
Regards,
KartikDear Ms. Mohanapriya,
We are quite happy with the existing DMS and our intention is not to change the existing architecture. Well, now we are able to open the document and have a workaround to save to local PC. And once the document is saved to PC users are able to print.
Now we are looking for a solution to enable file menu of Office 365 within OLE container of SAP.
Regards,
Kartik -
Cannot print preview a excel document Via DMS
Hi,
When we go to CV02n/CV03n and click on 'Originals' Tab and double click the excel document, we can see the excel document within DMS. If we click the Microsoft Office button and go to Print we do not see the 'print preview' highlighted.
Is there any setting in Micrsoft or DMS
Thanks and regards
Shahnawaz MohammedHi Shahnawaz,
SAP DMS standard features not supporting preview function. You can use page set up to make adjustments.
Regards,
Ravindra -
Create a Document in DMS and attach a file coming in binary format
Hi to all,
I have to create a new document in DMS (trx: CV01N) with an attachment but this attachment is a pdf file in binary format. Can I use bapi "BAPI_DOCUMENT_CREATE2"? It support binary files in input or I have to convert files in someway? Or I have to use another BAPI?
I'm using an r/3 4.6c and I know that it is a big limit.
Please, I need help.
Thank you very much in advance,
EnricoThat assumes two things:
1. That Apple would have let Microsoft have access to its file format.
2. That Microsoft would want to spend the time and trouble to write filters for file formats that Apple can't be bothered doing for its own software.
Peter -
MIGO- DISPLAY GR - ATTACH PDF DOCUMENTS USING DMS.
Dear SAP Experts,
We have requirement of attaching the PDF document to material document using DMS. So that in future if we see the GR in MIGO, we can view that PDF. Also we don't want deletion of this PDF once attached to material document.
We found that in DMS attachement facility to material document is not available. In Purchase order screen ME22N we can see the DMS document button, but in MIGO this DMS attchment Icon is not there. Service for object facility is available but we don't want this facility.
Please suggest how to achieve this.Hi,
Use archivelink for attaching documents to MIGO . The documents attached to MIGO can be displayed by opening the respective Material documents.
As far as deletion is concerned you can make use of the authorization objects in Archivelink to achieve this.
Regards
Abhishek -
Mass downloading of Documents from DMS
Dear SAP gurus,
How to download the multiple documents from DMS in one step?
Thanks in advance.
VenkatDear Prasanna,
We have to download all the document info records (along with Documents attached to it) and upload them to new server.
How should go about this?
Thanks in advance.
Venkat -
How we can View and Edit an 2D / 3D document from DMS
Hi..
How we can View and Edit an 2D / 3D document from DMS?
What are the system requirement?
SandipHow we can View and Edit an 2D / 3D document from DMS?
Use ECL viewer to view 2D/3D files.Markup and redlining features are useful for adding comments.Note that you cannot modify the native application using ECL viewer.
For editing 3d files,the particular CAD software would have to be available on the local system and necessary DC20 settings specified.
What are the system requirement?
Ensure ECL viewer is installed.
Regards,
Pradeepkumar Haragoldavar -
Dear Sir
I have to attached my ISO document in DMs with hierarch level
Apex document>Quality manual>Departmet Manual>format in this manner i want to maintain my document
Awaiting foe your valuable answer.
regards
kunalDear Kunal,
first of all it is necessary to create three document info records. This can be done in transaction CV01N. For storing originals I would recommend you to choose a document type which uses the KPRO storage concept. You can search for such a document type in transaction DC10 and check which type has set the flag 'Use KPRO'.
Back to CV01N. At the 'Document Data' screen you can add original files by using the 'Create' button at the bottom of the screen. This button looks like a white sheet of paper.
After you entered the document file path and choose a suitable workstation application the original file will be added to the document info record. If possible you can also add all three original also to one document info record if you store them in a KPRO storage category.
Otherwise you have to create one document info record per original file. If you have created all three document info records, you can go to transaction CV11 to create a document BOM. In transaction CV11 you have to choose one document info record which should be the header of this BOM. On the following screen you can add the other two document info records as items. This way a document BOM will be created.
In case you want to create a document hierarchy which is slightly different, you also need three document info records. But then you do enter transaction CV02N. In transaction CV02N you will find an area called 'superior document' on the first tab. Here you can enter one document number, type, part and version. If you enter a document here you create a hierarchy like
Superior document info record
> sub-document info record
And this can be done for each involved document info record. But there can be always only one superior document for one document info record.
I hope this information could be useful for achieving the desired behavior.
Best regards,
Christoph -
Upload documents to DMS content server from other tcodes like MIRO
Hi Experts,
How can I upload my document to DMS content server through transactions like MIRO.Hi Sunil,
You can't uplaod from different t-code, you need to upload it thru CV01n only. One exception is there which is BDC t-code SHDB for batch uploading. But from other t-code you can't uplaod a document into SAP DMS content server.
One another option is create a z-tcode for the same. i.e. for MIRO create ZMIRO.
In statndard environment you can attache but it will not saved in content server. Only thru CV01n it can be done.
I hope this will resolve the query.
Regards,
Ravindra
Maybe you are looking for
-
hello, I am developing web application with subdomain domain: www.mydomain.com subdomain: cms.mydomain.com in the subdomain is an a xx.jsp and I try to get I get the absoulute path in it String myPath = request.getSession().getServletContext().ge
-
Special characters in Appraisal Print out
Hi Friends, I'm facing some problem related to printing of appraisal forms in OSA (MBO). There are some errors (letters, and spacing...) that are not visible when viewing the appraisal in the portal, where as they appear in the pdf file and printout.
-
Query 1)I am creating table in oracle 8.1.7 as Create table tablea (fielda INTEGER NULL Can anybody tell me what is max number of digits that can be stored in fielda.? I mean INTEGER stands for what in terms of NUMBER datatype. Query 2)I would be pla
-
Look & Feel Project Help is Needed Pls...!
Hello all... Would any one kindly give me the steps of installing this project library i have: OS: Windows XP Sp2 Engine:Oracle 10G Developer Suite : Forms[32 Bit] Version 10.1.2.0.2 i have already downloaded the project ... but actually i afraid to
-
Long "lag" after taking a screenshot.
I press CommandShift3 to take a screenshot of the entire screen. By default, it goes to my desktop, as it should. The problem though.. Right after pressing the three keys, I hear the camera-shutter sound effect for the screenshot, but after that for