How to Maintain Jco Destinations ( using ARFC2 )

Hi Friends
I call ARFC2  setting WD_MODELDATA_DEST and WD_RFC_METADATA_DEST.
... then get error message.
com.sap.conn.jco.JCoException: (106) JCO_ERROR_RESOURCE: Destination WD_RFC_METADATA_DEST does not exist
    at com.sap.conn.jco.rt.DefaultDestinationManager.update(DefaultDestinationManager.java:195)
    at com.sap.conn.jco.rt.DefaultDestinationManager.searchDestination(DefaultDestinationManager.java:344)
    at com.sap.conn.jco.rt.DefaultDestinationManager.getDestinationInstance(DefaultDestinationManager.java:96)
    at com.sap.conn.jco.JCoDestinationManager.getDestination(JCoDestinationManager.java:61)
    at com.sap.tc.cm.arfc2.metadata.RFMParser.<init>(RFMParser.java:78)
    ... 74 more
I wnat to Maintain the demo01's JCo Destinations, but the page is null.
Where can I create WD_MODELDATA_DEST、WD_RFC_METADATA_DEST.
thx.

Hi BenChen,
You need to create JCO Destination in the SAP Portal >> Content Administration >> Web dynpro >> Maintain Jco Destinations.
If "Create" button not active,then you need to check SLD running or not and SLD data supplier.
Please refer to below documents will helps
[System Landscape Directory Process and JCo Configuration|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0c1d495-048e-2b10-babd-924a136f56b5?quicklink=index&overridelayout=true]
[JCO Destination Errors|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0019b1a-775f-2910-beb8-d81f27d0d8d0?quicklink=index&overridelayout=true]
[How to Configure the JCo Destination Settings|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/7.0/portal%20integration/how%20to%20configure%20the%20jco%20destination%20settings.pdf]
Hope it will helps
Regards
Arun Jaiswal

