on 05-24-2007 11:27 AM
Hi all,
Has any one encountered this problem, when calling RFC First time fine and getting data from BAPI, when i call same RFC again, Second Time, RFC execution Problem!. Any idea!, Now i restarted server, that may cause the problem. Other than this, please give me your idea.
Thanks
Ravi Golla
Hi Ravi,
Are you still getting this problem or it is resolved?
If not, please provide more details so we can figure it out where is the issue.
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhavik,
Yes i am still getting this problem.
I have View a called "Create Projects". Here Users can create their projects and once they click submit button, RFC will execute and stores data in BAPI.
onActionCreateProject()
{
wdThis.wdGetArchController().CreateProject();
wdThis.wdFirePlugOutToResults();
}
Once FirePlugout it takes to Another View called "Results". Here results will appear what they have submitted.
First time you submit project, it stores in database and results will appear in ResultsView.
Once again you come back and you want to submit another project, here RFC is not executing. i found it by Debuging ABAP. first time it hits break point and i see results. Second time, it does not hit break point at all, not even store results.
Really i face strange Problems!
i have to finish project, i am strucked with funny errors.
let me know any idea or sugisstions. I remember you solved one of my problem TableSorter!
Thanks & Regards
Ravi Golla
Hi Bhavik,
<b>In View Controller:</b>
public void onActionCreateProject(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionCreateProject(ServerEvent)
wdThis.wdGetArchCompController().CreateProject();
wdThis.wdFirePlugOutToProjectCreationResult();
//@@end
}
<b>In Custom Controller:
</b>
wdDoInit()
{
__Arch__Arm_Project_Create_Input create = new __Arch__Arm_Project_Create_Input();
wdContext.node__Arch__Arm_Project_Create_Input().bind(create);
}
public void CreateProject( )
{
//@@begin CreateProject()
try
{
wdContext.current__Arch__Arm_Project_Create_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
}
catch(WDDynamicRFCExecuteException ex)
{
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(ex.toString());
ex.printStackTrace();
}
//@@end
}
I am using other functional modules they all working fine, this is one only has problem
Thanks Bhavic.
Regards
Ravi
HI Ravi,
I am guessing that you have bound your input parameters to the screen elements. And you are setting values from there only.
Now, Leave initiallizing of model node in customer controller wdinit method. But, you have to invalidate your model input node and bind it again when you come back to your first view.
So, you can write following code in the inbound fire plug method in first view (This plug will be fired from your second view):
wdContext.node__Arch__Arm_Project_Create_Input().invalidate();
__Arch__Arm_Project_Create_Input create = new __Arch__Arm_Project_Create_Input();
wdContext.node__Arch__Arm_Project_Create_Input().bind(create);
Now, you have refreshed your model node. So, it will work as you are executing it first time.
Let me know whether it works or not for you.
Regards,
Bhavik
Hi Bhavik,
Thanks for your reply, my problem has been solved. I am invalidating same node twice. one time in inboundPlug() of my first view, and second time invalidating() in action of second view( that takes me to firstview in Second View). So that causes my problem. i am giving rewarding points for it. Thanks for your time and giving valuable suggestion.
Thanks and Regards
Ravi
Hi Ravi,
After execution of RFC you disconnect the model.
finally
{
SaveModel svModel = (SaveModel)WDModelFactory.getModelInstance(SaveModel.class);
svModel.disconnectIfAlive();
}
I hope it will work.
Regards,
Mithu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can u be more precise, that where ur executing the RFC first and second time.
mostly this will not happen.
Regards,
Vijai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay,
I am calling RFC from one View called "Create Projects", Once i submit data from this view, it is storing data in Backend and it sends me results which are displayed in another view. From this View once i come back to Create Projects and when i try to submit another project, Here RFC is not executing, this i found in by doing Debging. This is really strange problem.
if know anything, give me your idea.
Thanks
Ravi
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.