Get content document in WD abap

Hi all,
I need to get the content of a document (BINARY or XSTRING) in a WD abap.
I know the following values:
- doknr
- dokar
- dokvr
- doktl
Can anybody helps me?

hallo, Kata!
the files are stored in the system with the help of Knowledge Provider. Every document has unique PHIO and LOIO attributes.
if you know storage name of documents you can get PHIO of the folder where data is kept. futhermore you can get the list of all documents stored in that folder and select the required one. after that use function module:
SKWF_PHIO_LOAD_CONTENT
exporting to this module PHIO attributes of your object in import you'll get a table of type sdokcntbin
this table contains data in binary format
Note: with the help of SCMS_BINARY_TO_XSTRING you'll convert data to XSTRING

Similar Messages

  • Get content document

    Hi all,
    I can see a document in the transaction cv03n but I need to get the content (BINARY or XSTRING).
    I know the following values:
    - doknr
    - dokar
    - dokvr
    - doktl
    - file_idx
    Can anybody helps me?
    Thanks.

    Hi,
    I have this same issue. has this been resolved then please let me know.
    I need to open the file that has been stored for RFQ's in Web Dynpro.
    the files could be in word, excell, pdf and jpeg files.
    Please let me know.
    Thanks
    Sandeep

  • 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

  • Setting the content type inside the ABAP mapping.

    Hello All,
    Can any one help me by telling me how to set the content-type inside ABAP mapping. I have searched a large no of blogs and help.sap.com for the same.
    My requirement is I want to change the MIME type of the Main Document in side SXMB_MONI so that can change the content type of Main document which is application\xml by default.
    I would appreciate an early response regarding the same.
    Abinash

    Hello Raj,
    The output of my ABAP mapping is a flat file. So when I try to open the file with content type application/xml in the message monitor it shows the file has some error which is natural. The way to get around this problem is change the content type to application\txt from application\xml.
    I am not finding an option to set the content type inside the ABAP mapping for the same.
    Abinash

  • Getting the document ID of an uploaded document

    Hello All,
    Perhaps someone out there can help with this assumingly simple task of getting the document id of a file that was uploaded.
    Back ground:
    I have a separate system which retains records of transactions. Paperwork is often received as a part of these transactions and my intention is to store those documents into SharePoint. I want to store the document id on the record to facilitate easy retrieval
    of the document. No need to search by meta tags or the like; I will have the specific document id which will point to the document.
    Environment:
    I currently have SharePoint 2013 online. The program that creates and maintains the records is an in-house VB.Net application running on 4.5 framework. The document repository is defined as a record center and contains several content types and meta tags
    (columns) already defined. Again the application is written in VB.
    Goal:
    Upload a given document, get the document id, and store that id to the record.
    What I have done:
    I have created a function that will take a given file name and proceed to upload the document to the given SharePoint list. It then proceeds to update the meta tags with information that will help find it using alternative methods. I have also spend hours
    upon hours researching every corn of every forum to find an answer. But to no avail.
    The problem:
    I cannot find how to get the document id of the document that I uploaded. Either it is so easy that no-one has bothered to post how it is done. Or it is not doable. I say this because I can find absolutely no reference to how to get the document id. There
    is lots of references on how to get the name, the url, the meta tags, etc... But NO example on getting the document id. Very frustrating. Below is the code that I am using. Can someone suggest how I can go about getting the document id. Please treat me like
    I am a noob and spell it out. Sample code would be great! I have already burnt way too much time on this seemingly simple task. I would greatly appreciate any help.
    Thanks
    Mike
    Imports Microsoft.VisualBasic
    Public Class Class1
    Private mVarTitle As String
    Private mVarStockCode As String
    Public Property DocTitle() As String
    Get
    Return mVarTitle
    End Get
    Set(value As String)
    mvartitle = value
    End Set
    End Property
    Public Property StockCode() As String
    Get
    Return mVarStockCode
    End Get
    Set(value As String)
    mVarStockCode = value
    End Set
    End Property
    Public Function UploadFile(FileName As String, Path As String, ListName As String, ContentType As String)
    'For each record, copy the file from knowledgetree to the local directory and then upload it with the metatags.
    Dim mKTFile As String = String.Empty
    Dim mFileName As String = String.Empty
    Dim mSource As String = String.Empty
    Dim mTarget As String = String.Empty
    Dim mTitle As String = String.Empty
    Dim mStockCode As String = String.Empty
    Dim mDocId As String = String.Empty
    Dim mCTid As String = String.Empty
    Dim mBaseKTFolder As String = "\\<computerName>\c$\Program Files\ktdms\documents\"
    mFileName = FileName
    mKTFile = Path
    mTitle = mVarTitle
    mStockCode = mVarStockCode
    mKTFile = Replace(mKTFile, "/", "\")
    mSource = mBaseKTFolder & mKTFile
    mTarget = ".\temp\" & mFileName
    UpdateStatus("uploading " & lrows.ToString)
    ' Copy the file to a new folder and rename it.
    My.Computer.FileSystem.CopyFile(
    mSource,
    mTarget,
    Microsoft.VisualBasic.FileIO.UIOption.AllDialogs,
    Microsoft.VisualBasic.FileIO.UICancelOption.DoNothing)
    Dim mpassword As New System.Security.SecureString()
    Dim mp As String = "<adminPassword>"
    For k = 1 To Len(mp)
    mpassword.AppendChar(Mid(mp, k, 1))
    Next
    Dim mycred As New Microsoft.SharePoint.Client.SharePointOnlineCredentials("<AdminUserId>", mpassword)
    Dim url As String = "https://<SharePoint URL>/sites/rms"
    Dim listTitle As String = ListName
    Using clientContext = New ClientContext(url)
    clientContext.Credentials = mycred
    Using fs = New System.IO.FileStream(mTarget, System.IO.FileMode.Open)
    Dim fi = New System.IO.FileInfo(mTarget)
    Dim list = clientContext.Web.Lists.GetByTitle(listTitle)
    clientContext.Load(list.RootFolder)
    clientContext.ExecuteQuery()
    Dim fileUrl = [String].Format("{0}/{1}", list.RootFolder.ServerRelativeUrl, fi.Name)
    fileUrl = Replace(fileUrl, "#", " ")
    Microsoft.SharePoint.Client.File.SaveBinaryDirect(clientContext, fileUrl, fs, True)
    Dim web As Web = clientContext.Web
    Dim newFile As Microsoft.SharePoint.Client.File = web.GetFileByServerRelativeUrl(fileUrl)
    clientContext.Load(newFile)
    clientContext.ExecuteQuery()
    '*****this section finds the content type and sets
    Dim contentTypeColl As ContentTypeCollection = clientContext.Web.ContentTypes
    clientContext.Load(contentTypeColl)
    clientContext.ExecuteQuery()
    mCTid = String.Empty
    '/ Display the content type names that are available in the website
    For Each ct As ContentType In contentTypeColl
    If ct.Name = ContentType Then
    mCTid = ct.Id.StringValue
    End If
    Next
    '***************End content type find.
    newFile.ListItemAllFields("ContentTypeId") = mCTid
    newFile.ListItemAllFields("Title") = mTitle
    newFile.ListItemAllFields("StockCode") = mStockCode
    '******This is the section where I have tried to get the uploaded document Id.
    '******None of these statements work.
    mDocId = newFile.ListItemAllFields("Document ID").ToString
    mDocId = newFile.ListItemAllFields("_dlc_DocId").ToString
    mDocId = newFile.ListItemAllFields("DocID").ToString
    newFile.ListItemAllFields.Update()
    clientContext.Load(newFile)
    clientContext.ExecuteQuery()
    End Using
    End Using
    ' Delete the file .
    My.Computer.FileSystem.DeleteFile(mTarget)
    UploadFile = mDocId
    End Function
    End Class

    Thanks Micheal for confirming SharePoint version.
    Is your VB code working with SharePoint 2010 Client Object model? It would give the idea that there is some poroblem in SharePoint 2013 CSOM.
    By the way, I tried the below code  in C# and I was able to print the Document ID and it worked for me.
     using (ClientContext clientContext = new ClientContext("http://<<Server Name>>:2425/sites/test/"))
                    Web site = clientContext.Web;
                    // Change your document library name
                    List docLib = site.Lists.GetByTitle("tester");
                    clientContext.Load(docLib);
                    CamlQuery caml = new CamlQuery();
                    ListItemCollection items = docLib.GetItems(caml);
                    clientContext.Load(items);
                    clientContext.ExecuteQuery();
                    // Iterate through all items in the document library
                    foreach (ListItem item in items)
                        Console.WriteLine("File Name:: " + item.FieldValues["Title"]);
                        Console.WriteLine("Document Id : " + item.FieldValues["_dlc_DocId"]);
                    Console.ReadLine();
    Output:
    File Name:: Remove_URL
    Document Id : TEST-1-1
    File Name:: Request
    Document Id : TEST-1-2
    Please check that your code is working with SP2010 or not?
    Thanks
    Ashish
    Ashish Gupta Click "Vote As Helpful"! if you think that post is helpful in responding your question click "Mark As Answer, if you think that this is your answer for your question.

  • DS 4.2 get ECC CDHDR deltas in ABAP data flow using last run log table

    I have a DS 4.2 batch job where I'm trying to get ECC CDHDR deltas inside an ABAP data flow.  My SQL Server log table has an ECC CDHDR last_run_date_time (e.g. '6/6/2014 10:10:00') where I select it at the start of the DS 4.2 batch job run and then update it to the last run date/time at the end of the DS 4.2 batch job run.
    The problem is that CDHDR has the date (UDATE) and time (UTIME) in separate fields and inside an ABAP data flow there are limited DS functions.  For example, outside of the ABAP data flow I could use the DS function concat_date_time for UDATE and UTIME so that I could have a where clause of 'concat
    _date_time(UDATE, UTIME) > last_run_date_time and concat_date_time(UDATE, UTIME) <= current_run_date_time'.  However, inside the ABAP data flow the DS function concat_date_time is not available.  Is there some way to concatenate UDATE + UTIME inside an ABAP data flow?
    Any help is appreciated.
    Thanks,
    Brad

    Michael,
    I'm trying to concatenate date and time and here's my ABAP data flow where clause:
    CDHDR.OBJECTCLAS in ('DEBI', 'KRED', 'MATERIAL')
    and ((CDHDR.UDATE || ' ' || CDHDR.UTIME) > $CDHDR_Last_Run_Date_Time)
    and ((CDHDR.UDATE || ' ' || CDHDR.UTIME) <= $Run_Date_Time)
    Here are DS print statements showing my global variable values:
    $Run_Date_Time is 2014.06.09 14:14:35
    $CDHDR_Last_Run_Date_Time is 1900.01.01 00:00:01
    The issue is I just created a CDHDR record with a UDATE of '06/09/2014' and UTIME of '10:48:27' and it's not being pulled in the ABAP data flow.  Here's selected contents of the generated ABAP file (*.aba):
    PARAMETER $PARAM1 TYPE D.
    PARAMETER $PARAM2 TYPE D.
    concatenate CDHDR-UDATE ' ' into ALTMP1.
    concatenate ALTMP1 CDHDR-UTIME into ALTMP2.
    concatenate CDHDR-UDATE ' ' into ALTMP3.
    concatenate ALTMP3 CDHDR-UTIME into ALTMP4.
    IF ( ( ALTMP4 <= $PARAM2 )
    AND ( ALTMP2 > $PARAM1 ) ).
    So $PARAM1 corresponds to $CDHDR_Last_Run_Date_Time ('1900.01.01 00:00:01') and $PARAM2 corresponds to $Run_Date_Time ('2014.06.09 14:14:35').  But from my understanding ABAP data type D is for date only (YYYYMMDD) and doesn't include time, so is my time somehow being defaulted to '00:00:00' when it gets to DS?  I ask this as a CDHDR record I created on 6/6 wasn't pulled during my 6/6 testing but this 6/6 CDHDR record was pulled today.
    I can get  last_run_date_time and current_run_date_time into separate date and time fields but I'm not sure how to build the where clause using separate date and time fields.  Do you have any recommendations or is there a better way for me to pull CDHDR deltas in an ABAP data flow using something different than a last run log table?
    Thanks,
    Brad

  • How to get the document type, name and revision from the search page cv04n

    Hello,
    After performing cv04n and getting a list of documents satisfying the search criteria, how can I then get the document type, name and revision of the selected document using ABAP?
    Thanks

    HI,
    IN table DRAW... u have Document type, Version and document number.
    In Table DRAT also u get Document Type, Version, Number and Description of Doucment.
    Regards
    SAB

  • I am trying to upload a pdf i created to an online system but am getting an error message indicating that my document is not formatted to 8.5x11. How can i get my document to 8.5x11

    I am trying to upload a pdf i created to an online system but am getting an error message indicating that my document is not formatted to 8.5x11. How can i get my document to 8.5x11

    You'll want to fix this via the online system you used to create the PDF.
    If all content mastering and page configuration is done online then that is where you must make a correction to what you did before.
    If a file is uploaded to the online system for processing then you must revisit that file.
    Open the file with its native application and correct page size there.
    If you upload a scanned image to the online system you must configure the scanner software to output the needed page size.
    Be well...

  • System Error in KM Content - Documents

    Hi
    I am getting the following error when navigating from Content Administration > KM Content > Documents
    System Error
    An exception occured during the program execution
    On checking the NWA:
    java.lang.NullPointerException
    at com.sapportals.wcm.util.acl.jdbc.JDBCAcl.containsPrincipal(JDBCAcl.java:437)
    at com.sapportals.wcm.util.acl.jdbc.JDBCAcl.isAuthorized(JDBCAcl.java:410)
    at com.sapportals.wcm.util.acl.jdbc.JDBCAcl.checkPermission(JDBCAcl.java:615)
    at com.sapportals.wcm.repository.security.ResourceAcl.checkPermission(ResourceAcl.java:29
    I searched for this in forum and came across the SAP Note: 1450398 via the [link|http://forums.sdn.sap.com/thread.jspa?threadID=1722232&messageID=9254778#9254778]
    *Error doesn't appear when logging with the J2EE admin rights As per the note, I did check the System Principals and they are correct..
    Any thoughts?
    Appreciate you input.
    Regards,
    Dharmi
    Edited by: Dharmi Tanna on Jan 10, 2011 2:47 PM

    Hi Aliaksandr,
    Thank you for the reply. The note says:
    B.) Possible workaround before the release of mentioned deliveries: Logon to the portal with a system-principal user. Make sure that the
    respective system principal user is authorized to change resourcepermissions,i.e. "Change Resource Permissions" checkbox is being activated.
    After that try to modify the ACL of a KM plain resource (or folder location) for which the issue persists. "
    The "Change Resource Permissions"  is already acitvated as per the example here under:
    Example
    Permissions for an Administrator Role
    Authorized to Change Resource Permissions = activated
    Unlock Permission                         = activated
    Resource Permissions                      = write, read, delete
    Permissions for index_service User
    Authorized to Change Resource Permissions = deactivated
    Unlock Permission                         = deactivated
    Resource Permissions                      = read
    It does not say to change permissions of the "Documents " folder self!. I checked the permissions on the "Documents" folder and it is by Default to "Everyone - full control".
    Regards,
    Dharmi

  • How can I write java code in web dynpro to show KM content document?

    Dear all developer
    SDN developer who have any easy example java code for get and show KM content documents(documents/com.xx.km/.). We are develop this project by Netweaver Studio 7.0 and using WEB Dynpro application.
    Thank for all comment and advice.
    Jumnong Boonma

    Hi
    i dont have the exact code but yes..i can refer to the link for Web Dynpro applications for the Portal.
    [http://help.sap.com/erp2005_ehp_03/helpdata/EN/42/fa080514793ee6e10000000a1553f7/frameset.htm]
    Here look out for Absolute Navigation.
    Hope it helps...
    Thanks..

  • Can´t read page containing XML using GET HTTP Document

    Hello forum users, 
    I'm have a problem with the LabVIEW Internet Toolkit and I'm woundering if its me that is doing something wrong or if it is a limitation of the VI. 
    I have a robotic application which comunicates with LabVIEW via internet. 
    the robots sends and receives information via XML which is posted on a webpage. 
    I've been trying to use the LabVIEW Internet Toolkit's GET HTTP Document. while I can obtain HTML data from any webpage when I try to access my webpage containing XML data  I get an Error 66 (connection closed by peer message).
    What is even stranger is that on two distinct occasions the program returned the XML data 
    The page is set up so that when accesed (for example http://192.168.0.102:4950/move.cgi?op=setVel&vel=300). It will define the robot's speed at 300 mm/s and return a page with a simple XML data such as
    <result>true</result>
    When I access the page in using the Get HTTP Document, the request is sent. the robot does the action required but the XML data I need isn't returned. 
    I have applications that do this in C++, python, and MatLab, without a problem and I didn't want to have to resort to low level TCP/IP functions. 
    any suggestions???
    Is this a limitation of the GET HTTP Document VI (it only gets HTML documents)
    Thanks in advanced
    Bruno Noronha
    Certified LabVIEW Associate Developer
    Using LabVIEW 8.6

    Hi, Bruno.
    Maybe my case will help you. I've faced a problem similar than yours. I have a network camera whose API is HTTP based, I mean, I can control it using HTTP requests, i.e. http://myserver/axis-cgi/bitmap/image.bmp
    takes a picture and returns it in bmp format.
    There are other requests that can send data back, i.e.
    http://<servername>/axis-cgi/com/ptz.cgi?query=pos​ition
    retrieves pan and tilt degrees and zoom value (it is a PTZ camera or pan-tilt-zoom, it has two joints that rotate left-right and up-down, and a zoom). In this case, the information is sent in plain text. But I had like you an error 66 in TCP Read.vi.
    After debugging "Get HTTP document.vi" I noticed this information is sent back, but due to the error in "TCP Read.vi", it's not transmitted to the remaining TCP functions in execution order, and finally is lost.
    In order to debug "Get HTTP document.vi" you'll need to unmark "Reentrant execution" and mark "Allow debugging" in VI Properties->Execution.
    The information string enters "TCP Read.vi" by the terminal "buffer in", and leaves it by "buffer out". The next function, "TCP Read Stream.vi" receives also this string, but it's lost in case there's an error in the entry error cluster. So I removed the wire the connects this two TCP VIs, and finally got the string at the "content" terminal.
    It may not be the most orthodox solution, but at least it let me continue working. If anybody has fixed this issue conveniently, it'd would interesting to share it with us.
    Regards,
    Francisco
    PS. I was with an internship in USP (Sao Carlos, Brazil) for three months in 2007. In this time I visited many times Campinas and its university. Nice place and really good moments :
    Hi, Bruno.
    Maybe my case will help you. I've faced a problem similar than yours. I have a network camera whose API is HTTP based, I mean, I can control it using HTTP requests, i.e.
    http://myserver/axis-cgi/bitmap/image.bmp
    takes a picture and returns it in bmp format.
    There are other requests that can send data back, i.e.
    http://<servername>/axis-cgi/com/ptz.cgi?query=pos​ition
    retrieves pan and tilt degrees and zoom value (it is a PTZ camera or pan-tilt-zoom, it has two joints that rotate left-right and up-down, and a zoom). In this case, the information is sent in plain text. But like you I got an error 66 in "TCP Read.vi".
    After debugging "Get HTTP document.vi" I noticed this text information is sent back, but due to the error in "TCP Read.vi", it's not transmitted to the remaining TCP functions in execution order, and finally is lost.
    In order to debug "Get HTTP document.vi" you'll need to unmark "Reentrant execution" and mark "Allow debugging" in VI Properties --> Execution.
    The information string enters "TCP Read.vi" by the terminal "buffer in", and leaves it by "buffer out". The next function, "TCP Read Stream.vi" receives also this string, but it's lost if there's an error in the entry error cluster. So I removed the wire that connects this two TCP VIs, and finally got the string at the "content" terminal.
    It may not be the most orthodox solution, but at least it let me continue working. If anybody has fixed this issue conveniently, it'd would interesting to share it with us.
    Regards,
    Francisco
    PS. I was with an internship in USP (Sao Carlos, Brazil) for three months in 2007. In this time I visited many times Campinas and its university. Nice place, nice people and really good moments

  • How do i get my documents to edit?

    I cant get my documents to edit. How do i do this?

    Hi Jeffrey,
    Could you describe the issue in more detail?
    One thing that comes to mind is that sometimes to edit documents in Word where the contents of a page are within a table, you need to triple-click your cursor get it to insert where you'd like.
    -David

  • URL Get HTTP Document Bug (LV2012)

    I know the Internet Toolkit is deprecated, but since it's still available it should still work.
    Unfortunately the URL Get HTTP Document.vi does not work in Internet TK 2012 for other than text files. It worked fine in LV8.5 with the corresponding Internet TK, but the 2012 version only returns the last part of the content.
    I'm going to switch to the HTTP Client palette, but it's still a pain to find such problems in TKs that used to work fine - losing a lot of time to find the issue.
    See attached snippet which reads a .rtf file from ni.com. HTTP client palette returns correct contents, URL Get HTTP Document only the last chunk.

    Hi,
    I managed to get the URL Get HTTP Document.vi from the ITK to download .tiff files (to save them to a hard-drive location) from a connected device in LV2012 32-bit.
    But now I need to transfer this code over to a computer unsing LV2012 64-bit, hence no ITK - has anyone made/got a VI that will do the job of "URL Get HTTP Document.vi", without the need for the ITK libraries, in LabVIEW 2012 64-bit? Or can show me a way of doing this, with relative ease?
    Many thanks!

  • PS Get-Content - file containing environement variable

    Hello
    I have an issue with a script where I have a text file containing folders and files. I get them with Get-Content and then I copy them somewhere else.
    My problem is that I would like to be able to use environement variable in the text file, like D:\$env:USERNAME\Documents but when I get them through Get-Content, variable are not converted.
    Is there a way to make Powershell recognizing variables in the path ?
    Thanks !

    Invoke-Expression is not needed in this case. I recommend the $ExecutionContext.InvokeCommand.ExpandString method instead.
    -- Bill Stewart [Bill_Stewart]
    I'm open to suggestions, (even though what I suggested was demonstrated and works).
    I took your advice and tried your suggestion
    PS C:\Users\User>
    Add-Content C:\liste.txt 'D:\$env:USERNAME\Documents'
    Add-Content C:\liste.txt 'D:\Documents'
    $sourcelist = get-content C:\liste.txt | foreach-object {
    $ExecutionContext.InvokeCommand.ExpandString($_)
    There is no output? So I tried assigning it to a variable.
    PS C:\Users\User>
    Add-Content C:\liste.txt 'D:\$env:USERNAME\Documents'
    Add-Content C:\liste.txt 'D:\Documents'
    $sourcelist = get-content C:\liste.txt | foreach-object {
    $Path = $ExecutionContext.InvokeCommand.ExpandString($_)
    $Path
    LOL, there is still no output. 

  • Record Management: get logical document object from physical doc. object

    Hello,
    I'd like to get logical document from physical document (sdok object - stricture containing class and objid).
    There is BAPI for "opposite direction": SDOK_LOIO_PHYSICAL_OBJECT_GET. By this FM I can get physical document's sdok object from logical document's sdok object.
    Can anybody tell me BAPI's name for it?
    I tried SDOK_PHIO_LOGICAL_OBJECT_GET, but this BAPI doesn't exist.
    Best regards,
    Josef Motl

    Josef,
    There are I don't believe there are any bapi's for this. You probably have to do this via ABAP OO. Create an object of the type CL_SRM_DOCUMENT. This is your logical (LOIO) object of your document. You have to enter the documentclass and the objectid of the document. This class has a method get_variant. This variant is your fysical (PHIO) object of the document. Use version and variant 0 so you will get the latest version object of your document.
    If this isn't the answer, can you please explain where do you get the fysical object from if you haven't got the logical first?
    Regards,
    Tjalling-Jan

Maybe you are looking for