Similar Messages

  • Maintaining JCO destinations

    HI experts,
                     We are using a standard sdn example for flight booking . We have downloaded zip file from sdn. We did all the steps to build the project in the netweaver studio help. After deployment we are not able to maintain JCO destinations. The error is " Unable to obtain JCO destinations and it a system landscape exception". We tried to create our own JCO destinations but the same.

    Hi,
        Login to http://host:port/index.html
    Go to Webdynpro -> Content Administrator. Click on 'Maintain JCo Destinations'.
    The JCo connections you have created should be in green colour. If so, try to test the two connections (meta and model data) first. If both are successful, then ping them and check. If it works, then check from the project if you are using the right JCo connectors. If everything is fine, then it should work.
    Regards,
    Harini S

  • Maintain JCO destination button is disabled

    I am getting the following error when trying to log in to MSS:
    "com.sap.tc.webdynpro.services.exceptions.WDRuntimeE xception: Failed to resolve JCO destination name 'SAP_R3_SelfServiceGenerics_MetaData' in the SLD. No such JCO destination is defined in the SLD."
    When going to Content Administration->WebDynpro Content->Maintain JCO destinations, the button "Maintain JCO destinations" is disabled.  I am logged in as an adminsitrator.
    Can someone help?
    Tiberiu

    I tried from Visual Administrator->SLD Data Supplier to trigger SLD data supply. I get the following error: "Failed to send HTTP data:401. Unauthorized".
    I also checked the SLD logs and I found this:
    "#14 08/28/2008 08:11:37.910 [SAPEngine_Application_Thread[impl:3]_35] WARNING com.sap.lcr.cimsrv.ChangePasswordServlet: Password change required for WBEM client. Please ensure that service client users don't have initial passwords. Alternatively, logon to the SLD user interface with the corresponding user and assign a new password. After the password has been changed, client settings must be updated accordingly. "
    Is it possible the SLDSUSER password expired somehow?
    Tiberiu

  • Maintain JCO Destination Issue

    Hi ,
    I have configured SLD and maintained JCO destination WD_MODELDATA_DEST and WD_MODELDATA_DEST with SAP backend connection details.
    When i tried to create the JCO desitnation , i m getting the following issues:
    JCo destination 'RFC_MODEL' was successfully created in SLD.
    Exception while getting JCo Clients Failed to get list of defined JCO clients for deployable object 'sap.com/cafeugpcroomwd'.
    Exception while getting the JCo clients Failed to get list of defined JCO clients for deployable object 'sap.com/cafeugpcroomwd'.
    Exception while getting the JCo clients Failed to get list of defined JCO clients for deployable object 'sap.com/cafeueruico~km'.
    Exception while getting JCo Clients Failed to get list of defined JCO clients for deployable object 'sap.com/cafeugpcroomwd'.
    when i try to test the connection, i m having the following issue.
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=op60vimt75 GROUP=SPACE R3NAME=T75 MSSERV=sapmsT75 PCS=1 ERROR       service 'sapmsT75' unknown TIME        Sat Apr 17 03:32:23 2010 RELEASE     700 COMPONENT   NI (network interface) VERSION     38 RC          -3 MODULE      nixxhsl.cpp LINE        776 DETAIL      NiHsLGetServNo: service name cached as unknown COUNTER     1
    Can somebody help me out what went wrong or let me know changes i have to do ?
    your help is appreciated!!!
    Regards,
    Ravi.
    Edited by: ravikanth kasim on Apr 17, 2010 9:45 AM

    Hi Ravi,
    Please refer to below document for jco errors
    [Troubleshooting SAP Java Connector |http://wiki.sdn.sap.com/wiki/display/EP/TroubleshootingSAPJavaConnector(JCo)]
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0019b1a-775f-2910-beb8-d81f27d0d8d0?quicklink=index&overridelayout=true
    Creating JCO Connectivity from J2EE to SAP
    Hope it helps
    Regards
    Arun

  • Maintaining JCO Destination

    Hi Experts,
    After Installing EP and connecting through our BW System, i got stuck in maintaining JCO destination through Content Administration.
    Initially on the screen of maintaining JCO Destination, the Status is RED for all the Data sources, now when i click on create. it shows an Error Message which is
    500 Internal Server Error - Failed to process request. Please contact your system administrator.
       java.lang.NullPointerException
    I searched a lot on the Forums and on service marketplace, and based on the search result i did some changes like,
    1) Upgrading all the SP's from SP09 to SP10
    2) changing the J2EE Admin HTTP Provider properties
             a) ServletInputStreamTimeout
             b) ServletsLongDataTransferTimeout
             c)  ServletsLongDataTransferCallbackSize
    3) I also changed the Explorer from Internet Explorer to Mozilla.
    The Environment is Windows 2000 Server with Oracle10.
    NW7.0 SR2 SP10
    Still not able to hit the right stone. Please help me in this regards.
    Regards
    Puneet

    Hey Deepu,
    Thanks for the quick reply. What to maintain in the Host file ?
    Only IP and Host name is there.
    One more thing it worked once yesterday, but after filling all the required information and clicking on Finish it displayd the same error.
    The Windows is also 2003 Server and not 2000. Sorry for the mistake.
    Regards
    Puneet

  • Unable to create a jco destination using remote AS Java system on myjava sy

    Dear SAP Gurus,
                  I had ce 7.1 and nw 2004s based AS java Systems.I want to create a jco destination in my CE 7.1 system using usermapping data of  nw 2004s for jco communication.So i created a AS Java  system of NW2004s in my CE 7.1 SLD .when i try to create a jco destination using the AS JAVA as Nw2004s system it is not creating .Please help me to solve this issue.
    regards,
    vanamaSanthosh.

    Hi vanamaSanthosh
    try this
    1. In your CE1 System where u define your JCO destination, Go to C:\WINDOWS\system32\drivers\etc
    open hosts file and define the  identity of AS System like <IP address> <name of the system>
    for example 159.858.2.45  abcd
    restart the server and then check.
    Best Regards
    Satish Kumar

  • Wrong JCO destination used at Runtime

    hi,
    I created a Model using the following JCO Destinations
    'WD_RFC_METADATA_DEST_HCM'
    When I run the application, it gives me folowing error
    Failed to resolve JCO destination name 'WD_RFC_METADATA_DEST' in the SLD. No such JCO destination is defined in the SLD
    Where is it getting this 'WD_RFC_METADATA_DEST'  ? though my JCO destination name is 'WD_RFC_METADATA_DEST_HCM'
    Thanks !
    seventyros

    Hi,
    Make sure you deploying to the SAME server where you have configured and maintained the JCo destination.
    Also check the server name and port when you are running your WD application and server name and port you are using for WD content administration.
    Also What is the version of your NWDS ?
    In NWDS 7.1, we would require a totally different way to maintain the JCo destinations comparing to the past.
    We now have to maintain the JCo destinations not in the JCo Connection Administrator, but in the NWA under u201CConfiguration Managementu201D - > Security -> Destinations.
    This [doc|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09527da-39a7-2b10-9f99-c6a007e516a5?overridelayout=true] explains the same...
    Regards,
    Vijay.

  • Error while executing template installer: Step 14 Maintain JCO Destinations

    Dear all:
    We are applying Template Installer to perform post installation for BI-JAVA in NW2004s SP09.
    Onto step 14: Maintain WebDynpro JCO Destinations, we faced the following Error message :
    Element 'SAPConfigLib.BW8.Unclassified.maintainJcoDestination':!BrokerImport.import_of_element_failed!!BrokerImport.Fehler!com.sap.tc.lm.ctc.cul.cpi.exceptions.CPIBaseException: <Localization failed: ResourceBundle='com.sap.tc.lm.ctc.cul.cpi.CPIResourceBundle', ID='com.sap.tc.lm.ctc.cul.cpi.BaseException_BASE_EXCEPTION', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key com.sap.tc.lm.ctc.cul.cpi.BaseException_BASE_EXCEPTION:com.sap.tc.lm.ctc.provider.javaServiceProvider.JavaServiceWriter.writeElement!BrokerImport.LINE!157-:com.sap.tc.lm.ctc.cul.broker.BrokerImport.importElement.86
    -:com.sap.tc.lm.ctc.cul.broker.BrokerImport.importElement.128
    -:com.sap.tc.lm.ctc.cul.broker.BrokerImport.importElement.128
    -:com.sap.tc.lm.ctc.cul.serviceimpl.importservice.CULConfigurationImport.importConfiguration.96
    -:com.sap.tc.lm.ctc.ccl.templateinstaller.StepExecuter.run.41
    Element 'SAPConfigLib.BW8.Unclassified.maintainJcoDestination':Error during executing Java Reflection:Failed to delete JCO client connection 'WD_ALV_MODELDATA_DEST' on 'BW8.SystemHome.sap15\kin'
    Does anyone have any idea about it ?
    Thank you very much
    SF

    We are encountering the same issue in NW2004s SP 10. Szu-Fen, did you find a solution? If so, could you please post it here?
    Does anybody else have a hint how to resolve this?
    kind regards,
    Hartmut

  • How to Maintain documentation (se38) using standard text (SO10)

    Hi,
    I have created standard text using SO10. Now I want to include the standard text in documentation (SE38) section of my ABAP program.
    I tried using /: INCLUDE 'YTEST' OBJECT TEXT ID ST LANGUAGE EN
    But the standard text is not showing up when I click the documentation icon in the selection screen.
    Can you please let me know how to maintain documentation for ABAP programs using Standard Texts.
    Thanks in advance.
    Sincerely,
    Vidya

    Hi Mahesh,
    In SO10, which format key has been used (AS, /*, /:, *.... to show up in documentation). when you used insert->text-> did you use 'expand immediately' check box. If expand immediately option is used, it won't serve our purpose.
    =
      (space)
    Example
    SO10 Yeurope_terms
    Inside Yeurope_terms
    Terms: For Europe
    /*           No Tax for Italy
    Waiting for your reply.
    Sincerely,
    Vidya

  • Maintain JCo Destination for ESS on EP 7.0

    On Installling ESS Package on EP-7.0 and SAP ECC 6.0
    i got following dump on ESS overview page
    I have maintained all SAP_R3* JCo Destinations
    but for 'SAP_R3_SelfServiceGenerics_MetaData' test and pinging is giving error
    test:    <b>com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscapeException: Error while obtaining JCO connection.</b>
    ping:    <b>Failed to get JCo destination 'SAP_R3_SelfServiceGenerics_MetaData': Error while obtaining JCO connection.</b>
    DUMP-Details--
    com.sap.tc.webdynpro.services.exceptions.TypeNotFoundException: type com.sap.pcuigp.xssfpm.wd.model.types.Ext_Service could not be loaded: com.sap.dictionary.runtime.DdException: TypeBroker failed to access SLD: Error while obtaining JCO connection.
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:250)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getDataType(DataTypeBroker.java:213)
         at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.init(DataAttributeInfo.java:318)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initUnmappedAttributes(NodeInfo.java:670)
         at com.sap.tc.webdynpro.progmodel.context.DataNodeInfo.doInit(DataNodeInfo.java:233)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:654)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:657)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:443)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getController(Component.java:372)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.getPublicInterface(DelegatingComponent.java:181)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdGetBackendConnectionsController(InternalFPMComponent.java:219)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:208)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:429)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:345)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:668)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:268)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:725)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:661)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:227)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:150)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:739)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:208)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1240)
         at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:340)
         at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:538)
         at com.sap.portal.pb.PageBuilder.wdDoInit(PageBuilder.java:177)
         at com.sap.portal.pb.wdp.InternalPageBuilder.wdDoInit(InternalPageBuilder.java:150)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:429)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:345)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:668)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:268)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:705)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:659)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:227)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:150)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:56)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:47)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.dictionary.runtime.DdException: TypeBroker failed to access SLD: Error while obtaining JCO connection.
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker$1.fillSldConnection(DataTypeBroker.java:90)
         at com.sap.dictionary.runtime.ProviderFactory.internalResolveLogicalNameToJCODestination(ProviderFactory.java:408)
         at com.sap.dictionary.runtime.ProviderFactory.resolveLogicalNameToJCODestination(ProviderFactory.java:354)
         at com.sap.dictionary.runtime.ProviderFactory.internalGetProvider(ProviderFactory.java:215)
         at com.sap.dictionary.runtime.ProviderFactory.getProvider(ProviderFactory.java:180)
         at com.sap.dictionary.runtime.DdDictionaryPool.getProvider(DdDictionaryPool.java:87)
         at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:73)
         at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:48)
         at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:149)
         at com.sap.dictionary.runtime.DdBroker.getSimpleType(DdBroker.java:170)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:242)
         ... 62 more
    Caused by: com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscapeException: Error while obtaining JCO connection.
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:149)
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnectionUnMapped(SystemLandscapeFactory.java:175)
         at com.sap.tc.webdynpro.services.sal.sl.core.SystemLandscapeInternal.getJCOClientConnectionUnMapped(SystemLandscapeInternal.java:62)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker$1.fillSldConnection(DataTypeBroker.java:77)
         ... 72 more
    Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to resolve connection parameter for 'SAP_R3_SelfServiceGenerics_MetaData'
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestination(JCOClientConnection.java:678)
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter(JCOClientConnection.java:508)
         at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.init(AbstractJCOClientConnection.java:229)
         at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.<init>(AbstractJCOClientConnection.java:214)
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.<init>(JCOClientConnection.java:111)
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:147)
         ... 75 more
    Caused by: java.lang.NullPointerException
         at java.util.Hashtable.put(Hashtable.java:395)
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestination(JCOClientConnection.java:588)
         ... 80 more
    <b></b>
    Message was edited by: Kapil Gupta

    hi Kapil,
    have you configured the SLD . or try testing the connection fromthe Webdynpro console to the sld.
    Its seems that the systems are not accesible through your Jco destinations..
    send me wat you have entered the metadata and application data jco detinations..
    Regards,
    Ramesh

  • How to maintain HTTP Destinations for Adaptive WebService in Netweaver 7.1

    hi ,
      i  am working with adaptive webservices. i hv created HTTP Destinations for Webservices on server. In Netweaver 04s i used to write code as follows
    wdContext.currentNodeTest.modelObject()._setHTTPDestinationName("DESTINATION_NAME");
    just b4 executing modelObject.
    But in Netweaver 7.1 , no method _setHTTPDestinationName available for  wdContext.currentNodeTest.modelObject() . I want to change host  for wsdl , as my production and development servers are different. How can i use HTTP Destinations in Netweaver 7.1?

    Kavita,
    Are you creating adaptive webservice model, if so then you just need to import webservice model once in your code and when you deploy your application you must define two logical destinations in visual admin.
    DEFAULT_WS_METADATA_DEST
    DEFAULT_WS_EXECUTION_DEST
    How to define logical destinations, check out following link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7
    if you are running application in your development or production server just define these destinations and your application will run smoothly.
    Regards,
    Jawed Ali

  • How to download jco, for using in a test sap system?

    Hello,
    at the moment i am trying to program with java a connection to a sap test system (from the book abap objects).
    Normally the conenction is built up by jco. My question is, because i haven´t got a login to the service marketplace,
    is there any possibility to download and use jco for my test connection? I only try it for education.
    Thank you very much
    Bye

    Hi GLM,
    i just used the example from the jco package,
    which i downloaded from sap service marketplace.
    (I have changed the sap poperties).
    With the jco 2 it works perfect. Only with new one
    i got problems.
    import java.io.File;
    import java.io.FileOutputStream;
    import java.util.Properties;
    import java.util.concurrent.CountDownLatch;
    import com.sap.conn.jco.AbapException;
    import com.sap.conn.jco.JCoContext;
    import com.sap.conn.jco.JCoDestination;
    import com.sap.conn.jco.JCoDestinationManager;
    import com.sap.conn.jco.JCoException;
    import com.sap.conn.jco.JCoField;
    import com.sap.conn.jco.JCoFunction;
    import com.sap.conn.jco.JCoFunctionTemplate;
    import com.sap.conn.jco.JCoStructure;
    import com.sap.conn.jco.JCoTable;
    import com.sap.conn.jco.ext.DestinationDataProvider;
    public class StepByStepClient
        static String ABAP_AS = "ABAP_AS_WITHOUT_POOL";
        static String ABAP_AS_POOLED = "ABAP_AS_WITH_POOL";
        static String ABAP_MS = "ABAP_MS_WITHOUT_POOL";
        static
            Properties connectProperties = new Properties();
            connectProperties.setProperty(DestinationDataProvider.JCO_ASHOST, "binmain");
            connectProperties.setProperty(DestinationDataProvider.JCO_SYSNR,  "53");
            connectProperties.setProperty(DestinationDataProvider.JCO_CLIENT, "000");
            connectProperties.setProperty(DestinationDataProvider.JCO_USER,   "JCOTEST");
            connectProperties.setProperty(DestinationDataProvider.JCO_PASSWD, "JCOTEST");
            connectProperties.setProperty(DestinationDataProvider.JCO_LANG,   "en");
            createDataFile(ABAP_AS, "jcoDestination", connectProperties);
            connectProperties.setProperty(DestinationDataProvider.JCO_POOL_CAPACITY, "3");
            connectProperties.setProperty(DestinationDataProvider.JCO_PEAK_LIMIT,    "10");
            createDataFile(ABAP_AS_POOLED, "jcoDestination", connectProperties);
            connectProperties.clear();
            connectProperties.setProperty(DestinationDataProvider.JCO_MSHOST, "binmain");
            connectProperties.setProperty(DestinationDataProvider.JCO_R3NAME,  "BIN");
            connectProperties.setProperty(DestinationDataProvider.JCO_CLIENT, "000");
            connectProperties.setProperty(DestinationDataProvider.JCO_USER,   "JCOTEST");
            connectProperties.setProperty(DestinationDataProvider.JCO_PASSWD, "JCOTEST");
            connectProperties.setProperty(DestinationDataProvider.JCO_GROUP, "PUBLIC");
            connectProperties.setProperty(DestinationDataProvider.JCO_LANG,   "en");
            createDataFile(ABAP_MS, "jcoDestination", connectProperties);
        static void createDataFile(String name, String suffix, Properties properties)
            File cfg = new File(name+"."+suffix);
            if(!cfg.exists())
                try
                    FileOutputStream fos = new FileOutputStream(cfg, false);
                    properties.store(fos, "for tests only !");
                    fos.close();
                catch (Exception e)
                    throw new RuntimeException("Unable to create the destination file " + cfg.getName(), e);
        public static void step1Connect() throws JCoException
            JCoDestination destination = JCoDestinationManager.getDestination(ABAP_AS);
            System.out.println("Attributes:");
            System.out.println(destination.getAttributes());
            System.out.println();
            destination = JCoDestinationManager.getDestination(ABAP_MS);
            System.out.println("Attributes:");
            System.out.println(destination.getAttributes());
            System.out.println();
        public static void step2ConnectUsingPool() throws JCoException
            JCoDestination destination = JCoDestinationManager.getDestination(ABAP_AS_POOLED);
            destination.ping();
            System.out.println("Attributes:");
            System.out.println(destination.getAttributes());
            System.out.println();
        public static void step3SimpleCall() throws JCoException
            JCoDestination destination = JCoDestinationManager.getDestination(ABAP_AS_POOLED);
            JCoFunction function = destination.getRepository().getFunction("STFC_CONNECTION");
            if(function == null)
                throw new RuntimeException("BAPI_COMPANYCODE_GETLIST not found in SAP.");
            function.getImportParameterList().setValue("REQUTEXT", "Hello SAP");
            try
                function.execute(destination);
            catch(AbapException e)
                System.out.println(e.toString());
                return;
            System.out.println("STFC_CONNECTION finished:");
            System.out.println(" Echo: " + function.getExportParameterList().getString("ECHOTEXT"));
            System.out.println(" Response: " + function.getExportParameterList().getString("RESPTEXT"));
            System.out.println();
        public static void step3WorkWithStructure() throws JCoException
            JCoDestination destination = JCoDestinationManager.getDestination(ABAP_AS_POOLED);
            JCoFunction function = destination.getRepository().getFunction("RFC_SYSTEM_INFO");
            if(function == null)
                throw new RuntimeException("BAPI_COMPANYCODE_GETLIST not found in SAP.");
            try
                function.execute(destination);
            catch(AbapException e)
                System.out.println(e.toString());
                return;
            JCoStructure exportStructure = function.getExportParameterList().getStructure("RFCSI_EXPORT");
            System.out.println("System info for " + destination.getAttributes().getSystemID() + ":\n");
            for(int i = 0; i < exportStructure.getMetaData().getFieldCount(); i++)
                System.out.println(exportStructure.getMetaData().getName(i) + ":\t" + exportStructure.getString(i));
            System.out.println();
            //JCo still supports the JCoFields, but direct access via getXX is more efficient as field iterator
            System.out.println("The same using field iterator: \nSystem info for " + destination.getAttributes().getSystemID() + ":\n");
            for(JCoField field : exportStructure)
                System.out.println(field.getName() + ":\t" + field.getString());
            System.out.println();
        public static void step4WorkWithTable() throws JCoException
            JCoDestination destination = JCoDestinationManager.getDestination(ABAP_AS_POOLED);
            JCoFunction function = destination.getRepository().getFunction("BAPI_COMPANYCODE_GETLIST");
            if(function == null)
                throw new RuntimeException("BAPI_COMPANYCODE_GETLIST not found in SAP.");
            try
                function.execute(destination);
            catch(AbapException e)
                System.out.println(e.toString());
                return;
            JCoStructure returnStructure = function.getExportParameterList().getStructure("RETURN");
            if (! (returnStructure.getString("TYPE").equals("")||returnStructure.getString("TYPE").equals("S"))  )  
               throw new RuntimeException(returnStructure.getString("MESSAGE"));
            JCoTable codes = function.getTableParameterList().getTable("COMPANYCODE_LIST");
            for (int i = 0; i < codes.getNumRows(); i++)
                codes.setRow(i);
                System.out.println(codes.getString("COMP_CODE") + '\t' + codes.getString("COMP_NAME"));
            codes.firstRow();
            for (int i = 0; i < codes.getNumRows(); i++, codes.nextRow())
                function = destination.getRepository().getFunction("BAPI_COMPANYCODE_GETDETAIL");
                if (function == null)
                    throw new RuntimeException("BAPI_COMPANYCODE_GETDETAIL not found in SAP.");
                function.getImportParameterList().setValue("COMPANYCODEID", codes.getString("COMP_CODE"));
                function.getExportParameterList().setActive("COMPANYCODE_ADDRESS",false);
                try
                    function.execute(destination);
                catch (AbapException e)
                    System.out.println(e.toString());
                    return;
                returnStructure = function.getExportParameterList().getStructure("RETURN");
                if (! (returnStructure.getString("TYPE").equals("") ||
                       returnStructure.getString("TYPE").equals("S") ||
                       returnStructure.getString("TYPE").equals("W")) )
                    throw new RuntimeException(returnStructure.getString("MESSAGE"));
                JCoStructure detail = function.getExportParameterList().getStructure("COMPANYCODE_DETAIL");
                System.out.println(detail.getString("COMP_CODE") + '\t' +
                                   detail.getString("COUNTRY") + '\t' +
                                   detail.getString("CITY"));
            }//for
         * this example shows the "simple" stateful call sequence. Since all calls belonging to one
         * session are executed within the same thread, the application does not need
         * to take care about the SessionReferenceProvider. MultithreadedExample.java
         * illustrates the more complex scenario, where the calls belonging to one session are
         * executed from different threads.
         * Note: this example uses Z_GET_COUNTER and Z_INCREMENT_COUNTER. The most ABAP systems
         * contain function modules GET_COUNTER and INCREMENT_COUNTER, that are not remote enabled.
         * Copy these functions to Z_GET_COUNTER and Z_INCREMENT_COUNTER (or implement as wrapper)
         * and mark they remote enabled
         * @throws JCoException
        public static void step4SimpleStatefulCalls() throws JCoException
            final JCoFunctionTemplate incrementCounterTemplate, getCounterTemplate;
            JCoDestination destination = JCoDestinationManager.getDestination(ABAP_MS);
            incrementCounterTemplate = destination.getRepository().getFunctionTemplate("Z_INCREMENT_COUNTER");
            getCounterTemplate = destination.getRepository().getFunctionTemplate("Z_GET_COUNTER");
            if(incrementCounterTemplate == null || getCounterTemplate == null)
                throw new RuntimeException("This example cannot run without Z_INCREMENT_COUNTER and Z_GET_COUNTER functions");
            final int threadCount = 5;
            final int loops = 5;
            final CountDownLatch startSignal = new CountDownLatch(threadCount);
            final CountDownLatch doneSignal = new CountDownLatch(threadCount);
            Runnable worker = new Runnable()
                public void run()
                    startSignal.countDown();
                    try
                        //wait for other threads
                        startSignal.await();
                        JCoDestination dest = JCoDestinationManager.getDestination(ABAP_MS);
                        JCoContext.begin(dest);
                        try
                            for(int i=0; i < loops; i++)
                                JCoFunction incrementCounter = incrementCounterTemplate.getFunction();
                                incrementCounter.execute(dest);
                            JCoFunction getCounter = getCounterTemplate.getFunction();
                            getCounter.execute(dest);
                            int remoteCounter = getCounter.getExportParameterList().getInt("GET_VALUE");
                            System.out.println("Thread-" + Thread.currentThread().getId() +
                                    " finished. Remote counter has " + (loops==remoteCounter?"correct":"wrong") +
                                    " value [" + remoteCounter + "]");
                        finally
                            JCoContext.end(dest);                   
                    catch(Exception e)
                        System.out.println("Thread-" + Thread.currentThread().getId() + " ends with exception " + e.toString());
                    doneSignal.countDown();
            for(int i = 0; i < threadCount; i++)
                new Thread(worker).start();
            try
                doneSignal.await();
            catch(Exception e)
        public static void main(String[] args) throws JCoException
            step1Connect();
            step2ConnectUsingPool();
            step3SimpleCall();
            step4WorkWithTable();
            step4SimpleStatefulCalls();
    Edited by: Unicast on Sep 14, 2008 4:33 PM

  • How to maintain muline header using webdynpro

    Hi Friends,
    please let me know how shall i maintain muline header in a table ( eg: in a single colum i want to provide Qty,UOM,Price
    S.NO ITEM       Desc       Qty
                                          UOM
                                          Price
    OR
    i want to split the same header line in two lines.
    pleas suggest me.
    Thanks,
    Mahesh.Gattu

    Hi Mahesh,
    This is not possible even in ABAP ALV with any methodoligy(with FM's, OOP's with New and Old classes). Why because if you instert the column like our own format it will distrubr the table functionality. It will be problem for Accessibility rule. I think you know about the Accessibility issue. Its like screen reader must be read the screen and the bilnd people also has to be understood correctly.
    Thats why this option is not avilable in SAP.
      I hope this information will help you to give answer to your click also.
    Warm Regards,
    Vijay.

  • How  to maintain the entries using table maintanance??

    Hi,
    I have created a Ztable. and I have created table maintanance generator, then attached the table to a
    Tcode. but I am unable to maintain the entries in table maintanance??
    Can anyone help me out
    Regards
    Devi

    Hi this will help u.
    Hi,
    Go to SE11 enter table name ->change
    Utilities-> Table Maintenance Generator
    delete the Table maintenance by pressing delete button on menu,
    then start creating it again.
    Enter Auth.Group as &NC&
    Enter function group < some name>
    Maintenance Type -> One step
    Overview screen -> some Number (1 or 2)
    Press create
    enter dev class and save, activate.
    Go to SM 30 and check again.
    Reward if useful
    Regards,
    Hema Sundara.

  • How to create Named Destination using Acrobat SDK

    I have to bookmark a paragraph or section. I am using JSO and using textselect I am selecting a paragraph/section. Now I want to create a Named Destination so that it can be assigned to a bookmark. Kindly help me out.

    Read http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/html/w whelp.htm?context=Acrobat9_HTMLHelp&file=Plugins_Introduction.31.1.html about the development of plug-ins and the PDF Reference about destinations.

Maybe you are looking for

  • ABAP Webdynpro: Creating a table on webdynpro screen to enter new data.

    Hello Experts, Does anyone know, how to create a  table on webdynpro screen that can be used to enter new data in database? I have tried to create a Table UI element (with Standard Cell Editor as Input Field) but it is "Display only" if there is no d

  • ITunes with other MP3 Players

    I am SICK and tired of my iPod not working correctly... I want to buy another MP3 player... can I use the iTunes songs (that I already paid a ridiculous amount of money on) with systems other than apple?

  • Older version of apple installer cannot be removed

    I cannot get Itunes to upoad onto my computer because it cannot remove the old file. I cannot find that file anywhere on the computer. Help please

  • Where can I find redo log buffer advice

    Hi, Our customer needs the information about redo log buffer. But In administrator--database configuration--memory parameters item of grid control 10g, I can only get the information about buffer cache & shared pool, as well as the corresponding advi

  • Sold my old iphone to friend, now having texting problems

    sold my friend my old iphone, he activated it by logging on my apple id account on his phone and i got a message saying his number logged on my apple id account and it had an option of saying yes or no and i clicked yes. now everytime i text him i ge