Unabe to establish Jco
Hi
For a web dynpro application I am trying to establish the JCo connection.
In the webdynpro content administration in portal when I tried create a JCo conencion, i do not see the message server listed. How should this be resolved? please explain me in detail.
Thanks
-Luke
Luke,
check the "Post INstallation Guide for SLD" in the http://service.sap.com/instguidesnw04 section (let's try, if this works: https://websmp203.sap-ag.de/~sapidb/011000358700000204942004E )
you don't have to add the Java-system in the SLD, only the ABAP systems, you want to connect via JCO/Web Dynpro (of course, for the overview it would be better to have it listed there, too)
kr, achim
ps: or check the complete SLD user manual https://websmp203.sap-ag.de/~sapidb/011000358700005207502003E.PDF
Message was edited by: Achim Hauck
Similar Messages
-
Error - unable to establish JCO connection with SSO
Hello,
I have implemented XSS on WebDP and this is working fine. So my JCO connections SAP_R3_HumanResources must be configured correctly. However I have just done the 'GetFlight' BAPI tutorial and upon execution I get the error:
'com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCException: Could not create JCOClientConnection for logical System: SAP_R3_HumanResources - Model: class com.sap.tut.wd.flightlist.model.FlightModel. Please assure that you have configured the RFC connections and/or logical system name properly for this model!'
CAUSED BY
'User not authenticated (is anonymous) - unable to establish JCO connection with SSO'
Can anyone help here?
Thanks
Mr.THI
GOOD
GO THROUGH THIS LINK WHICH CONTAINS THE A SINGLE SIGN-ON IN A COMPLEX SYSTEM LANDSCAPE.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/80fbc690-0201-0010-1aba-93d5c8232b4a
http://www.sap-press.de/download/dateien/1020/sappress_sap_security_authorizations.pdf
http://sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ff65b5a2-0a01-0010-5b97-e747192a1d49
THANKS
MRUTYUN -
Java-Program for JCO-Connection
Hallo experts!
I tried to get a Java-Program running which should establish JCO-Connection to a SAP-System and got the following error message:
java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library librfc. Found version "640.0.144" but required at least version "640.0.161".
at com.sap.mw.jco.JCO.<clinit>(JCO.java:776)
at JCOTEST.main(JCOTEST.java:24)
Exception in thread "main"
Anyone got an idea?
Thanks for your help in advance.Thank you Jens,
it worked fine with the newest JCo-Download.
Now I seem to have some Network problem: ip not reached:
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
Connect_PM GWHOST=10.251.24.10, GWSERV=sapgw10, ASHOST=10.251.24.10, SYSNR=10
LOCATION CPIC (TCP/IP) on local host
ERROR partner not reached (host 10.251.24.10, service 3310)
I need to talk to our network manager in the firm.
Regards.
Thomas -
DynamicRFCException with JCO.client problem
Hi,
Iam trying to execute an RFC from webdynpro.Iam getting the following error.So as a result i dont get any result as expected on my screen as the RFC is not getting executed due to JCO problem.Please kindly let me know the reason.In the last line of the exception it talks about user authentication.I dont have any idea whats the reason.This happens as soon as my bapi execute statement in my controller is executed.
could not create JCOClientConnection for logical System: WD_MODELDATA_DEST - Model: class com.test.Getmodel. Please assure that you have configured the RFC connections and/or logical system name properly for this model!
com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Error connecting using JCO.Client: null at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModel.prepareExecute(DynamicRFCModel.java:179) at com.test.Getmodel.bapi_Ben_Bus3029_Get_Evt_List(Getmodel.java:141) at com.test.Bapi_Ben_Bus3029_Get_Evt_List_Input.doExecute(Bapi_Ben_Bus3029_Get_Evt_List_Input.java:137) at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92) at com.avid.benefits.Benefitscust.executebapi(Benefitscust.java:128) at com.avid.benefits.wdp.InternalBenefitscust.executebapi(InternalBenefitscust.java:162) at com.avid.benefits.AvidusbenefitsView.wdDoInit(AvidusbenefitsView.java:97) at com.avid.benefits.wdp.InternalAvidusbenefitsView.wdDoInit(InternalAvidusbenefitsView.java:129) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61) at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215) at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445) at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200) at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709) at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579) at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155) at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295) at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183) at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178) at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364) at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756) at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250) at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) 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:102) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172) Caused by: com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCException: Could not create JCOClientConnection for logical System: WD_MODELDATA_DEST - Model: class com.test.Getmodel. Please assure that you have configured the RFC connections and/or logical system name properly for this model! at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModel.getCurrentlyUsedJcoClient(AiiModel.java:210) at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModel.prepareExecute(DynamicRFCModel.java:170) ... 42 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:152) at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.getJCOClientConnection(WDSystemLandscape.java:30) at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModel.getCurrentlyUsedJcoClient(AiiModel.java:189) ... 43 more Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to resolve connection parameter for 'WD_MODELDATA_DEST' at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestination(JCOClientConnection.java:649) at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter(JCOClientConnection.java:476) at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.init(AbstractJCOClientConnection.java:233) at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.<init>(AbstractJCOClientConnection.java:218) at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.<init>(JCOClientConnection.java:129) at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:150) ... 45 more Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: User not authenticated - unable to establish JCO connection with SSO. at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestination(JCOClientConnection.java:584) ... 50 more
Error connecting using JCO.Client: null
Error connecting using JCO.Client: null: Could not create JCOClientConnection for logical System: WD_MODELDATA_DEST - Model: class com.test.Getmodel. Please assure that you have configured the RFC connections and/or logical system name properly for this model!: Error while obtaining JCO connection.: Failed to resolve connection parameter for 'WD_MODELDATA_DEST': User not authenticated - unable to establish JCO connection with SSO.Hi Swathi,
The problem may be with JCo destinations. If you have authorization in Portal, navigate to Content Administration -> Web Dynpro.
In the left side you can see deployed web dynpro applications. Check in local, sap, or any of your custom namespace. Browse & select to your application. Right side you can see JCo destinations for your application. If they are in green color , means they are created. If not, ask your basis team to create them. If they are n green color, ping and test them. if they are working fine or not.
If they are fine, try to deploy after you have logged into the portal.
Regards,
Siva -
Asyncronic JCO RFC call from JAVA to ABAP
Hi,
Please could you provide a sample java code to establish JCO RFC call to ABAP?
Thanks.Hi Denis,
Import the model In NWDS for ABAP for RFC.
Please check here [Accessing ABAP Functions using the Adaptive RFC Model |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a00f7103-6790-2a10-ac9c-fcac7c5b18a3?quicklink=index&overridelayout=true]
[Web Dynpro Model: Backend Access|http://www.sdn.sap.com/irj/sdn/nw-wdjava?rid=/webcontent/uuid/403e6bf5-426e-2910-b0a8-a95548724af9#section10 [original link is broken]]
Also check here /docs/DOC-8661#section10 [original link is broken]
Hope it helps,
Redards,
Arun -
JCO Connection error in webdynpro
Hi
I have Ep 7.0, ECC 6.0 (NW2004s)
I am trying to establish JCo connection but we are getting the
following error
"com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect
to message server host failed Connect_PM TYPE=B MSHOST=*****
GROUP=SPACE R3NAME=HEI MSSERV=sapmsHEI PCS=1 ERROR
service 'sapmsHEI' unknown TIME Fri May 30 16:19:20 2008
RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -
3 MODULE ninti.c LINE 530 DETAIL NiPGetServByName2:
service 'sapmsHEI' not found SYSTEM CALL getservbyname_r COUNTER 2"
Already i have created TechnicalSystems in the Portal and
I have entered the sevice file in the location of c:\WINDOWS\system32\drivers\etc as "sapms<SID> 3600/tcp" in EnterprisePortal Server.
after that we have restarted the server
Still i am getting same error.
Could you please help us.
Regards
SrinivasHi,
First You Configure SLD Correctly.If You Have ECC And BW.You Maintaing Two WEBAS ABAP Systems.
You Create WEB AS ABAP System In SLD And Maintain Connection Properties Of ECC.And
Similarly For BW Also.
The Given Below Links To Help You SLD Cofiguration For J2EE
http://www.*********************/solution_manager/solution_manager_sld.html
SLD Configuration
3.If You Want To Create JCO Destinations.You Go To Login Portal
Content Administration->Webdynpro->Create JCO Destinatiion
A.General Data -> Specify Model Name,Client And JCO Pool Configuration
B.Specify J2EEE Cluster
C.Destination type
Data Type-> Application DataModel,Dictionary MetaDataMetadata
Destination Type->Load Balancing Or Single Server
D.Specify Either Application Server Or Message Server
E.SecurityUsername,password,confirm password,language
F.SummaryWhole Information
Similarly Metadata Created Follow Same Steps As Above
After Creating JCO Destinations, Go For Maintain JCO Destination And test The JCO Destinations Works Fine Or Not you Con Test.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/webdynpro/wd%20java/portal%20integration/how%20to%20use%20the%20web%20dynpro%20content%20administrator.pdf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/85a483cb-0d01-0010-2990-c5168f01ce8a
http://help.sap.com/saphelp_nw04/helpdata/en/77/931440a1c32402e10000000a1550b0/frameset.htm
It's Useful Rewards Points
Bye
Thanks
SubbaRao -
JCo connection between java and ABAP
Hi,
Any pointers for some good material on establishing JCo connection between ABAP and Java to execute ABAP FMs.
Thanks and Regards
Arpita SaxenaPlease find following link for your reference.
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/85a483cb-0d01-0010-2990-c5168f01ce8a?quicklink=index&overridelayout=true] -
JCo Connection / RFC in Pricing Userexit
Hi Experts,
Need your help: I have a requirement to make a RFC call in IPC Pricing Userexit. First I made a simple test java class to make RFC call and run it locally without any problem. then I copy the same code to the Userexit, but it failed on the 1st statment JCO.createClient(.....). Do I need to add a different JAR file to make JCo Connection work in the Userexit? Any advise or documentation?.
Thanks, Jin
Here is the error message:
Message: document not existing
--> com.sap.spe.document.rfc.DocIllegalArgumentException: document 49149C3E59925857E10000000A02901D not existing
at com.sap.spe.document.rfc.DocHandlerAdapter.appendProtocolLine(I[Ljava/lang/Object;)V(DocHandlerAdapter.java:123)
at com.sap.spe.document.rfc.GetPricingDocumentInfo.handleDocRequest()V(GetPricingDocumentInfo.java:73)
at com.sap.spe.document.rfc.DocHandlerAdapter.handleRequest()V(DocHandlerAdapter.java:72)
at com.sap.spe.base.util.jco.HandlerAdapter.handleRequest(Lcom/sap/vmc/RFCContainer/Call;)V(HandlerAdapter.java:103)
at com.sap.vmc.remserver.RFCDispatcher.privHandleRequest(Lcom/sap/conn/jco/JCoFunction;)V(RFCDispatcher.java:895)
at com.sap.vmc.remserver.RFCDispatcher.handleRequest(Lcom/sap/conn/jco/JCoFunction;)V(RFCDispatcher.java:673)
at com.sap.conn.jco.rt.JCoServer.dispatchRequest(Lcom/sap/conn/jco/rt/AbapFunction;)V(JCoServer.java:1605)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.dispatchRequest(Lcom/sap/conn/jco/rt/JCoServer;Ljava/lang/String;)V(MiddlewareJavaRfc.java:2387)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.listen(Lcom/sap/conn/jco/rt/JCoServer;Ljava/lang/String;)V(MiddlewareJavaRfc.java:1694)
at com.sap.conn.jco.rt.JCoServer.listen()V(JCoServer.java:1375)
at com.sap.conn.jco.rt.JCoServer.run()V(JCoServer.java:1299)
at com.sap.vmc.remserver.RfcServer.run()V(RfcServer.java:386)
at java.lang.Thread.startup(Z)V(Thr
Thanks, JinHello Jin,
IPC does make calls to CRM . To do so it maintains a JCo connection. We got to leverage this connection object and make calls to our RFC. We can use the get_current_connection(); from connection_factory.
import com.sap.mw.jco.JCO;
import com.sap.sce.engine.ddb_inst;
import com.sap.sxe.db.*;
import com.sap.sxe.db.imp.rfc.*;
import com.sap.mw.jco.IFunctionTemplate;
import com.sap.mw.jco.IRepository;
// For the default connection
JCO.Client crmJCO = null;
try{
/ RFC and JCO connection to CRM
connRFC cRFC = (connRFC)connection_factory.get_current_connection();
crmJCO = cRFC.getIdleConnection();
}catch(Exception e){
log_api.log_write_msg("LOG1", "LOG2",1,
"Error establishing JCO connection to CRM: "+ e);
// Now for the BAPI (RFC calls)
try{
IRepository repository = JCO.createRepository
("<my BAPI RFC module>", crmJCO);
IFunctionTemplate ftemplate = repository.getFunctionTemplate
("<my BAPI RFC module>");
JCO.Function bapiFunc= new JCO.Function(ftemplate);
// Set your IMPORT, EXPORT, TABLE parameters here
// Call the JCo function
crmJCO.execute(bapiFunc);
// Process the output.
}catch(Exception e){
log_api.log_write_msg("LOG3", "LOG4",1,
"Error calling BAPI "+ e);
/// DO NOT FORGET TO CLOSE ***+++ MUST DO +++***
}finally{
if(crmJCO != null)
JCO.releaseClient(crmJCO);
Hence this is using standard connection, no need for any additional jars.
Easwar Ram
http://www.parxlns.com -
Hi,
I am trying to establish JCO from my system.
There are certain issues that I am not able to resolve/fix.
1. I am not getting any values in the table that populates all available JCo Destination details.
2. I am trying to create a new JCo destination. It throws an exception after the step where I select Data Type as Application Data (the Data Type step).
The exception is as below.
[code]java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1444)
at com.sap.tc.webdynpro.tools.sld.MessageServerConnectionDefinition.updateSelection(MessageServerConnectionDefinition.java:300)
at com.sap.tc.webdynpro.tools.sld.MessageServerConnectionDefinition.wdDoInit(MessageServerConnectionDefinition.java:168)
at com.sap.tc.webdynpro.tools.sld.wdp.InternalMessageServerConnectionDefinition.wdDoInit(InternalMessageServerConnectionDefinition.java:830)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:71)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:197)
at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:250)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:182)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:529)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:387)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.makeVisible(ViewManager.java:609)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.performNavigation(ViewManager.java:262)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:710)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:339)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:538)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:49)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:239)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:130)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:92)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:42)
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:373)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:250)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:319)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:297)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:696)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:221)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:146)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
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:94)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
[/code]
In the SLD parameter settings, I have defined a BC Message Server and all Server parameters.
Please guide me to find out whats wrong with this?
DONT WORRY ABOUT POINTS, I AM AWARE OF THAT..
Regards
Ashutoshhi
Well looks like a problem with your Message Server config. Have you configured your SLD. Ensure that you have a entry in your services file which can be found in
c:\winnt\system32\etc\drivers\services
There should be a entry like
sapms<DEV> tcp/3601
now DEV is the 3 letter System ID
and 36 + instance number is your message server port.
Have you loaded the CIM models into your SLD?. If not that also needs to be done.
In your SLD ensure that you have created a WebAS ABAP System.
Then in your Visual Administrator --> Server --> services ---> SLD DATA Supplier
ensure you have maintained the details to connect to the SLD. Also here you can grant permissions for your WebDynpro Content admin.
After the above steps try creating a JCO connection. That should help you.
Let me know if you still face some problem.
regards
Ravi -
Hi all,
I have the following problem: How I can create the JCOClient in the JSP? In the AbstractPortalContent I use this code
IJCOClientService clientService = (IJCOClientService request.getService("jcoclient");
IJCOClientPoolEntry poolEntry;
try
poolEntry = clientService.getJCOClientPoolEntry("SAP_cFolders", request);
}catch (Exception e)
response.write("Error obtaining connection: " + e);
return;
JCO.Client client = null;
client = poolEntry.getJCOClient();
client.connect();
In the JSP I don't able to create the JCO.Client.
Someone can help me?
Thanks in advance,
Stefanohi,
I am giving u the sample code of the application which i had done in Abstract portal component u try this for establishing JCO connection
hope this helps...
public class calingrfc extends AbstractPortalComponent
private JCO.Client jcoClient;
Rfccaling_PortType insFunc = new Rfccaling_PortType();
Ztrng_Show_Input ip = new Ztrng_Show_Input();
Ztrng_Show_Output op = new Ztrng_Show_Output();
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
// try {
// this.connect();
// insFunc.messageSpecifier.setJcoClient(jcoClient );
// String temp = request .getParameter("text1");
// ip.setTrainingid1(temp);
//} catch (RuntimeException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// private void connect() {
// try {
// jcoClient =
// JCO.createClient("700","developer","satyam","EN","sap02","01");
// jcoClient.connect();
// } catch (Exception e) {
// System.out.println("Error connecting to SAP ::" + e.getMessage());
// e.printStackTrace();
// private void disconnect() {
// try {
// jcoClient.disconnect();
// } catch (Exception e) {
// System.out.println(
// "Error dis-connecting to SAP ::" + e.getMessage());
// e.printStackTrace(); -
RFC Call from ABAP (R3) to Webdynpro EP
Hi experts,
I have a requirement to initiate a call from an ABAP program on R3 to a standard Portal (Webdynpro) API. Does anyone have any experience with this?
I understand that normally Portal (Webdynpro) applications will make the RFC call to ABAP via the established JCO connection. However there's very limited literature elaborating how the call can be made in the other direction i.e. from ABAP R3 to Portal
Anyone, please kindly advise how, if this can be done. Many thanks!
Best regards,
LionelHi,
I'm trying to make a RFC call from the ABAP program to a built in Java method residing on EP. It is part of a suite of methods provided by the UME engine.
Typically a call is made from a webdynpro program to a SAP ABAP function module. In this case, I'd like to make a call from the SAP ABAP report to the EP method.
Best regards,
Lionel -
ABAP(R3) call to Portal(Webdynpro)
Hi experts,
I have a requirement to initiate a call from an ABAP program on R3 to a standard Portal (Webdynpro) API. Does anyone have any experience with this?
I understand that normally Portal (Webdynpro) applications will make the RFC call to ABAP via the established JCO connection. However there's very limited literature elaborating how the call can be made in the other direction i.e. from ABAP R3 to Portal
Anyone, please kindly advise how, if this can be done. Many thanks!
Best regards,
Lionelplease check the following link
http://help.sap.com/saphelp_nw04s/helpdata/en/da/f96f4132f15c58e10000000a1550b0/frameset.htm
with regards
shanto aloor -
Access Denied while integrating WD appl into Portal
Hi all,
I have created one appl in WD that can access details from R/3. Whenever I run the appl, the data is automatically populated from R/3 into dropdown list. It is working fine in my NWDS.
I have integrated this appl in to Enterprise Portal. Now when i execute that appl, I am getting
'Access Denied error'. (The data is not poulating into my dropdown list).
But I have integrated the FlightList appl, into Enterprise Portal, which is working fine.
Is there any settings/configurations needs to be done before integrating my appl into EP?
Thanks®ards,
GaneshHi,
For the Web Dynpro application which fetches data from R/3 system, you have to establish JCO destionation in Portal->Content Administration->Web Dynpro. Open you application from the portal content list in the left panel. In the right check for the JCO connection. If not existing, create JCO with the required credentials of the R/3 system, like client, message server, userid/pwd or Ticket, userid, password. After testing/ping is successful, your application will work fine in the portal.
Regards,
Srinivasan T -
Class not found error while establishing a jco connection
Hi
I am trying to establish a JCo connection in Java class.
public static void main(String s[])
try {
...// set connection properties
connClient.connect();
} catch (Exception ex)
ex.printStackTrace();
System.exit(1);
It is throwing runtime error on line connClient.connect();
java.lang.NoClassDefFoundError
at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1079)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3256)Hi Saurabh,
Please refer to below for calling JCo connection in Java class..
http://help.sap.com/saphelp_nw04/helpdata/en/b6/55e3952a902447847066a0df27b0d6/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/ed/89746bea5011d6b2e800508b6b8a93/content.htm
Hope it helps
Regards
Arun -
How to Know the How many number of JCo connections established?
Hi
How to Know the How many number of JCo connections established for mapping?Hi
mConnection = JCO.createClient("001", // SAP client
"<userid>", // userid
"****", // password
null, // language
"<hostname>", // application server host name
"00"); // system number
//Connections to a specific application server (as in the above example)
mConnection.connect();
//Creating the JCO.Client object does not connect to SAP, but a subsequent call to
connect() will accomplishes this
So you can easily find out the number of JCo connections by checking out these.
Thanks
Maybe you are looking for
-
Distorted Aspect Ratio of Exported Frames
My project's aspect ratio is 16:9 (720 horizontal, 576 vertical). I inserted a clip into the timeline. I exported a certain frame to a file as an image. The image file's size: 720 x 576. I proceeded to import the image file into the project, and inse
-
How do I fix this? It slows down all my previews and I can't find anywhere to correct it. Thanks all.
-
hi, can i clear the cache of the sun java content delivery server.
-
I have used Adobe AIR SDK15 to build a iOS app, which have a button to browse the Photo in the iPad, but when i run the line of code "var dataSource:IDataInput = imagePromise.open();", the app will be crash, any body experienced?
-
Image moves when printed from SAP queue versus Adobe Reader.
I've got a form with a image embedded into it that serves as a background watermark. This document is usually printed from Adobe Reader, however some users have requested the ability to print directly to a SAP printer without using Adobe Reader to pr