I canu00B4t reimport a model
Hi forum
When i try to reimport a "model" i got the next error:
!MESSAGE Apr 28, 2008 12:58:45... com.sap.ide.webdynpro.ui.service.ServicesUI [Thread[main,5,main]] Error: Internal error
Plugin name: Web Dynpro Model Editor
Plugin ID : com.sap.ide.webdynpro.modeleditor
Class : com.sap.ide.webdynpro.modeleditor.ModelEditorCallback
Method : ReimportModel
Message : An error ocurred. See error log for more details.
Exception : java.lang.NullPointerException: null
!STACK 0
java.lang.NullPointerException
at com.sap.ide.jcb.core.service.SAPLogonHelper.<init>(SAPLogonHelper.java:48)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage$MessageServerPane.fillUpLoadBalancingPaneSystems(SAPLogonPage.java:1003)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage$MessageServerPane.show(SAPLogonPage.java:303)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.createControl(SAPLogonPage.java:91)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.createPageControls(ModelWizard.java:408)
at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:524)
at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:473)
at org.eclipse.jface.window.Window.create(Window.java:302)
at org.eclipse.jface.window.Window.open(Window.java:552)
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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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)
I have the 7.0.11 SAP Netweaver Developer Studio version.
Can help me, ?
Edited by: Josue Cruz on Apr 28, 2008 8:07 PM
Hi Göran
Thnks for your answer
This always has been happening, i´m thinking that this is a problem of Windows Vista Operating System, because one coworker has the same project and the same NWDS with the same SP but he has Windows XP.
I am working with Adaptive RFC Model.
I can´t logon in anyone backend system (R/3), because i can´t open de wizard reimport model...
well...
t hnks
Similar Messages
-
Hi,
I already created a model and running the application.Now one more table is added to that model by SAP team.So by trying to deploy the application it is giving a runtime exception as that particular tablefilename.java not found and it as a "Class not found exception"
Now i clicked on my model and selcted "Reimporting the model" and i restarted the server.Only that pariticular TableFilename.java gets added to my files list but the main module which is using this table didnt get updated.so i am getting build errors.
Can u plz help me out
Regards
PadmaPadma-
A few questions:
1. When you re-imported your model did you get a list of deltas?
2. Did this list include the new tables?
3. Did you Reload your development component?
3. Did you rebuild and redeploy your application?
if your answer to all of the above is yes then please check the logs and share the error message.
Cheers-
Atul
Edited by: Atul Savur on Feb 21, 2008 11:29 PM -
Hi,
I have created a Model for a Web DynPro application using Adaptive RFC. It is working fine when pointed to development. But when I pointed to Quality, it is throwing error. I have changed the message server to Quality server while creating JCO connection in Content Administration. Do I have to reimport the Model?
Regards,
VaibhavHi All,
When we deploy after changing SLD configuration(R/3 Dev to R/3 Quality) we are getting following message:
<b>Accessing System QAS is not possible because RFC Metadata was retrieved using System DEV. Please assure you have configured the RFC Connections properly. A Server restart may be necessary!</b>
Regards,
Vaibhav -
Error in reimporting the model
hi,
I tried to import a model in which a table is added in the rfc.for the first time when I reimported it was working fine.then for some reason I have reverted the code back in DTR.then when I tried to reimport the model
I am getting the following error.i even tried restarting the server and reload the application.
description
RFC.Tablename cannot be resolved (or is not a valid type) for the argument o of the method addInteral tablename
resource
RFC_Input.java
folder name
location
line 169
description
RFC.Tablename cannot be resolved (or is not a valid type) for the argument o of the method addInteral tablename
resource
RFC_Output.java
folder name
location
line 147Hi Arun,
Looks like metadata information is corrupted !!
Delete the model and reimport.You need to do model binding also.
Regards, Anilkumar -
hello all,
I am working on ess personal information->personal data web dynpro application.
backend guys add a extra field in rfc strucure i have to just display this field on screen.
i did reimport model ,
then did the model binding for this extra added field.
then i build the application and deployed it .
but after that i getting an error but if i remove that extra field from mapping then there is no error .
jco is ok.
below is the error
com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Access via NULL object reference not possible., error key: RFC_ERROR_SYSTEM_FAILURE
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:101)
at com.sap.xss.per.fc.persinfo.FcPersInfo.onCleanup(FcPersInfo.java:614)
at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfo.onCleanup(InternalFcPersInfo.java:807)
at com.sap.xss.per.fc.persinfo.FcPersInfoInterface.onCleanup(FcPersInfoInterface.java:246)
at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfoInterface.onCleanup(InternalFcPersInfoInterface.java:299)
at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfoInterface$External.onCleanup(InternalFcPersInfoInterface.java:463)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.cleanUp(FPMComponent.java:645)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.access$1000(FPMComponent.java:78)
at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.exitCalled(FPMComponent.java:965)
at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.exitCalled(FPMComponent.java:1136)
at com.sap.pcuigp.xssfpm.wd.BackendConnections.wdDoExit(BackendConnections.java:124)
at com.sap.pcuigp.xssfpm.wd.wdp.InternalBackendConnections.wdDoExit(InternalBackendConnections.java:228)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingCustomController.doExit(DelegatingCustomController.java:77)
at com.sap.tc.webdynpro.progmodel.controller.Controller.exitController(Controller.java:180)
at com.sap.tc.webdynpro.progmodel.controller.Controller.exit(Controller.java:154)
at com.sap.tc.webdynpro.progmodel.controller.Component.exitController(Component.java:251)
at com.sap.tc.webdynpro.progmodel.controller.Controller.exit(Controller.java:154)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.exit(ClientComponent.java:219)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.exit(ClientApplication.java:474)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.destroy(ClientApplication.java:527)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.destroy(ApplicationSession.java:396)
at com.sap.tc.webdynpro.clientserver.session.ClientWindow.destroyApplicationSession(ClientWindow.java:235)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doDestroyApplication(ClientSession.java:1003)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doSessionManagementPostProcessing(ClientSession.java:789)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:264)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
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:860)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1288)
at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:355)
at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:548)
Thanks .
PunitHi Punit,
Follow the two things
1. Make sure that the JCO you are using is working fine.
Check that the userid and password is still valid.
2. Check whether the RFC is working fine or any changes happened? Log in with the user same as portal and then execute the RFC.
3. Restart your server and NWDS.
it will solve your problem.
thanks -
Problems with reimport a model
Hello all,
we changed the structure of our rfc function and want to reimport the new structure in WebDynro but nothing happends. Has anyone have any idea?
We changed the name of table parameters and the type. I also tryed to delete the model and create it new with the same name, but it occurse so many errors, that I think that's not the right way.
Best regards
PetraHi Petra,
Are you getting error during compilation or during execution.
If you are getting errors during compilation, I believe that will mostly have to do with the parameter names that have changed and are being referenced in the code.
Are these the errors that you are talking about or some others. If this is the case, you will have to change your code to reflect the new parameter names and types in the code.
Hope this helps.
Pavan -
Reimport a Model of a Custom Bapi Function
Hi,
I made a custom Bapi to be used in a WebDynpro project and it worked well. Then I added a new input parameter in my Bapi to use it as an input field in a view and so I reimported my bapi in my WebDynpro project. The problem is that if I bind the new bapi parameter to an input field in a view, I rebuild and deploy, the application doesn't work anymore. On the contrary, if I don't use the new bapi parameter, the application works as before.
Why this behaviour? I need to add a new parameter to my bapi, but I don't want to make my project from the beginning.
Thanks,
AntonioHi,
Reimorting model lead to some inconsistency in the WAS. It has metadata stored in cache and this data should be reimported from backend. The only way I know to do this is to restart the J2EE server. It should help.
Regards.
Victor -
Changes in RFCs and reimport a model.
Hello everybody
I've developed wd application. I need to call RFCs , so I've created a rfc model by doing this. But now the RFCs have been modifyed so I need to reimport a new model. The problem is that this action causes big problems in my aplication and makes it insonsistent.
Do you know that's the best way to do this ?.
Thanks in advance.
Best regards.
FernandoHi,
I've had this a few times and I've found it is sometimes easier to simply delete your context from the Model controller and re-create it. Then update all of the contexts in your other components.
It seems that if you change an RFC and then re-import the model sometimes your contexts can loose the mappings even if things haven't changed.
Hope this helps.
Gareth Ryan.
Message was edited by: Gareth Ryan
Message was edited by: Gareth Ryan -
Java.lang.NullPointerException while reimporting model
Hi All,
I have a Web Dynpro project that contains several models.
When I try to add a new RFC (by reimporting the model) I get java.lang.NullPointerException.
I can add the RFC to a new model without any problem but I need to add it to this specific model.
This is the full error:
Plugin Name: Web Dynpro Model Editor Services
Plugin ID: com.sap.ide.webdynpro.service.modeleditor
Class: com.sap.ide.metamodel.importers.rfcmodel.DynamicRFCModelImporter
Method: doImportDynRfcModel()
Message: The RFC could not be imported. Please rectify the error and then try importing the model.
Exception: com.sap.ide.metamodel.importers.rfcmodel.RFCImportFailedException: RFC Import failed. Cause: class java.lang.NullPointerException:null
java.lang.NullPointerException
at com.sap.ide.metamodel.importers.rfcmodel.DynamicRFCModelImporter.ImportRFC(DynamicRFCModelImporter.java:316)
at com.sap.ide.metamodel.importers.rfcmodel.DynamicRFCModelImporter.doImport(DynamicRFCModelImporter.java:196)
at com.sap.ide.metamodel.importers.rfcmodel.reimport.DynamicRFCModelReimporter.doImport(DynamicRFCModelReimporter.java:331)
at com.sap.ide.metamodel.importers.rfcmodel.reimport.DynamicRFCModelReimporter.getImportLog(DynamicRFCModelReimporter.java:264)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$11.run(ModelWizard.java:1344)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:302)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:252)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:758)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.doReimportDynRfcModel(ModelWizard.java:1361)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog.nextPressed(ModelDialog.java:69)
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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:286)
at com.sap.ide.eclipse.startup.Main.run(Main.java:795)
at com.sap.ide.eclipse.startup.Main.main(Main.java:602)
I tried to restart the NWDS or test it on another computer - didn't help.
My NWDS version is SP16.
Thanks,
OmriHi,
Check whether this helps.
RFC Reimporting failed
BAPI Reimport
-Nagarajan. -
Hi Experts,
I have got the build error when I reimported the RFC model. It could not findout the classpath of the existing java file after reimport.
Errors:
com.xxx.epic.rtd.bean.BackedDataBean cannot be resolved (or is not a valid type) for the the method changeTab.
actually the BackedDataBean exist in the same hierarchy but it shows error when I reimported the model.
I have got lot of errors - all of them are not pointing to classpath. Its working fine before reimport the model. I have refreshed the DC and rebuild the DC but same errors.
Anybody share your idea how to solve this problem please.
Thanks,
Krishna.Hi Krishna,
Try the following:
1. Organize imports: Place the cursor near the error and press CtrlShiftO.
2. Rebuild the project. Still if you have problems,
3. Right click on the DC-> Repair -> Project structure and Classpath. Still if you have problems like reference to classpath.
4. Right click on the DC-> Properties -> Java Build path -> if JRE_LIB is not there "Add Library" -> JRE system Library -> Choose proper JRE -> Finish.
5. Similarly Add External JARs also. Still if you have problems,
6. Close and Open the DC. Still if you have problems,
7. Close and Open NWDS as well.
I hope this solves your problem.
regards,
Siva -
Hi All
We have added the custom fields in the leave encashment request page in sap ECC .
How can we replicate the same fields in the portal webdynpro java leave encashment request page .
I have restarted the portal server .But I dont find the custom fields in the personalization popup screen.
Next I tried by importing ESS leave encashment war file onto nwds for reimporting the model.
But I dont get the proper path where do we need to reimport the model .
please find the screen shot .
awaiting for the solution .
Thanks & Regards
Deepikaawaiting for response .
Thanks & Regards
Deepika -
Dont want to restart Server everytime I reimport model
Hello,
Everytime I reimport a model, I get a popup saying "Please restart your J2EE Server......" with no option to cancel it.
Any ways I can avoid this?
Regards,
ShubhamHi Shubam,
Whenever u <b>Reimport </b>the model server <b>Restart </b>is necessary otherwise the changes will not be reflected. You will get an error when you deploy the application.There is no go around except restarting the server because after first model usage metadata gets cached and stay in the cache as long as the server is running .So, Once you restart the server the cache will be cleared.
Refer to the below thread once.
Re: Need to Restart J2EE Engine after Reimporting a Model
Regards,
Jhansi -
Reimport model requires server restart for version nw 04s sp15
Hi All,
Does reimport of model requires sever restart in NW 04s sp15, Sometimes it works with out restart of server. .Please give your inputs.
Thanks.Hi,
The J2EE engine holds a cache of deployed model objects that is optimized by technical system.
Therefore if there are updates in the metadata of a deployed model object, it is necessary to restart the J2EE engine to flush this cache, and make the new interface metadata available to the Web Dynpro application.
Its not always required to restart the server.Its only required when there are updates in the model object.
Thanks n Regards,
Archana -
Reimport Model after BAPI Changes
Hi,
Understand that a workaround to refresh the cache/metadata is to restart the J2EE server, after some BAPI changes and reimport the model.
Is there any solution without restarting the J2EE server?
Thank you.Hi Vincent,
The only possible way to refresh the Metadata is to restart the J2EE server.
check this link
Reimport a Model of a Custom Bapi Function
Regards,
shyam. -
RFC model values are not shown in table
Hi there,
I can't gather the values from the RFC FM in my table, while this has been done exactly the same way as other tables which do get values... Any reason for this?
I have 2 DC's:
-data DC which acts as a container for the RFC-imported datamodels
-bupa DC in which the implementation is done
Custom Controller CuCoMain (from bupa DC):
Context:
OutputRelContacts (model node bound to model BuPaRelationsModel.__Crm_Bb_Bupa_Rels_Output)
cardinality: 0...n; selection: 0...1
> Rel_Contacts_Result (node of OutputRelContacts)
=> bound to BuPaRelationsModel.__Crm_Bb_Bp_Rel_Res_Ds
cardinality: 0..n; selection: 0...1
There is no context input necessary since 'related contacts' is dependent of the bpnr which I pass as parameter (see below).
Implementation in CuCoMain
public void TriggerAccConSearch( java.lang.String Mode, java.lang.String BuPaNr )
//@@begin TriggerAccConSearch()
//also see comments in TriggerBuPaSearch
accContactsInput = new __Cernum__Crm_Bb_Bupa_Rels_Input();
accContactsInput.setRel_Mode(Mode);
accContactsInput.setBp_Number(BuPaNr);
try{
accContactsInput.execute();
wdContext.nodeOutputRelContacts().invalidate();
accContactsOutput = accContactsInput.getOutput();
this.wdThis.wdGetContext().nodeOutputRelContacts().bind(accContactsOutput);
catch(Exception e){
msgMngr.reportException(e.getMessage(),true);
//@@end
Context in view
Context node OutputAccContacts (bound to CuCoMain.OutputRelContacts.Rel_Contacts_Result)
cardinality: 0...n; selection: 0...1
Implementation to trigger TriggerAccConSearch:
String SelectedBuPaNr = this.wdThis.wdGetContext().nodeVOutputDetails().currentVOutputDetailsElement().getBpnumber();
String RelMode = "C";
this.wdThis.wdGetCuCoMainController().TriggerAccConSearch(RelMode, SelectedBuPaNr);
RelMode & SelectedBuPaNr are filled with values.
So what did I do wrong...? I'm out of inspiration; I've reimported the model, rebuilt the entire application, redone the context, redone the implementation but up until now nothing worked.
Any help is greatly appreciated
KR
AHi there,
Yes, as stated earlier, my RFC is being called by the application and the parameters are correct (input & output). Somehow, these values just don't get transferred to the node.
Also, you can try the following piece of code before the RFC call at the Dynpro end :
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try{
wdContext.current<RFC_Name>_InputElement().modelObject().execute();
wdContext.node<Output_Node_Name>().invalidate();
} catch(WDDynamicRFCExecuteException ce) {
manager.reportException(ce.getMessage(), false);
I don't think that will help in my situation. In my situation there are 3 tables which have to be filled by the nodes.
These 3 tables are all based on the same RFC (with different input parameters). The weird thing is that one of these tables works perfectly and the others just don't work. Even weirder is that all the RFC-uses are implemented the same. (See below)
The working RFC call (table is populated):
public void TriggerAccRelSearch( java.lang.String BuPaNr, java.lang.String Mode )
//@@begin TriggerAccRelSearch()
//also see comments in TriggerBuPaSearch
accRelsInput = new __Crm_Bb_Bupa_Rels_Input();
accRelsInput.setRel_Mode(Mode);
accRelsInput.setBp_Number(BuPaNr);
try{
wdContext.nodeOutputRelationships().invalidate();
accRelsInput.execute();
accRelsOutput = accRelsInput.getOutput();
//wdComponentAPI.getMessageManager().reportWarning("TriggerAccRelSearch Result of RFC START" + accRelsOutput.getRel_Result().listIterator()..toString() + "TriggerAccRelSearch Result of RFC START");
//wdComponentAPI.getMessageManager().reportWarning("First line: " + accRelsOutput.getRel_Result().get(0).toString());
//currentRel_ResultElement().getRelationship().toString());
this.wdThis.wdGetContext().nodeOutputRelationships().bind(accRelsOutput);
wdComponentAPI.getMessageManager().reportSuccess("test accrelsearch: " + wdContext.nodeOutputRelationships().nodeRel_Result().currentRel_ResultElement().getAttributeAsText("Relationship").toString());
catch(Exception e){
msgMngr.reportException(e.getMessage(),true);
finally{
DynamicRFCModel modelinst;
modelinst = (DynamicRFCModel) WDModelFactory.getModelInstance(BuPaRelationsModel.class);
modelinst.disconnectIfAlive();
//@@end
The non-working RFC-calls (tables are NOT populated):
public void TriggerAccReltdEmpSearch( java.lang.String Mode, java.lang.String BuPaNr )
//@@begin TriggerAccReltdEmpSearch()
accReltdEmplInput = new __Crm_Bb_Bupa_Rels_Input();
//accReltdEmplOutput = new __Crm_Bb_Bupa_Rels_Output();
accReltdEmplInput.setRel_Mode(Mode);
accReltdEmplInput.setBp_Number(BuPaNr);
try{
wdContext.nodeOutputReltdEmp().invalidate();
accReltdEmplInput.execute();
accReltdEmplOutput = accReltdEmplInput.getOutput();
this.wdThis.wdGetContext().nodeOutputReltdEmp().bind(accReltdEmplOutput);
//wdComponentAPI.getMessageManager().reportSuccess("test accReltEmp: " + wdContext.nodeOutputReltdEmp().nodeReltd_Emp_Result().currentReltd_Emp_ResultElement().getAttributeAsText("Relationship").toString());
catch(Exception e){
msgMngr.reportException(e.getMessage(), true);
msgMngr.reportSuccess("error: " + e.getCause());
finally{
DynamicRFCModel modelinst;
modelinst = (DynamicRFCModel) WDModelFactory.getModelInstance(BuPaRelationsModel.class);
modelinst.disconnectIfAlive();
//@@end
and:
public void TriggerAccConSearch( java.lang.String Mode, java.lang.String BuPaNr )
//@@begin TriggerAccConSearch()
//also see comments in TriggerBuPaSearch
accContactsInput = new __Crm_Bb_Bupa_Rels_Input();
accContactsInput.setRel_Mode(Mode);
accContactsInput.setBp_Number(BuPaNr);
try{
wdContext.nodeOutputRelContacts().invalidate();
accContactsInput.execute();
accContactsOutput = accContactsInput.getOutput();
wdComponentAPI.getMessageManager().reportWarning("TriggerAccConSearch Result of RFC START" + accContactsOutput.getRel_Result().toString() + "TriggerAccConSearch Result of RFC START");
this.wdThis.wdGetContext().nodeOutputRelContacts().bind(accContactsOutput);
catch(Exception e){
msgMngr.reportException(e.getMessage(),true);
finally{
DynamicRFCModel modelinst;
modelinst = (DynamicRFCModel) WDModelFactory.getModelInstance(BuPaRelationsModel.class);
modelinst.disconnectIfAlive();
//@@end
Parameter definition:
__Crm_Bb_Bupa_Rels_Input accRelsInput;
__Crm_Bb_Bupa_Rels_Output accRelsOutput;
__Crm_Bb_Bupa_Rels_Input accReltdEmplInput;
__Crm_Bb_Bupa_Rels_Output accReltdEmplOutput;
__Crm_Bb_Bupa_Rels_Input accContactsInput;
__Crm_Bb_Bupa_Rels_Output accContactsOutput;
The table dataSources have all been bound to the context properly, as well as the table columns. Also, in the backend the correct values have been passed and retrieved.
Maybe you are looking for
-
EtreCheck version: 1.9.15 (52) Report generated 7 September 2014 21:25:45 BST Hardware Information: ? MacBook Pro (13-inch, Mid 2009) (Verified) MacBook Pro - model: MacBookPro5,5 1 2.26 GHz Intel Core 2 Duo CPU: 2 cores 2 GB RAM Video Inform
-
Cursor doesn't change to bush when using brush adjustment
I'm running into an issue when I using the brush adjustment in LR 5.5. The cursor doesn't change from the pointer to the brush cursor. Does any one have a fix for this? I'm running the latest version of LR. I have an 2011 iMac running OS 10.9.4 Any h
-
Purchase Order O/P Proposal
Hi I need to propose o/p for Doc Type/Pur Org/Pur Grp/Vendor/Material Combination... Since Material is in Line Item level the value is not getting in KOMPBEA-MATNR and in the determination analysis it says ACCESS NOT MADE(Initialized Field)... How ca
-
Debug a FM call with DESTINATION
Hi, how it is possible to debug a Function Module which is called in the BACKEND (with DESTINATION ). If I set a breakpoint in the backend and call the FM frem outside (SAP SRM) the debugger doesn't stop there. Regards ertas
-
Hi, We are using DM Dynamic Work flow in Project Server 2010 environment. When we tried to create a project the project is creating and teh workflow is not starting-- in the queue jobs the start work flow is failing withput blocking correlation -- be