Ultrasearch API + get document content

Hi, i want to know how to get the content of an ultrasearch document because i,ve implemented a program to work with ultrasearch but i can't get the info that i need.
When i tried to get the description attribute of the document i got a ??? as a result.
Thanks in advanced.

Hi,
Did you check RFC Adresses in SM59 both of two systems.
May be different.
ibrahim

Similar Messages

  • To get Document content via RFC

    Hi forum,
    I have a small bsp-application to show documents for a material-number stored in the SAP-tresor (via ftp).
    The SAP-tresor is installed in the core-system, the WEB-AS is another server.
    I developed a remote-enabled function module called get_doc_content_rfc. This function module reads some customizing to get all values for calling the function module CV120_DOC_CHECKOUT_TO_TABLE.
    Now, when I call my get_doc_content_rfc in the core-system, I get the document content via the function module CV120_DOC_CHECKOUT_TO_TABLE. When I call my function module get_doc_content_rfc form the developer-system via RFC in the core-system, the function module CV120_DOC_CHECKOUT_TO_TABLE dosn't deliver the document content.
    In the debugger, I can see, the function module CV120_DOC_CHECKOUT_TO_TABLE opens a ftp-connection to the server with the tresor and then reads the document content. Do I use my function module get_doc_content_rfc in the core-sysem, the ftp-connect can be established. Do I use my function module get_doc_content_rfc via RFC to the core-system, the ftp-connection opend by the function module CV120_DOC_CHECKOUT_TO_TABLE gets a time out.
    Now, my question. what can I do, to get the document content via RFC from the core-system.
    Thank you for help
    Meinolf

    Hi,
    Did you check RFC Adresses in SM59 both of two systems.
    May be different.
    ibrahim

  • Getting the document content in a variable??

    Hi,
    How can I get the entire contents of a document into a string variable? I donot
    want to print the contents inline but rather have to get them in a variable. Using
    printDoc or printProperty tag?? I guess I will have to use printDoc but then how
    can I stop the contents from being displayed in the jsp and how can I put them
    in a variable??
    Please help me...
    Thanx.
    Prirua

    You should always double-check code put on the newsgroups, even if it's
    put there by me :)
    It probably should be at the beginning:
    <es:forEachInArray array="<%=docs%>" id="adoc"
    type="com.bea.p13n.content.document.Document">
    <%
         byte[] bytes = adoc.getContentBlock(0L, -1L);
    Notice 'byte[]' instead of 'bytes[]', the type specified as Document
    (Content doesn't have the getContentBlock() method, the sub-interface
    Document does), and the 'L's on the numbers to specify that they are
    longs to help the compiler find the correct method.
    Greg
    Prirua wrote:
    Hi,
    Thanx for your propmt reply. My code looks somethinglike this
    <es:forEachInArray array="<%=docs%>" id="adoc" type="com.bea.p13n.content.Content"
              <%
              bytes[] bytes = adoc.getContentBlock(0, -1); // retrieve all the content
              String enc = adoc.getPropertyAsString(null, "encoding");
              String str = null;
              if (enc != null)
                   str = new String(bytes, 0, bytes.length, enc);
              else // use VM default encoding
                   str = new String(bytes);
              %>
              <li>The document title is: <cm:printProperty id="adoc" name="Title" encode="html"
    />
         </es:forEachInArray>
    But it is giving me these two errors...
    C:\bea\wlportal4.0\applications\portal\MyPortal\WEB-INF\_tmp_war_portalDomain_po
    rtalServer_MyPortal\jsp_servlet\_portlets\__contentq.java:152: cannot resolve
    sy
    mbol
    symbol : class bytes
    location: class jsp_servlet._portlets.__contentq
    bytes[] bytes = adoc.getContentBlock(0, -1); // retrieve
    all the content //[ /portlets/contentQ.jsp; Line: 19]
    ^
    C:\bea\wlportal4.0\applications\portal\MyPortal\WEB-INF\_tmp_war_portalDomain_po
    rtalServer_MyPortal\jsp_servlet\_portlets\__contentq.java:152: cannot resolve
    sy
    mbol
    symbol : method getContentBlock (int,int)
    location: interface com.bea.p13n.content.Content
    bytes[] bytes = adoc.getContentBlock(0, -1); // retrieve
    all the content //[ /portlets/contentQ.jsp; Line: 19]
    ^
    2 errors
    Could you plz specify if I have to include some file or something ?
    Thanx.
    Gregory Smith <[email protected]> wrote:
    You will need to call the getContentBlock() method on the Document
    object to retrieve the bytes of the document's content. Then, you do
    whatever you need to with the bytes. When converting it to a String,
    you
    should be aware of double-byte-character encodings, and should check
    the
    Document's encoding metadata attribute, e.g.:
    <%
    bytes[] bytes = doc.getContentBlock(0, -1); // retrieve all the content
    String enc = doc.getPropertyAsString(null, "encoding");
    String str = null;
    if (enc != null)
    str = new String(bytes, 0, bytes.length, enc);
    else // use VM default encoding
    str = new String(bytes);
    %>
    In 8.1, the new <cm:getProperty> is able to retrieve the BinaryValue
    of
    a binary property of a Node.
    Greg
    Prirua wrote:
    Hi,
    How can I get the entire contents of a document into a string variable?I donot
    want to print the contents inline but rather have to get them in a variable.Using
    printDoc or printProperty tag?? I guess I will have to use printDocbut then how
    can I stop the contents from being displayed in the jsp and how canI put them
    in a variable??
    Please help me...
    Thanx.
    Prirua

  • Get original URL for Link to a Document content type

    Hello,
    I'm having a SharePoint doc library with ItemAdded event receiver attached to it and "Link to a Document" content type enabled. My general question is:
    How to get URL that the link points to?
    I'll show you how I'm trying to achieve that:
    SPWeb parentWeb = properties.Web;
    if (properties.ListItem.ContentType.Name == LinkContentTypeName)
    object urlFieldValue = properties.AfterProperties["URL"];
    if (urlFieldValue != null && urlFieldValue.ToString() != String.Empty)
    // continue
    But I always get null so I can't even get inside IF statement. I've tried to install ItemAdded event receiver as synchronous, but it didn't make a difference. I'd appreciate any ideas.
    Regards
    Tomasz

    This is not very convenient solution, because ItemUpdated can be executed more than once. However this certainly will work, so I'll accept this as a workaround. Actually I've found another one. I'm parsing link aspx file and I'm getting the URL
    from mso:URL tag:
    <%@ Assembly Name='Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' %><%@ Register TagPrefix='SharePoint' Namespace='Microsoft.SharePoint.WebControls' Assembly='Microsoft.SharePoint' %><%@ Import Namespace='System.IO' %><%@ Import Namespace='Microsoft.SharePoint' %><%@ Import Namespace='Microsoft.SharePoint.Utilities' %><%@ Import Namespace='Microsoft.SharePoint.WebControls' %><html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><Head> <META Name='progid' Content='SharePoint.Link'><!--[if gte mso 9]><SharePoint:CTFieldRefs runat=server Prefix="mso:" FieldList="FileLeafRef,URL,_x0043_C1,KitId,ItemKey,Suffix_x0020_Code"><xml><mso:CustomDocumentProperties><mso:URL msdt:dt="string">http://serverUrl/sites/arrangement1/Shared Drawings/test, test</mso:URL><mso:ContentType msdt:dt="string">Link to a Document</mso:ContentType><mso:File_x0020_Title msdt:dt="string">Winding A Assembled</mso:File_x0020_Title>
    <mso:Revision_x0020_Number msdt:dt="string">-</mso:Revision_x0020_Number>
    <mso:Page_x0020_Size msdt:dt="string">A2</mso:Page_x0020_Size>
    <mso:ContentTypeId msdt:dt="string">0x01010A0082704B66E8B222478AF2E379D8A2FFB9</mso:ContentTypeId>
    <mso:ItemKey msdt:dt="string">1</mso:ItemKey>
    </mso:CustomDocumentProperties></xml></SharePoint:CTFieldRefs><![endif]--></head><body><form id='Form1' runat='server'><SharePoint:UrlRedirector id='Redirector1' runat='server' /></form></body></html>
    Regards
    Tomasz

  • How do I get the content to match when exporting pages document to word?

    How do I get the content to match when I export a pages document to word format?

    You simply cannot get an absolutely identical export, in any app to any app. Exporting from one app to another means converting/parsing code, therefore the result cannot be identical. In order to have control over your final result, use PDF export. If you need a closer compatibility with Word, use OpenOffice or LibreOffice. I would not bet that Word for Mac would presserve identical page setting if file is created in windows, or vice-versa.

  • Cannot delete Document Content Type. Getting error "Document Content Type Still in use" powershell, sharepoint 2013

    not able to delete "Document" content type from a library. I have a custom content type. I have added the custom content type to all the items of library. also, i have added the custom columns from "Document" content type to my custom
    content type. Still cannot delete the "Document" content type. I am doing the same process in different site collections and different libraries. But not able to delete in a few say- 10 in 100. Get the error - "Document content type is still
    in use"

    Hello 
    Here you go
    http://blog.octavie.nl/index.php/2012/09/14/error-the-content-type-is-in-use-explained
    https://social.technet.microsoft.com/Forums/en-US/e81020e3-2c12-4f39-a2f4-f1fd88ba6547/content-type-is-still-in-use-on-document-library
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How can I make sure under Windows 8 in Explorer to get a real pdf document content file miniature and not the Adobe logo miniature?

    This is not a typical Windows 8 problem, I had the same problem with all my previous Acrobat versions on all previous Windows versions.
    How can I make sure that when consulting pdf files via Windows explorer the pdf file is represented as a genuine miniature of the document content itself and noit just a document icon with Adobe logo?

    Hi Josialaers,
    Turn the 'Preview Pane' ON and you should be able to see the content of the pdf when clicked.
    When 'Show preview handlers in preview pane ON' is checked in 'Folder Options' of Windows Explorer.
    Regards,
    Rave

  • Get the contents of the project documents

    Hi Experts, I have a requirement where an external system wants to make use of the contents of my operation project documents' content. Could you suggest any BAPI for the same ?
    Regards,
    Vijayalakshmi

    Dear Vijaylakshmi,
    If the document is attached to a task then you can use  BAPI_BUS2175_DOCUMT_GET_DETAIL. You have to pass the task and document GUID to the BAPI and in retun structure ET_DOCUMENT_CONTENT the document is output as a raw string.
    The further details are in FM documentation.
    Regards,
    Debaranjan Hazarika.

  • System.IO.FileNotFoundException: The Web application at ..not found - when getting document versions in a doc lib

    i have created a    asmx file using vs 2012 4.5 framework, and published to my d:\  drive  and mapped to a  iis  web site
    but when i trued to consume this from a another web appln, it throws me the below error:
     System.IO.FileNotFoundException: The Web application at http://srvr:4000/sites/mysitecollec could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a
    new request URL mapping to the intended application.
       at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId,
    Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String&
    appSiteDomainId, Uri& primaryUri)
       at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken)
       at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)
       at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
       at FetchlatestDocDet6Jan.FetchLatestDoc6Jan.<>c__DisplayClass1.<FetchLatestDocVer>b__0() in d:\PublishWSFetchLatestDoc6Jan.asmx.cs:line 41
       at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()
       at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
       at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
       at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
       at FetchlatestDocDet6Jan.FetchLatestDoc6Jan.FetchLatestDocVer(String fileName, String processID, String subProcessId) in d:\PublishedWS\FetchLatestDoc6Jan.asmx.cs:line 35
    [WebMethod]
            public DataTable FetchLatestDocVer(string fileName,string processID,string subProcessId)
                DataTable dtFiles = new DataTable("File Details");
                dtFiles.Columns.Add("File Name");
                dtFiles.Columns.Add("File Version");
                dtFiles.Columns.Add("File Url");
                SPSecurity.RunWithElevatedPrivileges(delegate()
                    // implementation details omitted       
                //using (SPSite mySite = new SPSite(siteUrl))
                using (SPSite mySite = new SPSite("http://srvr:4000/sites/mysitecoll"))
                    using (SPWeb myWeb = mySite.OpenWeb())
                        SPList oList = myWeb.Lists["TEST DOC LIB "];
                        SPView oView = oList.Views["All Documents"];                  // SPQuery oQuery = new SPQuery(oView);
                        SPQuery oQuery = new SPQuery();
                        string query = "<Query><Where><And><Eq><FieldRef Name=Title/>" + "<Value Type=Text>" + fileName + "</Value></Eq>"
                                        +"<Eq><FieldRef Name=ProcessID /><Value Type=Text>"+processID+"</Value></Eq>"
                                        +"<Eq><FieldRef Name=SubProcessID /><Value Type=Text>"+subProcessId+"</Value></Eq>"
                                        +"</And></Where></Query>";
                        oQuery.Query = query;                    
                        oQuery.ViewAttributes = "Scope=\"Recursive\"";
                        SPListItemCollection collListItemsAvailable =
                         oList.GetItems(oQuery);
                        foreach (SPListItem oListItemAvailable in collListItemsAvailable)
                           // Console.WriteLine(oListItemAvailable["Name"].ToString());
                            SPFileVersionCollection versions = oListItemAvailable.File.Versions;
                            // If the file has versions, loop through all of the versions
                            if (versions != null)
                                if (versions.Count > 0)
                                    foreach (SPFileVersion version in versions)
                                     //   Console.WriteLine("Version Info:: {0}, {1}", version.VersionLabel, version.Url);
                                        DataRow dr = dtFiles.NewRow();
                                        dr[0] = oListItemAvailable["Name"].ToString();
                                    //Added data to the datatable
                                else
                                  //  Console.WriteLine("Version Info:: {0}, {1}", oListItemAvailable.File.UIVersionLabel, oListItemAvailable.File.Url);
                                    DataRow dr = dtFiles.NewRow();
                                    dr[0] = oListItemAvailable["Name"].ToString();
                                    dr[1] = oListItemAvailable.File.UIVersionLabel;
                                    dr[2] = oListItemAvailable.File.Url;
                                    dtFiles.Rows.Add(dr);
                return dtFiles;

    "The Web application at http://server:port/ could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing
    content, the system administrator may need to add a new request URL mapping to the intended application"
    Here are the most common reasons this error can occur:
    The code is executed on a different machine - The SharePoint object model (except the Client API) requires to be run on the SharePoint server itself. It is not possible to run the application on a server which is not within the same
    SharePoint farm the code is trying to access.
    Insufficient Rights on the site collection - The code is executed in context of an account which does not have read permission on the site collection
    Incorrect Url being used - Verify that the site works correct in a browser and double check that the server is correct registered in the AAM settings
    Incorrect bitness - The SharePoint object model needs to be executed with the same bitness as the operating system. That means you cannot use the SharePoint object model in a 32-bit application if the Operating System and SharePoint
    are installed as 64-bit version. Ensure to compile the project using the correct bitness (64-bit on a 64-bit machine vs. 32-bit on a 32-bit machine)
    Incorrect .NET framework version -  Ensure that the project is configured to use .NET 3.5. .NET 4.0 cannot be used with the current versions of SharePoint
    from Mr.Stefan's post, i have checked with my code : as per the first reason: (1)
    i am running the code from my  SP 2013 machine only. but the only difference is that, i am using a  asp.net web appln and have added a SP references of 15 hive and trying to make a  lists.asmx file.
    also checked the reasons
    2,3 ,4 ,5 all are  fine from my end.
    here just wanna know: abt the below approach : whether its Correct or NOT.
    create a plain GetDocsWebService.asmx file from asp.net 3.5 framework and  write the code for retrieving items from doc.lib using SPSite, spweb, splists, xmldocument and retrieve a datatable . [[[ i have added a web reference of sp 2013 microsoft.sharepoint
    dll from  isapi folder, in this GetDocsWebService.asmx project ]]
    i deployed this web service on my SP server's  new iis site, c:\inetpub\wwwroot\GETDOCSPUBLISH  site
    now, at present , am adding a  normal asp.net 4.5 web appln and add the  web reference of this custom web service and trying to consume.
    at this point am getting mulitpl errors: like
    1) platform not supported : am stuck with this error!!
    2) sometimes, am getting document not valid...<html> <head> document not valid........</html>
    for the above 2 errorrs, i still could not able to find a solution!!
    is it because, lists.asmx is not supported in sp 2013? we need to depend on rest-api/ecma/csom ?? 
    so my question is ,  what should be the correct ad most recommended approach  for reading doc lib/ splist  records/items from a  remote macihne.

  • How to get documents from SAP KM in java

    Hi Everyone
                    I want to get  the SAP KM data to a simple java class......I am able to get this with servlet but i want not a servlet but a simple java class that can get the Documents stored in SAP KM repository..................
    I am thinking of using any java Driver in some code like
    Class.forName ("com.sap.dbtech.jdbc.DriverSapDB");
                        String url = "http://host name :port";
                        Connection con = DriverManager.getConnection (url, "", "");
                        Statement stmt = con.createStatement ();
                   IUser serviceUser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
                   ResourceContext c = new ResourceContext(serviceUser);
                   IResource r = ResourceFactory.getInstance().getResource(RID.getRID("/documents/Public Documents/"), c);
                   System.out.println("Current user   "+r.getContext().getUser().getDisplayName());
                   System.out.println("Current user  : "+r.getContext().getUser().getDisplayName());
                   System.out.println("Access RID  : "r.getAccessRID().toString()"<br>");
    But the above code is giving an exception---java.sql.SQLException: No suitable driver
    Can anyone tell me the suotable Lava driver to access SAP KM repository..Or any simple java code that can connect to SAP KM...
    Waiting for Ur reply
    Thanks & Regards
    Rupesh

    I am not sure why you need a JDBC driver for doing that.. You can get it using the following itself. If you have a DB only repository, the underlying API of KM will make the DB connection for you and get the content.
    Here is what you should be doing
             IUser serviceUser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
             ResourceContext ctx = new ResourceContext(serviceUser );
             RID resRid = RID.getRID("<yourfilepath>");
             IResource resource = ResourceFactory.getInstance().getResource(resRid, ctx);
             //Finally you can read the stream from the resource
             resource.getContent().getInputStream();

  • Show 'Text' Document contents  instead of using Document Links

    I have a requirement from my customer that requires comments to be stored and display both on the planning layout and display instantly in query.
    I am aware that documents which type other than text is stored in BIN form, so my first approach is just to assume to work with document with type 'TEXT'.
    I am aware this can be partly achieved by using the document links, but are there ways to get round of using document "links"? We want to show <b>instantly</b> the content of the document when the layout is opened and when BW query with the right combinations of characteristic values are displayed.

    Yes, for bex, it works only in workbook.
    Check F.Group: SKWF_CONTENT. There are many FM for documents which you can use.
    Here are the VBA Code part for calling RFC FM :
    Public Function BW_DOCUMENT_READ()
      Application.ScreenUpdating = False
    ' Declaration
      Dim FuncCtrl As Object
      Dim ABAP_FUNC As Object
      Dim ABAP_TAB_E_DOCUMENT_PROPERTY As Object
      Dim ABAP_TAB_E_DOCUMENT_CONTENT As Object
      Dim Row As Object
    ' Class Declaration
      Set FuncCtrl = CreateObject("SAP.Functions")
    ' Transfer SapConnection
      FuncCtrl.Connection = SapConnection
    ' Setting ABAP Functions and parameters
    '   Func Name
        Set ABAP_FUNC = FuncCtrl.Add(ABAP_FUNC_NAME)
    '   Func Export Params
        ABAP_FUNC.Exports(ABAP_FUNC_EX_PARAM1) = SAP_QUERY_DESCP
        ABAP_FUNC.Exports(ABAP_FUNC_EX_PARAM2) = SapConnection.Language
    '   Excute Function
        CALL_ABAP_FUNC = ABAP_FUNC.Call
    '   Check Function Call return
        If ABAP_FUNC.Exception <> "" Or Not CALL_ABAP_FUNC Then
           Call COLLECT_MESSAGE(Msgtxt001 & ABAP_FUNC.Exception)
           'MsgBox Msgtxt001 & ABAP_FUNC.Exception
        Else
        ' Func Import Params
          BW_BEX_SUBTOTAL_TEXT = ABAP_FUNC.Imports(ABAP_FUNC_IM_PARAM1)
          BW_BEX_TOTAL_TEXT = ABAP_FUNC.Imports(ABAP_FUNC_IM_PARAM2)
          BW_DOC_URL_PREFIX = ABAP_FUNC.Imports(ABAP_FUNC_IM_PARAM3)
        ' Doc Content
          X_pos = 1
          ' Create Header for Doc content
            Call WRITE_DOC_TABLES(SHEET_NAME_DOC_CONT, X_pos, 1, "Document Nr.")
            Call WRITE_DOC_TABLES(SHEET_NAME_DOC_CONT, X_pos, 2, "Document Line Nr.")
            Call WRITE_DOC_TABLES(SHEET_NAME_DOC_CONT, X_pos, 3, "Document Content")
          ' Fill Doc content
            For Each Row In ABAP_FUNC.Tables(ABAP_FUNC_TABLE2).Rows
              X_pos = X_pos + 1
              Call WRITE_DOC_TABLES(SHEET_NAME_DOC_CONT, X_pos, 1, Row("DOCNR"))
              Call WRITE_DOC_TABLES(SHEET_NAME_DOC_CONT, X_pos, 2, Row("LINENR"))
              Call WRITE_DOC_TABLES(SHEET_NAME_DOC_CONT, X_pos, 3, Row("LINE"))
            Next
        ' Doc Properties
          X_pos = 1
          ' Create Header for Doc content
            Call WRITE_DOC_TABLES(SHEET_NAME_DOC_PROP, X_pos, 1, "Document Nr.")
            Call WRITE_DOC_TABLES(SHEET_NAME_DOC_PROP, X_pos, 2, "Property Name")
            Call WRITE_DOC_TABLES(SHEET_NAME_DOC_PROP, X_pos, 3, "Property Value")
            Call WRITE_DOC_TABLES(SHEET_NAME_DOC_PROP, X_pos, 4, "Language")
            Call WRITE_DOC_TABLES(SHEET_NAME_DOC_PROP, X_pos, 5, "Text Short")
            Call WRITE_DOC_TABLES(SHEET_NAME_DOC_PROP, X_pos, 6, "Text Long")
          ' Fill Doc Property
            For Each Row In ABAP_FUNC.Tables(ABAP_FUNC_TABLE1).Rows
              X_pos = X_pos + 1
              Call WRITE_DOC_TABLES(SHEET_NAME_DOC_PROP, X_pos, 1, Row("DOCNR"))
              Call WRITE_DOC_TABLES(SHEET_NAME_DOC_PROP, X_pos, 2, Row("NAME"))
              Call WRITE_DOC_TABLES(SHEET_NAME_DOC_PROP, X_pos, 3, Row("Value"))
              Call WRITE_DOC_TABLES(SHEET_NAME_DOC_PROP, X_pos, 4, Row("LANGU"))
              Call WRITE_DOC_TABLES(SHEET_NAME_DOC_PROP, X_pos, 5, Row("TXTSH"))
              Call WRITE_DOC_TABLES(SHEET_NAME_DOC_PROP, X_pos, 6, Row("TXTLG"))
             Next
        ' Infoobjects Text
          X_pos = 1
          ' Create Header
            Call WRITE_DOC_TABLES(SHEET_NAME_IOBJ_TEXT, X_pos, 1, "Infoobject Name")
            Call WRITE_DOC_TABLES(SHEET_NAME_IOBJ_TEXT, X_pos, 2, "Language")
            Call WRITE_DOC_TABLES(SHEET_NAME_IOBJ_TEXT, X_pos, 3, "Text Short")
            Call WRITE_DOC_TABLES(SHEET_NAME_IOBJ_TEXT, X_pos, 4, "Text Long")
          ' Fill Texts
            For Each Row In ABAP_FUNC.Tables(ABAP_FUNC_TABLE3).Rows
              X_pos = X_pos + 1
              Call WRITE_DOC_TABLES(SHEET_NAME_IOBJ_TEXT, X_pos, 1, Row("IOBJNM"))
              Call WRITE_DOC_TABLES(SHEET_NAME_IOBJ_TEXT, X_pos, 2, Row("LANGU"))
              Call WRITE_DOC_TABLES(SHEET_NAME_IOBJ_TEXT, X_pos, 3, Row("TXTSH"))
              Call WRITE_DOC_TABLES(SHEET_NAME_IOBJ_TEXT, X_pos, 4, Row("TXTLG"))
            Next
        End If
        Application.Worksheets(SHEET_NAME_DOC_CONT).Select
        Range("A2").Select: Selection.End(xlDown).Select
        MAX_NR_DOC = Selection.Value
        Cells.Select: Cells.EntireColumn.AutoFit
        Application.Worksheets(SHEET_NAME_DOC_PROP).Select
        Cells.Select: Cells.EntireColumn.AutoFit
        Application.Worksheets(SHEET_NAME_IOBJ_TEXT).Select
        Cells.Select: Cells.EntireColumn.AutoFit
    End Function
    Private Function WRITE_DOC_TABLES(SHEET_NAME, I_X, I_Y, I_TEXT)
      Application.ScreenUpdating = False
      Set DOC_POS = Application.Worksheets(SHEET_NAME)
      DOC_POS.Cells(I_X, I_Y).NumberFormat = "@"
      DOC_POS.Cells(I_X, I_Y).Value = I_TEXT
    End Function
    For the BW Web, you can searh in how to paper from Tobias Kaufmann. Or search for Doc: "WEB API REFERENCE". In that Doc, search for the topic: 'WEB DESIGN API FOR TABLES'. There you will get all info needed, about how to enhance BW Web application designer.
    There is no possibility for me to attach that doc here. sorry, you have to search it by your self, or send me your email.
    Hope it helps.
    Best Regards,
    Suan Liono

  • To get the content of a pdf file in a particular position in text format

    I am troubling with geting the content of a pdf file in a particular position.I got the code to get the content of a pdf document as whole in text format.But i only need the content at a particular area.
    i am using PDFTextStripper class in pdfBox jar to get the content as whole.
    pls send some sample code
    pls help me
    Edited by: thomas00 on Sep 21, 2007 2:55 AM
    Edited by: thomas00 on Sep 21, 2007 3:08 AM

    pls any one reply

  • Accessing KM document content  in Portal Code.

    Hi friends,
              I have a requirement to access Document stored in Knowlwdge management , while modifying one of the par files.  But I have no idea how to access it in my code.
            Please suggest some solution.
    Regards,
    Vidit

    Hello Vidit,
    here is a small piece of java code which shows how to get the content of an document in KM:
              //Get resource RID
              RID rid = RID.getRID("path to dokument"); //For example /documents/example.doc          
              IResource res = null;     
              try {
                   IResourceFactory rfac = ResourceFactory.getInstance();
                   res = (IResource) rfac.getResource(rid,rfac.getServiceContext("ice_service"));
              } catch (ResourceException re) {
                   String sre = re.getLocalizedMessage();
                   // Your error handling               
              BufferedInputStream stream = new BufferedInputStream(res.getContent().getInputStream(), 1024);     
              BufferedReader br = new BufferedReader(new InputStreamReader(stream,"windows-1251"));     
    Hope it helps, regards.
    mz

  • Link to Document Content Type issue - links not relative

    I'm using the Link to Document content type in a library in order to link to documents in other libraries.  We just migrated to 2010 from WSS 3.0 (2007) and are having an issue.  We view our site internally thorough the internal machine address/name
    and also have users connecting remotely from an external url.  In 2007, it didn't matter whether we were internal or external, all links were apparently stored as relative because the "link to document" items worked fine either way.  This
    was despite entering the url fully and not relative.  When viewing/editing the properties of that item, it shows you the full url applicable to where you are viewing it...internal if internal, external if external.  
    However, after the migration to 2010, all links that existed previously are fine, but any new items created using link to document apparently no longer store them as relative so either the internal or external users get the wrong link.  For example,
    if I put in the link as http://servername/library/doc the external users get that same link and it doesn't work, since it should be like https://myurl/library/doc.  Viewing/editing the properties of the item shows an absolute url of whatever location
    the item was added.  For instance if I'm connected externally and add an item, even if i only enter it as relative, it creates the link as https://myurl/library/doc and then the internal users end up having to connect via that url and that is just a pain
    due to AD and certificate issues.  The internally created links are obviously not accessible at all from the outside. 
    I've also tried storing the link as relative when creating the item but it seems to overwrite it with the absolute link.
    This is causing quite an issue with us.  Does anyone have any insight as to what is going on and how to fix it?
    thanks!

    Hmm...I thought I had the thread set to email me if there were replies and I never received an email so I thought there were no replies.  I came back to this since another issue cropped up that is related and there were replies!
    I cannot recall how things were set up exactly in 2007 and there's no way to look back now.  I'm a novice when it comes to AAM/DNS/IIS really.  Maybe you can suggest what it should look like?
    We have our site which is accessed internally by http://machinename .  Externally, we use https://sharepoint.mydomain.com .   
    In AAM we have http://machinename listed in the default zone with the same url for internal and public.  We also have https://sharepoint.mydomain.com listed, in the internet zone and it also has the same url for both internal and public.  
    In IIS, the sharepoint site has bindings for port 80 and 443, but nothing specific to https://sharepoint.mydomain.com
    DNS....I'm not sure what should be here, if anything.  
    We can access the site just fine externally, there are just a few instances where some links do not work correctly and point to the internal url instead of external when you are external.  The original post is one time and the other, found the other
    day, is a search box webpart that points to a relative url for the results page but externally it ends up going to the internal url.
    I'd appreciate any guidance.  Thanks!

  • How to make SharePoint 2013 search only in document content?

    We are using SharePoint 2013 environment and are facing following issue while doing search in the document library.
     There is  one document library named “MYDOC” .and it has two columns name ‘DocTitle’ and ‘DocTag’.. Although we are able to perform search on basis of document metadata and content, however we only want to search through the content of documents
    in the library and not on the basis of document metadata (like ‘DocTitle’ or ‘DocTag’ columns). Is there a way to restrict search to document content only and not metadata?
    Excluding the column name will not help since, if the searched keyword is exists in metadata as well then that item of library will not come in result. Is there any way of writing query in such a way that only document content will get queried?
    -Aditya

    Addition to the above,
    Show or hide content from lists or libraries in search results
    As a site owner, you can decide whether items in lists and libraries on your site are included in search results. By default every list and library is set to include all items in search results.
     Note    To change this setting, you must have the Manage Lists permission level. The Designer and “Site Name” Owner groups contain this permission level. When you do not have Manage Lists permissions, the menus
    described in this procedure are not available.
    Navigate to the site that contains the list or library that you want to change.
    Locate and click the list or library you want to customize.
    Click Site Actions, and then click Site Settings.
    Under Site Administration, click Site Libraries and lists.
    Click an item from the list, for example, Customize “Shared Documents.”
    On the List Settings page, under General Settings, click
    Advanced settings.
    In the Search section, under Allow items from this document library to appear in search results, select
    Yes to include all of the items in the list or library in search result or
    No to exclude all items from search results.
    http://office.microsoft.com/en-in/sharepoint-server-help/enable-content-to-be-searchable-HA010379092.aspx

Maybe you are looking for