Get URL from DMS in SAP

Hi everybody,
I have written an ABAP function in SAP where I export a URL of a document in SAP.
All the images are stored in the DMS server and I fetch the url of the images by the function 'CVAPI_DOC_VIEW'
When I execute this in SAP everythings works!
When I execute this in Java webdynpro, the abap program don't find any link?
Is there something wrong in my code because all parameters are the same.
Regards

Karsten,
  Thanks for the reply noted I will recopy this in EP
Second I tried to get the KM piece to work for a couple of weeks even put in a help note and could not get the folders or any documents to come through any of the KM Browser's on the portal. I created varients etc etc.  So getting frustrated I decided to write my own.  Also because I wanted an iview that would pop all documents based on a picked equipment or material and from the three iviews I saw from KM they didn't seem to do that.  If you know of some documentation that you recommend please let me know
Thanks Karsten
Cheers,
Devlin

Similar Messages

  • Get document from DMS to VB

    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.

  • Get URL from within a Ejb-Container

    Hi all,
    I try to realize a WD-Application with Hibernate ORM. Now it seems , that from within the Ejb the hibnerate.cfg.xml couldn't be found.
    No I try to read the URL from hibernate.cfg.xml. There I did some test with the getResource()-Function. At least I managed to get a URL from a zip-archive, but I'm not able to found the URL from something inside the archive, <b>and my configuration is in an archive!!!</b>
    See the following tests:
      URL myurl11 = cl.getClass().getResource("/"); //works
      URL myurl12 = cl.getResource("/"); //works not! (without getClass())
      URL myurl2 = cl.getClass().getResource("/version.txt"); //works
      URL myurl3 = cl.getClass().getResource("version.txt");//works not (relativ)
      URL myurl4 = cl.getClass().getResource("/apps/sap.com/dc~oracle~ear/src/java/src.zip");//works
      URL myurl5 = cl.getClass().getResource("/apps/sap.com/dc/oracle/ear/src/java/src.zip");//works not
      URL myurl6 = cl.getClass().getResource("/apps/sap.com/dc~oracle~ear/src/java/src.zip/de/pa/ejb/systeme/SystemeDao.java");//works not
      URL myurl7 = cl.getClass().getResource("/apps/sap.com/dc~oracle~ear/src/java/src.zip/de.pa.ejb.systeme/SystemeDao.java");//works not
      URL myurl8 = cl.getClass().getResource("/apps/sap.com/dc~oracle~ear/src/java/src.zip/de.pa.ejb.systeme.SystemeDao.java");//works not 
    As you can see with "myurl14" it works for a zip-file but not futher. How can I get Into an archive? Or even adress things relative?
    Can anybody help me?
    Thanks
    Richard

    Hi Joe,
    Thanks a lot for ur reply,
    But the LD_LIBRARY PATH is set to the user that runs the App Server, Since it is throwing a UnsatisfiedLinkError, there must be a problem with the link only(i.e calling native method).
    The flow of data is as follows
    1 A method from ejb calls another java method in an other java class which is in the same jar file,passing the actual arguments.
    2 That java method calls the Native methos residing in the same class file
    3 The Native mentod calls a c function as usual
    My ejb is working fine up to the Native Method call, at this point it is throwing an error
    All my java files are in a package, and my .h file contains package name in the prototype of c function
    If you get any ideas please mail me ASAP
    ThanQ
    Kiran

  • Is it possbile to get URL from the browser address bar?

    Hi
    I'm in the process of creating a JITIR agent in java that takes in the url of the website that the user presently viewing.
    I don't want the user to have to copy or type in to my app the websites URL. Is it possbile to get this from the process e.g. The browser address bar, or the HTTP:// request sent by the browser.
    Any thoughts gratefully recieved.
    Phil

    I'm in the process of creating a JITIR agent in javawhat's this?
    robert

  • Sql item - get url from page

    Hi I'm trying to display a menu from a table, and then I want to mark the current page in that menu by reading the url of the current page.
    This is what i've got so far:
    DECLARE
    loc Varchar2(40);
    BEGIN
    loc := htp.script('document.url');
    htp.print('<table border=1>');
    for rec in (select id, name, parent_id, url from fgj_menu where parent_id=0) loop
       HTP.print ('<tr>');
       HTP.print ('<td><a href="' || rec.url || '">' || rec.name || '</a></td></tr>');
       for rec2 in (select id, name, parent_id, url from fgj_menu where parent_id = rec.id) loop
    if rec2.url = loc then
       HTP.print ('<tr>');
       HTP.print ('<td>  >> <a href="' || rec2.url || '">' || rec2.name || '</a></td></tr>');
    else
       HTP.print ('<tr>');
       HTP.print ('<td>    <a href="' || rec2.url || '">' || rec2.name || '</a></td></tr>');
    end if;
    end loop;
    END LOOP;
    htp.print('</table>');
    END;fails on 4th line :
    loc := htp.script('document.url');Any suggestions?
    Message was edited (format edits) by:
    Botzy

    Hi Botzy
    You can put your javascript code in an HTML portlet, but I prefer to put a page under htdocs, it's much easier to develop, and then use an url item that displays the url directly in the page.
    About the code :
    var xhr_object = null;
    if(window.XMLHttpRequest) // Firefox
         xhr_object = new XMLHttpRequest();
    else if(window.ActiveXObject) // IE
         xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
    xhr_object.open("POST", "/portal/pls/portal/my_schema.my_proc", true);
    xhr_object.onreadystatechange = function()
    if(xhr_object.readyState == 4) alert(xhr_object.responseText);
    xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    xhr_object.send('p_param1=value1&p_param2=value2');
    That's really simple to use, you just have to change the name of your proc and its parameters, and you'll get what it "htp.prints". Be sure to grant exec to public on you proc.
    By the way, I've just imagined an even more simple solution :
    - do not pass any param to your procedure. Let it just write always the same code whatever the page it is on
    - identify each entry of your menu with a javascript id, for instance
    <table>
    <tr><td id="url1">page 1</td></tr>
    <tr><td id="url2">page 2</td></tr>
    etc...
    Then use a small javascript code at the end of your page with something lie this :
    document.getElementById(document.location.href).style = a different color
    or
    document.getElementById(document.location.href).innerHTML = something different
    or whatever you want.

  • Get file from dms

    hi,
    can anyone help me to get the data for a file in dms with a specific doknr? i need to get the binary data to send them per mail.
    I searched in function group cv120 (i tried cv120_read_file2table but it doesn't work for me) but wasn't able find a solution!
    can anyone help me?
    regards,
    jacko

    thanks for your example but i have to work with FUBA SO_NEW_DOCUMENT_ATT_SEND_API1 and therefore i need a solution to attach my file from dms.
    i used your solution:
    SELECT lo_objid INTO TABLE it_lo_objid
          FROM dms_doc2loio
          WHERE dokar EQ 'Z01'
          AND dokvr EQ '00'
          AND doknr LIKE srch_str.
        LOOP AT it_lo_objid INTO wa_lo_objid.
          SELECT SINGLE phio_id ph_class INTO (wa_object_id-objid ,wa_object_id-class)
            FROM dms_ph_cd1
            WHERE loio_id = wa_lo_objid.
          CALL FUNCTION 'SDOK_PHIO_LOAD_CONTENT'
          EXPORTING
          object_id = wa_object_id
          client = sy-mandt
    AS_IS_MODE =
    RAW_MODE =
    TEXT_AS_STREAM =
          TABLES
    FILE_ACCESS_INFO =
    FILE_CONTENT_ASCII =
          file_content_binary = it_file_content_binary
          EXCEPTIONS
          not_existing = 1
          not_authorized = 2
          no_content = 3
          bad_storage_type = 4
          OTHERS = 5.
          DATA: act_length TYPE i.
          DATA: act_diff TYPE i.
          DATA: act_rest_length TYPE i.
          DATA: act_line TYPE string.
          DATA: act_rest TYPE string.
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          DATA: count TYPE i,
                data_string TYPE xstring.
          DATA: "it_CONTENT_BINARY TYPE solix_tab,
                 it_content_binary TYPE solix_tab,
                 it_line TYPE LINE OF solix_tab,
                it_content_binary_solix TYPE solix,
                wa_content_binary TYPE solix.
    TEMP START
          DESCRIBE TABLE it_file_content_binary LINES count.
          count = count * 1022.
          CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
            EXPORTING
              input_length       = count
      FIRST_LINE         = 0
      LAST_LINE          = 0
           IMPORTING
             buffer             = data_string
            TABLES
              binary_tab         = it_file_content_binary[]
           EXCEPTIONS
             failed             = 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.
          CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
            EXPORTING
              buffer                = data_string
      APPEND_TO_TABLE       = ' '
    IMPORTING
      OUTPUT_LENGTH         =
            TABLES
              binary_tab            = it_content_binary[].
    but I can't use it_content_binary[] in SO_NEW_DOCUMENT_ATT_SEND_API1 without getting an CX_SY_DYN_CALL_ILLEGAL_TYP
    it says the actual given field has the right type but not the right length! (CONTENTS_BIN)
    what's my foult!
    big thanks to you!
    greets, jacko
    Edited by: Jacko1986 on Jul 20, 2009 3:30 PM

  • Get Url from all tabs

    Hello,
    I feel like this is something simple but I cannot write a correct script to do it.
    How would I write a script that just gets the urls of all tabs in safari?
    then if one exists, it selects that tab to be opened.

    Would It be easier that instead of telling safari to open that tab if it exists, to set the beginning part of my script that gets info from safari to get info from all tabs, for a specific tab only?
    I don't understand your goals to be able to tell you what you want. Given what you've said in earlier posts it sounded like you wanted to see if a particular URL was present in any tab and if so activate it. That doesn't seem to be the case any more. You'll need to more clearly explain what you're trying to do in order to progress.
    I purchased a book http://apress.com/book/view/1430223618 which I am going to use to better help me make applescripts as well as cocoa-applescript applications in xcode. Do you think this book will be able to help, or is there another I should look at?
    That book, like most others, covers a lot of the theory behind AppleScript - the concepts behind AppleScripts/Apple Events, and things like handlers, process flow, etc.
    It will not tell you how to do what you want, because what you want is something very specific - unique, even. What it might do is give you the fundamental building blocks to work out how to build your script to do what you want. For example, I've shown you some examples of how to find out what tabs are present, how to activate a tab, how to switch windows, etc. The book might do the same thing (albeit spread throughout several chapters). It's a matter of putting that together in a way that achieves your goal.

  • Get URL from HTMLImg

    Hello,
    How do I get the URL from HTMLImg? I get the HTMLImg object from
    GetImageForResultFromSource
    I am using C# in 5.0.4
    Thank you.

    not with Java ... and only if IE actually provides an API that lets you get it. And only if you can get a reference to the IE process.
    It's really more an IE question, not Java.

  • How to get mail from Outlook to SAP GUI (workflow)

    Hi All ,
    How can we get a mail from outlook or personal mail into SAP GUI .
    can it be used as an event for 'wait for event step ' in workflow . ?
    Thanks ,
    Naval bhatt

    Hi Naval,
    I just want to clarify some areas from your question:
    1. Will a workflow be triggered because of the email from Outlook to SAP? Does it always have to start from the Outlook side?
    The integration of SAP Workplace (thru Workflow) and Outlook is possible using the Extended Notification (tcode SWNCONFIG). Here, you can send an email from SAP to Outlook then execute a function from your Outlook message and then you will be directed to the tcode of SAP side (SAP GUI).
    Regards,
    Reymar

  • How to get data from Oracle to SAP

    Hi All,
           I want to get data from Oracle to my internal table in SAP,
    I worked on puting  the data from SAP to Oracle, it's working fine...
    Can anybody suggest the code for accessing from Oracle with 4 primary keys in oracle.
    regards
    manish

    hi
    good
    there is two things in sap open sql and native .if you ll use the open sql than you can access any database.
    thanks
    mrutyun

  • Flash Island: Get varibles from Flex into SAP

    Hello,
    I am trying to get the content of a variable from an Flash Island into SAP. I am using :
    FlashIsland.fireEvent(this, "add");
    in order to fire the event in SAP which is working well. But I also have a variable which content I want to send to SAP. I am using:
    FlashIsland.storeProperty(this , "ERGEBNIS", Ergebnis);
    which is not working. "ERGEBNIS" should be the name of the context attribute in SAP, Ergebnis is the name of the variable in flex.
    In my FlashIsland I have a GACEVENT called add which triggers the ACTION ADD and a GACPROPERTY called ERGEBNIS with the value FLASH.ERGEBNIS.
    My problem is to get the value of Ergebnis from FLEx to SAP.
    regards
    stefan

    The storeProperty should work.  I've got an application that uses that very technique and it is working just fine.  Make sure that your name usage is mapping properly.  For instance here is my applicatoin:
    I have a textField.  I register a function for the change event of the textField. In this function I copy the current value back with the storeProperty function:
    public function changeText():void
                   if (!RTE.htmlText == ""){
                  var l_text:String;
                        l_text = RTE.htmlText.valueOf()
                        l_text = cleanHTML(l_text);
                   FlashIsland.storeProperty(this, "RichText", l_text );
    Now RichText is the name of the public variable that I am exposing to the Island. It is not the name of the context attribute in WDA. Inside of WDA I have a GACProperty with a name of RichText and a value bound to a context attribute named HTML_TEXT.
    If this still doesn't work for you (although it should) consider passing the value back as an event parameter instead of via the context. You can pack event parameters directly into the fireEvent function and then they can be read from within your ABAP event handler method:
         FlashIsland.fireEvent(this, "newSel", {newLS:coverflow.selectedIndex});

  • How to get urls from urls.

    to be exact, how do i get automator to search urls from current webpage, and then search urls again from those urls i got from my current webpage.
    Thanks in advance!

    Try this;
    * http://techdows.com/2011/09/show-http-in-firefox-7-address-bar.html

  • Get URL from which Flash was downloaded into browser

    Hello buddies,
    Is there any API in ActionScript to identify the URL from
    which Flash was downloaded into browser?
    Thanks

    example (
    http://www.flashkit.com/tutorials/Actionscripting/Basic/Easy_to_-Tiran_Da-674/index.php):

  • Get URL from Mail message to Safari

    I want to be able to email myself at home from work with a URL in the body of the message. I want a Mail rule and Automator (or applescript if necessary) to take that URL from the message body and send it to Safari which will go to the URL. The URL can be either a web page or downloadable file.
    Quad G5   Mac OS X (10.4.7)   4.5GB RAM

    Shoot! I wrote this huge reply and then quit Safari by accident. I'm too tired to type it all over again (I should install a keylogger).
    Anyway, check out the screen shot of my workflow. the AppleScript section is where it xfers the URL from a text editor (BBEdit) to Safari. It's pretty dirty but it works.
    http://www.jameskocsis.com/urlworkflow.jpg
    post antother reply if you need more data on this process.
    Good luck.
    -James

  • Get Url from a text box

    Hello,
    I have read a couple posts in regards to the GEt URL function
    but couldn't find what I'm looking for.
    Trusting someone can help.
    Here are two reference files
    1- Main swf that loads the movie clip
    with the links
    Swf
    that displays the links I'm opening in a new window
    I'm able to open the url on a new window but couldn't find a
    way to control the height of this window. Please note that the
    links are all inside a text box. They are not separate buttons they
    are just text hiperlinks.
    Please let me know if any of you knows how to control the new
    _blank window height.
    Thanks
    Fe

    Hi. You should consider posting this to either the iPhone forum or the Developer forum. This forum is for discussing the Unix subsystem of OS X...

Maybe you are looking for