on 01-12-2009 10:01 PM
It is the first time I am seeing the issue of web dynpro, my problem is that I've done the following:
1) the amount my model rfc
2) linking the controller with my view
3) link the controller with my model
4) in the implementation of my controller links rfc with the model:
msgMgr = wdComponentAPI.getMessageManager();
input = new Z_Hr_Valida_Cambios_Personal_Input();
wdContext.nodeZ_hr_valida_cambi_person_input().bind(input);
5) I created a method in my controller is called callBAPI
public void callBAPI( )
{
//@@begin callBAPI()
try
{
input.execute();
wdContext.nodeOutput().invalidate();
}
catch(Exception e){
wdContext.nodeReturn().invalidate();
String msgText = wdContext.nodeReturn().currentReturnElement().getMessage();
if(msgText.length()==0)
{
msgMgr.raiseException("La llamada a la bapi a fallado", false);
}else{
msgMgr.raiseException(msgText, false);
}
}
//@@end
}
6)and the implementation of view I wrote the following code on the action that makes the call:
wdThis.wdGetPa40ContrController().callBAPI();
I have no idea that after this failure to allow it to function because I've tried and it does not work
please your help
Edited by: Priscila Flores on Jan 14, 2009 5:13 PM
Hi Try this Code
First create a Method in the Component controller getData() and copy the code given below
public void getData( )
{
Z_Hr_Valida_Cambios_Personal_Input input=new Z_Hr_Valida_Cambios_Personal_Input()
wdContext.nodeZ_hr_valida_cambi_person_input().bind(input);
wdThis.executeZ_Hr_Valida_Cambios_Personal_Input ( );
}
Then create a method executeZ_Hr_Valida_Cambios_Personal_Input and copy the code below
when you are setting any inputs to the RFC set them in the getData() method.
public void executeZ_Hr_Valida_Cambios_Personal_Input ( )
{
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
{
wdContext.nodeZ_hr_valida_cambi_person_input().modelObject().execute();
wdContext.nodeOutput().invalidate();
}
catch(WDDynamicRFCExecuteException e)
{
manager.reportException(e.getMessage(), false);
}
}
Edited by: Praveen Kommineni on Jan 14, 2009 10:11 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.