How to attach HTML content to DMS Document?

Hello,
I have a requirement in which I have to make a HTML file which contains the current Dispaly on screen, I have to attach this HTML file inside the DMS document.
For this I am doing following steps.
1 ) FM SAVE_LIST
2) FM WWW_HTML_FROM_LISTOBJECT, form this FM I am getting the Internal table which is containing the HTML content.
         a) I am converting this internal table content ot first in XSTRING using FM SCMS_TEXT_TO_XSTRING
         b) And XSTRING to Binary format.
3) After this I am creating a DMS cocument using FM CVAPI_DOC_CREATE
3) After DMS document creation I am using FM CVAPI_DOC_CHECKIN to attach HTML file content to this DMS Document.
Everthing seems to be ok, but when I am using CV03N to view the document, its showing the HTML file bu not showing the original content(HTML)
Please help to find the problem, Is there any other way from which I could CHECKIN HTML content directly inside DMS document in HTML form without converting it to binary.

HI,
I have not understood the requirement.
As far as I know, HTML need not to be checked in.
Refer also link below
Re: some questions on SAP DMS
May be useful in choice of FM.
Regards
Nitin

Similar Messages

  • How to insert HTML content in a IVIEW

    Hi,
    How to insert HTML content in a iview any body help me with the solution.
    Thanks & Regards
       kiran.B

    Hi,
    You can just spit out HTML in the request object:
    request.write("<B>Whatever</B>");
    Or if you have a single HTML page, you might want to just add it to KM and create an iView from it.
    Hope this helps.
    Daniel

  • How to print HTML contents

    can anyone tell me how to print HTML contents...i needed it urgently
    Thanks

    actually i have a print button on html page....when i click on print button using window.print(); the html page gets printed...but along with it print button is also printed...i dont want print button to be printed...
    this is the issue...
    please resolve it
    Thanks a lot...

  • How to display the contents of a document set on a page?

    I want to display the contents of a document set (that contains both folders and files) on a page (with the same structure as they are in the document set like folders and files). How to achieve this?
    I tried content search webpart but it is of no use as it displays the flat list instead I need folders and files as they are present in the document set
    I tried document set contents webpart but as it doesn't accept any connection, it is not of much use.
    I will be glad if you have any pointers for me in this regard.
    Regards
    Kesava

    Hi Kesava,
    According to your description, you might want to display the content in a document set with its hierarchy.
    How about using
    Page Viewer Web Part to display the page of the corresponding document set? This would be a non-code solution I would recommend.
    More information about Page Viewer Web Part:
    https://support.office.com/en-nz/article/Page-Viewer-Web-Part-e364436c-0ec4-4819-acac-1982b3525531
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • How to display html content with image in Adobe Flash and Flex mobile project?

    Hi,
      I have a html content with image in it. How to display it in Adobe Flash Builder and Flex mobile project? Which control needs to be used for this?

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • How to feed html content in Mail App from Indesign

    Anyone knows how Martha Stewart Everday Food Magzine achieved launching the ipad Mail App filled in with HTML body content directly from their digital magazine?
    At the end of each recipe, there is an email icon displayed, and when you click on it ipad mail launches with html content filled in and ready to share with a friend.
    Please help
    Stanly

    Please refer to this, "Scenario eMail/a: Share your article text as eMail"
    http://digitalpublishing.tumblr.com/tagged/Working_in_InDesign
    Hope it helps.
    shimoawazu

  • How to Edit html content of My First Days in ESS

    Hi All,
    My requirement is to change only the html content displayed in My first Days under Life and work event tab.
    Currently it shows content provided by sap.
    e.g ; it displays "Welcome to xyz_Company_name  "  and some dummy content.
    where as we want to customize it as per client requirement i.e. to  display client specific policies and     
    name etc.
    Please help to solve the problem.
    Thanks,
    Zaid

    s.r.e.e wrote:
    I am reading this html file in java class file and displaying the template as it is in jsf page, now when user clicks on edit button one pop up should be opened and entered data should be displayed at appropriate place in layout, on clicking clear content should be cleared.
    Can anyone help me how to write the logic to open a popup using html button instead of a4j:commandbutton in jsf and how can I bind the values to backing bean list without using a4j:repeat using normal html template
    I'm not sure you are going to get any binding happening without a lot of cajoling.
    The real question is why are you trying to write (hardcode?) HTML in a Java class that needs to interact with JSF components?

  • How to display html content in flex hero..

    i need to display html content using flex hero for balckberry playbook..i could not find a component for it..i have tried with spark text area by setting its html text property via MobileTextField. bt i need a webview to load html content to execute javascript and all....Is there any component for it???? Please help....

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • How to attach more than 2 original document in a DIR?

    Hello all,
    My requirement is that, I need to attachminimum 5 original documents in a Document Info Record (DIR). However, when I attach the more than 2 documents system is showing a n error. More than 2 documents is not possible.
    1. Can we attach more than 2 original doc. in a DIR??
    2. If Yes, Where I need or do the settings?? (Or) Is it SAP standard???
    Regards
    Prabu

    Dear Prabu,
    please check in transaction DC10 if the flag 'Use KPRO' is set for the used document type. If you use the KPRO storage logic you can add an unlimited number of originals. In case this flag is not set in DC10 then only the former storage types (archive, vault, SAP-SYSTEM) are available and here you have a limit of only 2 original files per document info record.
    Best regards,
    Christoph

  • How to insert HTML content directly in code from JEditorPane ?

    I'm developping an HTML Editor on a JEditor Pane.
    The problem is that a blank is not interpreted, and i've tried to add "& n b s p ;" in the code from a KeyListener added to the VK_SPACE event, or to define an Action to add HTML Spaces. But i didn't achieve to...
    I just want to insert a "& n b s p ;" in the HTML code of the document displayed in the JEditor evry time the SpaceBar is pressed.
    I've tried InsertContentAction() :
    Not a solution :It inserts " & n b s p ;" in the text (it appears litteraly).
    I've tried InsertHTML. But it needs a tag parameter, and in my case, i need no tag
    to be inserted.
    I'm stuck since days... Any help woul be extremely appreciated...

    The code I now have is:
    TextAction actInsertNBSP = new TextAction("insert-space"){    
    public void actionPerformed(ActionEvent evt){
    //Where is the cursor now
    int intInitialCaretPos = text.getCaretPosition();
    try{       
         //Make HTML document to add the html code
         HTMLDocument htmldoc = (HTMLDocument)text.getStyledDocument();
         //Get document input attributes before insert
         AttributeSet atr = kit.getInputAttributes().copyAttributes();
         //Insert tag
         kit.insertHTML(htmldoc,intInitialCaretPos,"<b>\240</b>", 0, 0, HTML.Tag.B);
         //Set stored attributes to input attributes
         kit.getInputAttributes().addAttributes(atr);
         //Set cursor on right position
         text.setCaretPosition(text.getCaretPosition());                    
         }catch (Exception exc){
              exc.printStackTrace();
    KeyStroke kstSpace = KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0);
    text.getKeymap().addActionForKeyStroke(kstSpace,actInsertNBSP);

  • How to block attachment deletion in a DMS document

    Hi gurus,
    Does anybody knows how to block some users to delete the attachment in some DMS types? Is there any configuration that can be done to control this?
    Many thanks!
    Renan

    Hi Renan,
    in the standard each user who is able to edit the document info record (enter CV02N) is able to delete the attached originals.
    However a user is not able to delete originals if the document is set to a status of status type 'S' (locked status). Within this kind of status it is not possible to delete originals and change some other document data.
    So you can also try to create a authorization profile where some users are only allowed to enter document info records with a non-locked status. So you avoid that some users are able to enter document info records which are not set to a locked status.
    For this please see the WIKI page under https://www.sdn.sap.com/irj/sdn/wiki?path=/display/plm/caDMS-AuthorizationObjects where you will find all the existing DMS authorization objects.
    Maybe object C_DRAW_TCS or C_DRAW_TCD could be useful for this issue.
    Best regards,
    Christoph
    P.S.: Please reward points for useful information

  • How to search text content of scanned Documents in DMS

    hello,
    i need to scan the legacy document and put it in to DMS.
    After that i want to search the scanned document using the Trex search.
    I want to know how to achive it as scaaed document are as like images and we can not search the text in images.
    Any helpfull ideas are welcome..
    regards
    shiv

    Hi Alfredo,
    Thanks for reply..Will you please explain in brief what are the  OCR program and workflow.
    Will you please send me any docs on [email protected]
    Thanks
    shiv.

  • How to store email content as a document variable?

    Hi there,
    I have a question where I need to store the content of an email-service into a txt-file. I guess I should somehow put it in an document variable, how can this be done?
    Thanks in advance
    Sincerely
    Kim

    Kim
    I would suggest one of the following two methods:
    1) Prior to sending the email with the SendEmail service, build the email contents via SetValues and using String process variables. Have one String for the subject (i.e. sSubject) and one for the body (i.e. sBody) and build your content appropriately. You can use multiple SetValues or you could do it all in one. After your email's body is done being built, use a SetValue to set it to a Document variable (i.e. docBody = sBody). You can then use this Document variable as the input to your SendEmail service's body parameter. What you have then is a Document containing all the content of the email's body that you can now write to the filesystem, archive to a repository or do whatever you'd like with. Please note that if you are using HTML formatting for the email's body that your Document variable will literally have the HTML code in it. This means that if you, say, archived the Document to the file system as a .txt and then opened it, you would see all the content but it would have all the HTML code with it. To get around this, you might consider archiving the email contents as a .htm or .html file. This will cause the file to open in the system's default browser for viewing but it will also only display the actual content formatted per your HTML code.
    One other thing to note is that if you wanted the subject to be part of the archived file's contents as well, you could simply do a String concatenate of the body String (sBody) to the subject String (sSubject).
    2) If the emails you are sending go to the same email box(es) each time, you might consider building a second orchestration that uses an Email endpoint to watch the box(es). With this, you could monitor those inboxes and handle incoming messages appropriately.
    Please do let me know if you have any questions.
    Josh Boyle
    [email protected]
    Cardinal Solutions Group

  • How to attach PDF files to invoice document from ECM.

    Hi Gurus,
    We have one requirement in that around three million  invoice pdf files are there in ECM system. we need to attach those pdf files(GOS) to  existing invoice document in SAP.as we searched in SCN we found one function module ARCHIVE_CONNECTION_INSERT. for this  function module we need pass mandatory import parameters as SAP object ID ,Document ID and some other variables(object type, doc.type , repository ID).
    My problem is how can I find the value of  respective SAP object ID and Document ID  form ECM system. and how can I match the SAP object ID and Document ID.
    please  help on this.
    Thanks in advance!!
    Regards,
    Vigneshwar.D

    Hello,
    Check with Global document type is maintained for the PDF you are looking for in OAC2. You will find the Document type, for the respective object type, check in OAC3. Content Repository is the archiving ID. Search by the archiving ID.
    Regards
    Rakesh

  • How to put HTML content after the following java code in the JSP

    Hello Guys :),
    In the following jsp I force the user to download a file but I am not able to perform any action after I do this. I want to put some HTML code in this jsp at the end so that user has the option of doing other things after downloading the file.
    Any solution will be highly appreciated :)
    Thanks
    <%@ page import="java.util.*,java.io.*"%>
    <script language="JavaScript" src="common.js"></script>
    <%
    Hashtable hashTable = (Hashtable)session.getAttribute("platformAndSampleInfo");
    Date date = (Date)hashTable.get("date");
    String userName = (String)hashTable.get("userName");
    String dateString = date.toString().substring(0, date.toString().length()-9).replace(' ','_');
    dateString = dateString.replace(':','_');
    String fileExtension = (String)session.getAttribute("fileExtension"); //,getFileExtension(request));
    String outputFile = userName + dateString + fileExtension;
         File f = new File (outputFile);
         response.setContentType("APPLICATION/OCTET-STREAM");
         response.setHeader ("Content-Disposition", "attachment; filename=\""+ f.getName() + "\"");
    InputStream in = new FileInputStream(f);
         ServletOutputStream outs = response.getOutputStream();
              int bit = 256;
              int i = 0;
              try {
                   while ((bit) >= 0) {
                        bit = in.read();
                        outs.write(bit);
              } catch (IOException ioe) {
                   ioe.printStackTrace(System.out);
              outs.flush();
              outs.close();
              in.close();     
    %>
    <!--
    The following piece of HTML code is never reached
    -->
    <html>
    Want to display this
    <html>

    Thats odd.. try using out to print the character
    inst of creating the instance outs.. Maybe your
    overiding something.
    ex)
    char c='s';
    out.print(c);
    //the jsp will create the instance of out for you.

Maybe you are looking for