WD Java , adaptive RFC beginnes question
hi folks,
i am new to WD Java and have a very simple question.
after getting data back from a RFC-Call to R/3 backend i call
wdContext.nodeOutput().invalidate();
to have my result in the context node, but i never see the result in my context node after this call.
the funny thing is i have the result in my internal tables but when i try to get the data with a call like:
if (wdContext.nodeEs_Visibility().currentEs_VisibilityElement().getHead_V() == "01")
- where my node in Output is ES_Visibility and the Element is Head_V -
i don't get a result?
whats my fault behind that?
best regards oliver
Hi,
i put the field which value i want to check into a text-field on the screen and i can see the value is set correctly by my bapi call, my only problem ist to chekc againt this values which i do with the following coding, here comes the total coding:
as you see below , the statement
if (wdContext.nodeEs_Visibility().currentEs_VisibilityElement().getHead_V() == "01")
does not work but when i bind this element to a text view i can see thet the field has 01 as value????
in wd abap these things are that easier gg.
best regards so far !!!!
public void read( java.lang.String kunnr )
//@@begin read()
IPrivateOrview.IVisElement element;
// element = wdContext.currentVisElement();
orview = new Z_Sd_Orview_Wd_0001_Input();
orview_out = new Z_Sd_Orview_Wd_0001_Output();
orview.setIv_Kunnr(kunnr);
wdContext.nodeOrview().bind(orview);
try {
wdContext
.nodeOrview()
.currentOrviewElement()
.modelObject()
.execute();
} catch (Exception ex) {
wdContext.nodeOutput().invalidate();
wdContext.nodeEs_Visibility().invalidate();
if (wdContext.nodeEs_Visibility().currentEs_VisibilityElement().getHead_V() == "01")
wdContext.currentContextElement().setHead_v(WDVisibility.NONE);
} else {
wdContext.currentContextElement().setHead_v(WDVisibility.VISIBLE);
//@@end
Similar Messages
-
Need help from people who know Java. Some beginner questions.
Hello all.
I just recently became interested in programming and I chose Java to learn (not really sure why), I am not really interested in the whole Java Applets thing because i can already do the same things in Flash. What I really want to do is to be able to make a program that can actually complete a task; for instance Is it hard/possible to fabricate a program that could say... do a simple task like open my browser, copy a file, move something ect. What type of file would it be? Would it be a standalone program or .class for MS-DOS? Also (I'v been doing examples and lessons) why are these done in my command prompt and not just executed as the program (.java?) they are (written in notepad). What is my java program export file called that can be used by others with java enviornment. I will finish an excersize and it will say congrats you've just made you first program, but if its a program then why am i running it in command prompt unlike a program i have like Adobe Photoshop where i click the icon and it opens. Is there a better language for me?
These questions may sound stupid but i'v scrutinized the internet and found very little on these topics.
Any help to any question would be greatly appreciated!
Thanks alot,
TimHello all.
I just recently became interested in programming and
I chose Java to learn (not really sure why), I am notYou should have sound reasons to pick a language...
really interested in the whole Java Applets thing
because i can already do the same things in Flash.
What I really want to do is to be able to make a
program that can actually complete a task; for
instance Is it hard/possible to fabricate a program
that could say... do a simple task like open my
browser, copy a file, move something ect. What type
of file would it be? Would it be a standalone program
or .class for MS-DOS? All java files are compiled to bytecode, which are your .class files. Anyone wanting to use your bytecode will have to have the JRE installed...
Also (I'v been doing examples
and lessons) why are these done in my command prompt
and not just executed as the program (.java?) they
are (written in notepad). What is my java program
export file called that can be used by others with
java enviornment. See the previous answer...
I will finish an excersize and it
will say congrats you've just made you first program,
but if its a program then why am i running it in
command prompt unlike a program i have like Adobe
Photoshop where i click the icon and it opens. Is
there a better language for me?Thats because it starts you out with the language basics. Almost all languages start with the historic command shell programming.
If you want to write a GUI, then you will have to use AWT, Swing, and or SWT....
There are several advanced concepts you will have to master before you can write effective GUI's..
If your looking for an easy way out, learn VB. You will need M$'s IDE to compile though.. Or VBA from within your favorite Windows APP... Many support VBA like the Office Suite, Autocad, and Open Office, and many more..
These questions may sound stupid but i'v scrutinized
the internet and found very little on these topics.
Any help to any question would be greatly
appreciated!
Thanks alot,
TimHave fun Tim... -
Looking for a beginner guide - Adaptive RFC call BAPI in Web Dynpro Java
Hi,
im new in SAP Developeing. I developed some basic web Dynpro applications (after some tutorials) and they are all working.
Now i want to build an Web Dynpro application with an adaptive RFC Model.
I already imported the adaptive RFC Modell with a function Model (BAPI Z_...) from the R3 System successfully.
But if i deploy the application i will get following error:
com.sap.tc.webdynpro.services.exceptions.TypeNotFoundException: type extern:mypackages.com.types.BapiModel:mypackages.com.types.Zmbs_Bapi_Dispo_Orderdata 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.getStructure(DataTypeBroker.java:305)
at com.sap.tc.webdynpro.progmodel.context.DataNodeInfo.doInit(DataNodeInfo.java:234)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:671)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
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:449)
at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:387)
at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:416)
at com.sap.tc.webdynpro.progmodel.context.MappingInfo.getDataNode(MappingInfo.java:83)
at com.sap.tc.webdynpro.progmodel.context.MappingInfo.initMapping(MappingInfo.java:125)
at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:121)
at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.doInit(MappedNodeInfo.java:215)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:671)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
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.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:754)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:289)
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.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:377)
at com.sap.dictionary.runtime.ProviderFactory.resolveLogicalNameToJCODestination(ProviderFactory.java:322)
at com.sap.dictionary.runtime.ProviderFactory.internalGetProvider(ProviderFactory.java:181)
at com.sap.dictionary.runtime.ProviderFactory.getProvider(ProviderFactory.java:146)
at com.sap.dictionary.runtime.DdDictionaryPool.getProvider(DdDictionaryPool.java:97)
at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:79)
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.getStructure(DdBroker.java:180)
at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getStructure(DataTypeBroker.java:303)
... 49 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.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnectionUnMapped(SystemLandscapeFactory.java:178)
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)
... 59 more
Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to load client to connect to SLD. Please check your SLD connection settings using the Visual Admin.
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory$1.run(SystemLandscapeFactory.java:754)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getClient(SystemLandscapeFactory.java:747)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.readJCODestinationFromSLD(JCOClientConnection.java:511)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter(JCOClientConnection.java:439)
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)
... 62 more
Caused by: com.sap.sldserv.exception.SldServiceRuntimeException: Failed to create CIM client. Check via 'Visual Administrator' tool if the secure store is operational.
at com.sap.sldserv.SldApplicationService.getCimClient(SldApplicationService.java:117)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory$1.run(SystemLandscapeFactory.java:751)
... 70 more
Caused by: com.sap.lcr.api.cimclient.CIMClientException: java.net.MalformedURLException: URL must have a host part
at com.sap.lcr.api.cimclient.ClientFactory.createConnection(ClientFactory.java:466)
at com.sap.lcr.api.cimclient.ClientFactory.createClientImpl(ClientFactory.java:413)
at com.sap.lcr.api.cimclient.ClientFactory.createClient(ClientFactory.java:363)
at com.sap.sldserv.SldApplicationService.getCimClient(SldApplicationService.java:113)
... 71 more
........Looks like a have a Problem with JCO.
Is there a good guide, which explains the Basic steps in developeing Web dynpro applications and BAPI ?!thank you guys for all the answers.I have to read all the documentations.
to my szenario:
I installed on my notebook the Trial Versions of:
SAP NetWeaver Application Server 7.00/Java AS 7.00
SAP NetWeaver Developer Studio Version: 7.0.14
All my basic Web Dynpro Applications in Java are running (even with Adobe Interactive Forms) on the local NetWeaver Trail- Web AS Trail perfectly.
Now i want to connect per RFC to another SAPERP Server, which is in the intranet.
I did the whole RFC tutorial with the flights -
http://help.sap.com/saphelp_nw04/helpdata/en/c3/76b45d9688e04abe1a1070410ddc1e/content.htm (also with the JCO codeing etc)
so my web dynpro application should work.
I think I have to configure - like ramesh said something on the NetWeaver Trail.
So what do i need and configure excactly on my Netweaver Trial to work with RFC - to call the BAPIS in the other System?
- SLD ? JCO ?
If i over Web Dynpro - Content Administrator - >
it says "Connection to System Landscape Directory (SLD) could not be opended successfully." and all the buttons
create Jco destinations etc. are greyed out.
I didn´t configured the SLD and JCO in the Netweaver yet. -
I have a general question: could you tell me the reason why the RFCs to be called in JAVA Web Dynpro should be designed transferring the table values in the "Tables" parameter tab and not the "Import" and "Export" parameter tabs?
Re: Adaptive RFC question
Posted: Apr 3, 2006 7:59 PM Reply
Hi Tania,
You need to know first what is import parameter, export parameter and table parameter.
Import enables you to pass single set of values. Export enables you export single set of values. When you have data that is collection of n number of sets of data, use Table (Stucture) for import or export.
E.G.
Suppose, you are trying to see result of a student by Importing roll number of the student. You can use Export parameter to display result (a single set).
But if you want to see reuslts for n number of students by inputing n number of roll numbers, you need to use table structure for inputing the roll numbers and outputing the results.
An ABAP developer needs to document these parameters so that the WebDynpro developer can understand what are input tables and what are output tables.
Need to know more ? let me know.
Ashutosh -
Why we call adaptive RFC in webdynpro java..
Hi,
I want to know why we call adaptive RFC connection in webdynpro java whenever we import new rfc in our java web dynpro project. why name ADAPTIVE RFC is used
if we make any structure changes in the model which we imported in web dynpro project , like adding a new field, or changing the length/datatype of the existing field, then we always have to reimport the model in our webdynpro project so why adaptive name used. wats especial in the word ADAPTIVE RFCHi Rahul,
please read the guide:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df?quicklink=index&overridelayout=true
Best Regards,
Ervin -
Adaptive RFC and Locking Objects from WD Java
Hi,
There are some pieces of information available on this subject but no coherent and easy to follow "manual". Also some questions remain.
I'd rate this a very important, i.e. "business critical" problem. Therefore I would appreciate your help to get things sorted in this thread.
So let's start with a summary of what I think I understood so far (corrections welcome!):
- You can call RFCs from WebDynpro and locking will work (on the ABAP side).
- Once you release your JCo connection the locks will be released, though.
- Therefore, to keep a lock in between requests you have to keep the connection.
- You can keep the connection by passing WDModelScopeType.APPLICATION_SCOPE or WDModelScopeType.COMPONENT_SCOPE to the constructor of the model class.
- You can lookup the default scope for a model using
WDModelScopeType defaultScope = WDModelFactory.lookupDefaultScopeForModel((Class) modelClazz);
Now suppose you have many users, each holding some locks.
Would you not easily run out of JCo connections? On the other hand by default WebDynpro RFC Models seem to keep a connection per application instance (= user session).
Using WDModelScopeType: Do you really need to code this or can you just configure this during design time for the deployment?
blog=/pub/wlg/1061 claims the default is APPLICATION_SCOPE.
Will connections (and thus locks) be released automatically on an HttpSession timeout? I guess so because this means the end of the application and therefore end of scope WDModelScopeType.APPLICATION_SCOPE and WDModelScopeType.COMPONENT_SCOPE.
I'm also not clear about this:
/people/sap.user72/blog/2005/01/08/adaptive-rfc-models-in-web-dynprosome-pointers
"But to ensure that the record remains locked it is necessary reserve the connection that was used for locking and be made unavailable for other models and also the connection should remain open as long as the lifetime of the screen. This becomes similar to locking records through SAP Gui . This can be easily achieved by having separate models for locking RFCs defined with APPLICATION_SCOPE and isolating its connection by not grouping with other model objects."
What does "reserve the connection" mean?
Suppose you lock some object and afterwards want to allow the user to request more information about this or other objects.
Would you need to use a different connection for that?
Suppose you want to lock two objects.
Would you need to use two different connections for that?
Suppose you want to edit both objects and save the changes inside one transaction (with atomicity). A transaction normally is associated with a single connection (unless XA protocol is used). So how would this work?
What will cause the locks to be released?
- Application expiration (timeout)
- RFC that explicitely releases locks
- Transaction commit/rollback (?)
Reference:
I found some of the information and further pointers in the blog mentioned above and here:
Disconnect method
Looking forward to your replies
Markus
Message was edited by: Markus Wissmann
Another thread with the same topic and no final answers:
Handling object locking in R/3 from WD through RFC
Message was edited by: Markus WissmannHi,
This for If you send destination params are different u sent it thru URL param only.
For that u need generate URL by using the application .
For that purpose u need to create two applications u can call the first application in second application u can create URL and send Destination params with URL only.
Other wise u can create the par file that would be configured in portal and thru worksets u can pass the params like u mention the destinations.
Or at the time generationg URLS only u can add the destination names.
Thanks,
Lohi. -
How to set the tables parameter to a BAPI using adaptive RFC model
Hi,
I have a BAPI ZBAPI that has a tables parameter ZPernr of type ZTable with two elements pernr and name.
I used adaptive RFC model and created model classes for the BAPI.
My question how do i set list of pernr and name to the tables parameter in the webdynpro for java.
I have the following methods available
ZBAPI input = new ZBAPI();
1.ZTable table = new ZTable();
table.setPernr(pernr);
table.setname(name);
input.addZPernr(table);
how do i set the table parameter for multiple pernr and name
2.
add all the pernr and name to list and set that list to input in the following way
input.setZPernr(list) and list of typecom.sap.aii.proxy.framework.core. AbstractList
out of two methods mentioned which one is correct.
Please let me know the solution
Thanks
Bala DuvvuriHi Bala,
In your code:
List pernrList = new ArrayList();
pernrList should be declared as the type of class HROBJECT ( The structure name in the model e.g. the node PERFWARN type is Zhrecmfm_002_Perfrat_Warning_Input )
Try this:
HROBJECT pernrList = new HROBJECT();
pernrList.setPernr(pernr);
input.setPernr_List(pernrList);
// call BAPI execute method
If you want to pass list of pernrs, you can pass in alternate way
IPrivate<viewname>.I<nodeame>Node prNode = wdContext.node<node>();
IPrivate<viewname>.I<nodeame>Element prEle;
for (int i = 0; i < table.size(); i++) {
HROBJECT pernrList = new HROBJECT();
pernrList.setPernr(pernr); // Set the pernr from current record
prEle = prNode.create<nodeame>Element(pernrList);
prNode.addElement(prEle);
// call BAPI execute method
Once I execute the BAPI how do i iterate thru second table parameter PERNR_PERFRAT to get pernr and performance rating text
Say your node name is PERNR_PERFRAT
for (int i = 0; i < wdContext.nodePERNR_PERFRAT().size(); i++) {
wdContext.nodePERNR_PERFRAT().getPERNR_PERFRATElementAt(i).getPernr();
wdContext.nodePERNR_PERFRAT().getPERNR_PERFRATElementAt(i).getPerfrat();
Regards,
Siva -
Wht mean by adaptive rfc class?
hi
i m new in ep development. some one ask me which class ur using in adaptive rfc?
plz any one tell me ,class that we use during adaptive rfc or webservices in webdynpro java.Hi,
Didn't get your question.
When you use Adaptive RFC, and import bapi / web service then MODEL CLASS will be generated.
you can say you used input class (for input paramenters) or output class (for ouput parameters) of model class.
have a look at adaptive rfc http://help.sap.com/saphelp_nw04s/helpdata/en/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm
regards,
Pradeep -
hello all
I have one question about Adaptive RFC.
In my project, i have many RFC access. My question is, what best practices for import RFC. One Model and all RFC in this model?
Each RFC is a Model?
If each RFC is a model, can i set JCO name equal?
tks
DouglasDouglas-
Here are some points to keep in mind when using Adaptive RFC Models:
1. Use the Adaptive RFC Model for accessing RFCs in an SAP system.
2. Each Adatptive RFC Model should be in it's own Java package.
3. Group Adaptive RFC Models based on functionality.
4. Never have one RFC module per Adaptive RFC Model.
5. Model your RFC so that it can be reused.
Cheers-
Atul -
Adaptive RFC 2 gives error: com/sap/ide/jco/service/internal/R3Service
Hi,
I've run into the following problem about NWDS. This happens as I create a Model. It appears there is a new version of the Adaptive RFC Model, which is called Adaptive RFC 2 Model.
1. Right click on Models, and select Create.
2. Double Click on Adaptive RFC 2 Model
3. The error pops up. It says "An error has occurred. See error log for more details. java.lang.NoClassDefFoundError". Then if you click details you get "An error has occurred. See error log for more details. com/sap/ide/jco/service/internal/R3Service "
If you know which log to have a look, or what this error is about please let me know urgently. Any help if much appreciated.
Thanks,
Ogeday IsiklarHi,
I am also getting same problem. Waiting for solution
Regards,
Pradeep Kumar -
Error while importing a Adaptive RFC Model
Experts,
I am trying to import an Adaptive RFC Model. Before importing I need to speciy the connection parameters in the import wizard. I am using the single server method to connect and have specified all the parameters correctly. I have not specified a SAP router as I am using a test system. when I click next on the Model import wizard I get an error.
The trace shows-
[code]ConnectionFailed Exception : com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
Connect_PM GWHOST=test833, GWSERV=sapgw00, ASHOST=test833, SYSNR=00
LOCATION CPIC (TCP/IP) on local host
ERROR partner not reached (host 10.3.82.177, service 3300)
TIME Fri Jun 29 08:54:18 2007
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -10
MODULE nixxi_r.cpp
LINE 8715
DETAIL NiPConnect2
SYSTEM CALL SiPeekPendConn
ERRNO 10061
ERRNO TEXT WSAECONNREFUSED: Connection refused
COUN
at com.sap.ide.jcb.core.service.connection.internal.ConnectionManager.connect(ConnectionManager.java:220)
at com.sap.ide.jcb.core.service.connection.internal.ConnectionManager.connectToSingleServer(ConnectionManager.java:206)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.internalConnectToServer(SAPLogonPage.java:1769)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.access$2300(SAPLogonPage.java:46)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage$9.run(SAPLogonPage.java:1730)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:136)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:261)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:758)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.connectToServer(SAPLogonPage.java:1699)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.performFinish(SAPLogonPage.java:1805)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.initializeReimporter(ModelWizard.java:1410)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.performPostSapLogonPageForReimport(ModelWizard.java:1433)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog.nextPressed(ModelDialog.java:85)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:316)
at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
at org.eclipse.jface.window.Window.open(Window.java:563)
at com.sap.ide.webdynpro.modeleditor.ModelEditorCallback.reimportModel(ModelEditorCallback.java:218)
at com.sap.ide.webdynpro.service.modeleditor.ModelService.reImportModel(ModelService.java:207)
at com.sap.ide.webdynpro.service.modeleditor.ServiceWithUI.reImportModel(ServiceWithUI.java:120)
at com.sap.ide.webdynpro.tsmodel.application.actions.ReimportModelAction.run(ReimportModelAction.java:11)
at com.sap.ide.webdynpro.projectbrowser.actions.PBReimportModelAction.run(PBReimportModelAction.java:77)
at com.sap.ide.webdynpro.projectbrowser.actions.PBDevelopmentObjectAction.runInternal(PBDevelopmentObjectAction.java:80)
at com.sap.ide.webdynpro.projectbrowser.actions.PBDevelopmentObjectAction.run(PBDevelopmentObjectAction.java:61)
at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:224)
at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1407)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
Caused by: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
Connect_PM GWHOST=test833, GWSERV=sapgw00, ASHOST=test833, SYSNR=00
LOCATION CPIC (TCP/IP) on local host
ERROR partner not reached (host 10.3.82.177, service 3300)
TIME Fri Jun 29 08:54:18 2007
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -10
MODULE nixxi_r.cpp
LINE 8715
DETAIL NiPConnect2
SYSTEM CALL SiPeekPendConn
ERRNO 10061
ERRNO TEXT WSAECONNREFUSED: Connection refused
COUN
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1125)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3138)
at com.sap.ide.jcb.core.service.connection.internal.ConnectionManager.connect(ConnectionManager.java:216)[/code]
Can someone tell me problem..
Thanks in advance,
VineethIn service file if entry is not there... give the enty like
<b>sapgw<Inst.No> 33<Inst.No>/tcp
sapgw<Inst.No>s 48<Inst.No>/tcp</b>
where <Inst.No> = System Number of your R/3 system(00 or 01...)
In host file....
ip of the server name of the server.... -
Error while creating adaptive RFC model
Dear All,
I am trying to create Adaptive RFC model by which i can fetch data from R/3 trough BAPI and display on the webDynpro UI.
I am getting error
Exception: org.eclipse.swt.SWTException: Failed to execute runnable (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.55" but required at least version "640.0.76".)
Kindly suggest.
Thanks
AshishHi,
Check this link....
com.sap.mw.jco.JCO$Exception (104) RFC_ERROR_SYSTEM_FAILURE -
How to find out the destination of an "Adaptive RFC Model - DEPRECATED"
Hi All,
How to find out the destination of an "Adaptive RFC Model - DEPRECATED" of an running application
and Where is the destination created in the server .
I have got the code of the running project from NWDI .
Thanks in Advance
Regards
Piyas KumarHi,
I am not sure I fully understand the question, but as per the guide
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50f7192d-2808-2d10-189b-df3fa5f71abf
Excerpt from Page 7
Caveat Confector!1
ARFC1 destinations were created using the Web Dynpro Content Administrator tool. This tool is
still available for compatibility reasons, but the destinations it creates are not used by ARFC2
models!
Instead, you should use the u201CDestinationsu201D tool found on the Configuration Management screen of
the NetWeaver Administrator.
Therefore I think if you look up the application in the WD content Admin, there you can find out what kind of JCO/RFC connections are belonging to it. You can find it on http://<host>:<port>/webdynpro/dispatcher/sap.com/tcwdtools/Explorer
Browse your application here, and then select the JCO Connections tab on the right hand side.
I hope this helps.
Best Regards,
Ervin -
What is adaptive RFC and How to Use it
hi friends
what is the adaptive RFC
what is the use of it
how we can use it
explain me anyone
and send pdf also
thanks
ramu.Hi,
To give u a brief idea.
rfcs are used to call data from the backend that is R/3.We use the Bapis from the R/3 system which have some pre defined functionality and data is populated in the correspoding ui elements in webdynpro interface.earlier Rfcs were used but now we have adaptive rfcs in which
if there are changes in the backend(R/3 system) such as changes in the datatype,structures,fields would be automatically be refllected in the rfcs and there would be no errors in web dyn pro even if there is a change in the back end
to be more specific folow this link
http://help.sap.com/saphelp_nw70/helpdata/EN/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm
and try out this application
to use the rfcs firstly check out this document for configurations
Important Configurations for Calling ABAP Function from Java Web Dynpro Application
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07753b9-fa0c-2a10-64a8-c6754c45396e
heres the application.
Creating a Web Dynpro Application Accessing ABAP Functions
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/355b9c90-0201-0010-d2a8-89fece426526
regards
Nikhil Tapkir -
Problem in import adaptive RFC
Hi,
I am trying to import a simple RFC using Import adaptive RFC model.
There is no problem in the RFC execution, since i have tested it.
Problem is output is not getting displayed. The output field is blank.
Note:
RFC while importing, is in warning state(yellow triangle). But no error or warning in back-end.
Please let me know what is the mistake.
Thanks & Regards,
Krish.Any help would be really appreciated...
I was trying to create/Maintain JCo destions on Web Dynpro Content Administrator caught up with the 500 Internal Server Error
Error Summary
While processing the current request, an exception occured which could not be handled by the application or the framework.
If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
For further information about the Web Dynpro error page, error analysis and a description of well-known error situations, see SAP note 1113811.
Root Cause
The initial exception that caused the request to fail, was:
java.lang.NullPointerException
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:869)
at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractSystemLandscapeFactory$1.checkStatus(AbstractSystemLandscapeFactory.java:310)
at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:483)
at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.updateJCOClientStatus(JCOConnectionsDetails.java:534)
at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.addJCOClientToList(JCOConnectionsDetails.java:750)
... 73 more
Maybe you are looking for
-
Edit non-functional in Rel. 2 SQL Workshop Object Browser
Using IExplorer 6. Recently upgraded to HTMLDB Rel. 2. Thus far everything I've tried works fine except for the Object Browser code display and editing function. First problem: the code display for Packages, Functions, Views etc. does not wrap. Secon
-
JavaBeans and Tags in JSP pages
I have a java package and some code that already works but I need to "Webify" it. I have heard the words Tag Libraries and Beans to use with JSP pages instead of writing out the java code in the page. I have read the tutorial on Tag Libraries and it
-
Command to move content left/right in Smartform label for zebra printer
Issue : Command to move print content left/right in Smartform label for zebra printer. Requirement : If you changed the printer setting top position and left position, Print should start from a specific (X,Y) position. I am facing an issue while prin
-
I installed Quicktime Pro and downloaded a video from iTunes. It plays on my PC. How do I get it to play on my TV?
-
Error message: "Complete field"
When I'm trying to fill the field in the browser, to identify myself on my school website, there's an error message that says "complete field". I can"t put my complete email address. Please help!