The url parameter format of the JCO.createClient()

Hi there,
In JCO library, we have a function:
createClient
public static JCO.Client createClient(java.lang.String client,
                                      java.lang.String user,
                                      java.lang.String passwd,
                                      java.lang.String lang,
                                      java.lang.String url)Creates an instance of a client connection to a remote SAP system (with load balancing)
Parameters:
client - SAP logon client
user - SAP logon user
passwd - SAP logon password
lang - SAP logon language
url - the url to the remote host
Returns:
the newly created client
This function takes a parameter url. Does anyone know the format of it?
Thanks

hi,
   as per my knowledge that is not url that is host name
mConnection =
JCO.createClient("001", // SAP client
"<userid>", // userid
"****", // password
"EN", // language (null for the default language)
"<hostname>", // application server host name
"00"); // system number
host name is the system's ip address as per my knowledge
regards,
pavan

Similar Messages

  • What is 'URL' parameter in JCO.createClient method?

    Hi,
    What is the 'URL' parameter in the following createClient method.. can anyone provide an example?
    public static JCO.Client createClient(
    java.lang.String client,
    java.lang.String user,
    java.lang.String passwd,
    java.lang.String lang,
    java.lang.String url)
    Creates an instance of a client connection to a remote SAP system (with load balancing)
    Parameters:
    url - the url to the remote host
    Thx

    Hi Serle,
    Use following code for creating Client.
    client = JCO.createClient( "100",       // SAP client
                                     "test",   // userid
                                     "*****",     // password
                                     "EN",        // language
                                     "appserver", // host name
                                     "00" );      // system number
    Or you can make connection pool and use client from this pool like:
    // Add a connection pool to the specified system
          //    The pool will be saved in the pool list to be used
          //    from other threads by JCO.getClient(SID).
          //    The pool must be explicitely removed by JCO.removeClientPool(SID)
          JCO.addClientPool( SID,         // Alias for this pool
                             10,          // Max. number of connections
                             "100",       // SAP client
                             "test",   // userid
                             "*****",     // password
                             "EN",        // language
                             "appserver", // host name
                             "00" );
            // Get a client from the pool
            JCO.Client client = JCO.getClient(SID);
    Regards,
    Bhavik

  • How to change the fields in a JSF form based on a URL parameter

    I am trying to build a generic JSF form of parameters which I want to dynamically change (i.e.
    change which field is visible, what the label text should be, etc) based on a URL parameter.
    I can set the fields using logic in the backing bean as an action on a command button pressed.
    But how do I do it based on the URL parameter ? I can retrieve the URL parameter but I
    don't know where to put (or hook) the Java code to do this initialization prior to
    the page being rendered for the first time.
    The fields in the JSF is being configured dynamically using a database table.
    BTW I am using Jdeveloper 10.1.3.5
    Thanks
    CK

    Thanks. I decided to set a Session bean to store the value of the URL parameter (if it is set)
    and then to use the session bean to initialize the attributes of the fields on the JSF Page.
    There also seems to be some caching of the inputText fields (i.e. it reverts back to the first
    initialized value) even though I tried to change it using the URL parameter in the requestScope
    backing bean. So, setting the values into the Session bean and retrieving it back from there
    seems to be more reliable.

  • How can I add a url parameter to choose the right database row to delete using php in Dreamweaver CC

    Hi all,
    I have just upgraded to Adobe Creative Cloup.  Though I find it very good there was one flaw and that was the omision of the database section.  I got this sorted but now I find that once I have set up the connection to the database and want to eithger delete or update records there is no 'url parameter' button to do so.  Can someone advise we how to get round this.
    Seasons Greatings from
    David J

    The link will look similar to
    myPage.php?ID=myVariable

  • How to get the URL parameter value when navigating from JSP Page to portal

    Hi All,
    I have web Dynpro application with one button, while clicking that button It will navigate to JSP page as external window. In the JSP page I have a input field and Button.
    In the JSP page input field I will enter some values and press submit button, it will navigate to Portal page by passing some URL parameter with values.
    Once user entering to portal by default WD page displayed, the same WD page I try to get the URL Parameter which I have passed from JSP page, but I am not able to get the URL parameter value.
    If same application running in without portal, I can able to get the URL parameter values. I am getting the URL parameter by interface view default inbound plug parameter.
    How do we resolve this problem?
    Regards,
    Boopathi M

    Hi
    Please try  these link might helpful for you
    1.[How to call WebDynPro application from JSP |/thread/452762 [original link is broken];
    2.[How to get the previous page url from abstract portal component? |/thread/1289256 [original link is broken];
    3.[how to launch and pass a parameter |/thread/5537 [original link is broken];
    Best Regards
    Satish Kumar

  • How to skip 3 chars when use "scanf from string" by the parameter "format string" ?

    hi, I want to read a num 123 from the string like that "sfg123" "fgd123" "ghj123"
    I know that I can use "%3s" to skip 3 chars, but it will add an output to "scanf from string"
    So, how to use parameter "format string" not only to skip 3 chars, but also add no output to the "scanf from string"
    Solved!
    Go to Solution.
    Attachments:
    1.JPG ‏15 KB

    Hi Chenyin,
    Try this VI....
    I think... This is what you are expecting....
    <<Kudos are welcome>>
    ELECTRO SAM
    For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
    - John 3:16

  • How to change the JCO reference to an existing model

    Hi
    We had created a few models with the 2 - default (WD_model..) JCO references, now is it possible to change the references to a different custom /name without re-importing the models again ?
    The issue for us is very critical because, we need to maintain unique reference for all the models under each application for the same server.
    please let us know asap.
    thanks
    sathyanarayanan

    Hi Sathya & Ravi,
    If you want to change only the JCO Destinations  that your model refers to, then its very much possible to change their names.
    But if the model stucture has got changed , then you should reimport that.
    I guess, trying out the following steps for changing the names will work out for you.
    1) For Medata Dest--
    a) Click on the local disctionary stucture that has been generated by importing the model.
    b) Click on the properties tab on the bottom right corner.There you shoulb be able to change the Metadata dest name.
    2) For Application data Dest-
    a) Right Click on model classes (model_Input & model_output) &  then click EDIT.
    b) Same Way, on the bottom right corner , Change whichever proerty you want to alter inlcuding the Dest Name.
    In this way, you can mainten unique JCO references for all the models you are using in your project.
    ReBudild & Redploy the entire project . Create the New JCOs Destinations in the content Admin & happily run your application.
    Regards,
    sandip

  • How to change the JCO reference of an existing model  in CE 7.1

    Hi All
    I have read an article which explains the method to change the JCO reference of model but when I tried to follow the same steps in CE 7.1 i am not able to find the category "Model Settings" (on clicking model edit option) containing the property "modelInstance_defaultLogicalSystem" which needs to be changed.
    So is there any other method that needs to be followed in CE 7.1 to change the JCO reference? or should i delete and recreate the models with new JCO reference.
    Any suggestions would be highly helpful.
    Regards,
    Ashwin Kulkarni.

    Hi Ashwin,
    I guess you are not opening the models node. Open the models node shown in the web dynpro explorer.
    ---local Development [project1]
    ----Web Dynpro
    ----Application
    ----Model
    --Model1                                <<<<----Click Here and select properties tab
    ----Model Classes
    ----Component Interfaces
    ----Components
    ----Dictionary
    ----Resources
    Then select the model for which you want to change the JCo references and then in teh properties tab you will find the desired propoerty and then just change the modelInstance_defaultLogicalSystem Property.
    I guess this will solve your problem.
    Thanks
    Sarbjeet Singh,

  • Error while creating the JCO destinations

    Hi All,
    I am getting the following error while creating the JCO destinations.
    <b>There are no message servers maintained in the associated SLD. Please contact your system administrator.</b>
    Please help me in resolving this
    Thanks

    http://help.sap.com/saphelp_erp2005vp/helpdata/en/24/8fa93e08503614e10000000a114084/frameset.htm
    Creating New Web AS ABAP Technical Systems
    /*Reward if helpful
    Message was edited by:
            Anant
    Message was edited by:
            Anant

  • Unable to create the Jco destination

    Hi Experts,
    I am facing a strange issue, As part of ESS and MSS i have to create some Jco destinations in the Wedynpro content administrator.I am giving the all the necessary information for the Jco creation when i click on Finish, jco is not getting creted.
    And the status is in Red color...
    Can any one help me what i am missing???

    Hi Anil,
    Hope you are doing good.
    Is the SLD up and running?
    If the issue persists:
    1.)Delete all the JCO destinations from Content Admin and then from SLD
    2.)Restart the complete cluster once and do a SLD data trigger.
    3.)Then recreate all the jco destinations again from content admin. (Important note: using the "New JCO Message Server Destination" button in SLD will create an inconsistent state. Please do not use it.)
    let me know how this goes.
    Thank you!
    Kind Regards,
    Hemanth
    SAP AGS

  • Unable to create the JCO connections in webdypro (JAVA) No SLD Connection

    HI All,
    In webdynpro i am unable to create standard JCo connections. create Jco connections and Maintain Jco COnnections are disabled. when i click any of the standard content of the Jco connections it displays error message No sld check. But SLD is running fine. I have checked in Visual Admin there also SLD supplier is running fine.
    But i am unable to create or maintain the Standard content of the JCo Destinations.
    Thank You,
    Mahesh C

    Hi ,
    I am having all admin rights. And also i have checked in Check SLD Connection. It showing the error connection to SLD Could not opened successfully. But SLD is running fine and i have checked in Visual admin SLD datasupplier is running fine.
    When i check in the log of the SLD there it is showing
    #2852 11/18/2008 18:27:18.265 [SAPEngine_Application_Thread[impl:3]_29] FATAL com.sap.lcr.cimsrv.CIMOMServlet: SLD initialization failure, can not set up cluster-wide event notification. Please check your JMS provider for errors.
    Thrown:
    com.sap.sld.api.wbem.exception.CIMException: CIM_ERR_FAILED: Failed to initialize cluster notification. Please check your JNDI service and JMS provider for errors.
    Is that i need to change the CIM content?
    I could not able to get clue on this.
    Thank You,
    Mahesh C

  • SAP data extraction mapping, where the JCO files need to be copied?

    Hi All,
    I have the following environment.
    OWB client: Windows7
    OWB server: Linux x86_64
    SAP Server: Windows Server 2003
    I need to create OWB mapping to extract data from SAP to Oracle target.
    Please let me know what are the JCO files required and where do i need to copy them?
    Do i need to copy them on both the owb client and server or is it enough to copy them on the client machine alone?
    Thanks and Regards,
    Pnreddy.

    OWB client isn't supported on Windows 64-bit, just wanted to let you know since you mentioned Windows 7..
    For the windows you will require 3 files sapjcorfc.dll, librfc32.dll and sapjco.jar. You can get them from the SAP install cd or download them from http://service.sap.com/connectors for your SAP version. You will need to have a SAPnet account to do that.
    You can place the files sapjcorfc.dll and sapjco.jar in OWB_HOME\owb\lib\int, and librfc32.dll in OWB_HOME\owb\bin and also set the PATH to reference this directories.
    For linux you will need librfcccm.so, libsapjcorfc.so and sapjco.jar. Also set the LD_LIBRARY_PATH to reference these files locations.
    If you are only extracting metadata from SAP then you need it only on the OWB client but if you plan to execute ABAP programs on the SAP system you will need to set it up on the server side.

  • How to see the JCO connections inthe ABAP Stack

    Hi Gurus,
    Is there any possible way to find the No.of JCO connections in the ABAP stack ,good solutions welocme and rewarded!
    regards,
    S.Rajeshkumar

    Hi,
    JCO connections are just RFC calls.
    If you know the user used by the JCO RFC calls, you can see the number of calls from ST03 RFC Server Profiles.
    For example
    In my XI (PI ) dual stack test system the JCO user is PI_JCO_RFC and I can see that last week there were 254 calls.
    Regards,
    Olivier

  • How do I invalidate the cache in the JCos on EP Portal.

    How do I invalidate the cache in the JCos on EP Portal.

    hi michael,
    for NW7.3+ environmnet this can be done via the netweaver administrator ( http://host:port/nwa).
    you can find the function under "Availablity and Performance" - "Resource Monitoring" - "JCo Monitoring" - "Metadata Cache". there you have the possibility to clear the cache for an abap application server and/or a special structure from it.
    regards,
    christian

  • Transfering a bitmap using the Jco

    Hello all,
    I have to transfer a bitmap using a Jco-Server. It has to be uploaded to the BDS. I found one similar forum-post for that and programmed it in that way. Everything works fine when I'm using the GUI_UPLOAD-Function. If  I try it with the Jco SAP won't recognize the picture.
    I send it in a Table (one 128 RAW column). Unfortunatelly SAP somehow doubles the size of the picture. I think, that that's the Problem. It could be, because of our System. We're using an AS/400 with EBCDIC-Codepage and SAP 4.6C. Do I have to encode it to BASE64 first?
    Did anyone ever had a similar problem and nows how to fix it? Or does somebody has an example for that?
    Thanks a lot for your help!
    Regards
    Patrick

    Check out service.sap.com/connectors

Maybe you are looking for

  • Front row video

    i dont know what it is.. but front row is VERY slow when i wanna play videos (even mpeg4 and h264 videos) i tried to install divx, but it isnt getting better.. everytime i start front row and choose videos its horrible, i have to wait for 2 minutes,

  • How to end RDP sessions remotely from different network?

    Hi How to end RDP sessions remotely for windows 2008r2 server from different network? not from local LAN Thanks

  • Multi-line success messages

    APEX 4.2.1 How does one go about creating multiple lines (with the HTML BR tag) in a success message? Using BR in the Process Success Message attribute works e.g. Line1 BR Line2 but when creating a dynamic success message by assigning the value (with

  • Batch sequence to remove document JavaScript

    Does anyone know of a batch sequence that can remove the document JavaScript from a group of Acrobat 9 Pro PDFs?

  • SSDT-BI for SQL Server 2014, Command line(silent unattendant automatic) installation script/steps

    Hi, I have downloaded SSDT-BI software and looking for commandline steps,config file for this. http://www.microsoft.com/en-us/download/details.aspx?id=42313 Any one have Command line installations steps for SSDT-BI automatic(command line) installatio