cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with web dynpro

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

hi , i did what you say.. but i couldn't be able to connet to the RFC.

This is what i did : i added an external breakpoint into my RFC but when i Executed it ..... nothing happens ( it never gets into the RFC ) .. and no errors.

Former Member
0 Kudos

Hey Guys,

this forum is about JDI.topic which you are discussing has nothing to do JDI.

Please post it in Webdynpro for Java forum

Thanks

Bala Duvvuri

Former Member
0 Kudos

Hey, Guys,

My problem was already solved , the only thing left is that the logical systems that are created when i try to import the RFC should be active.

Thanks, for you help

Priscila Flores.

Lima-Perú

Former Member
0 Kudos

.

Edited by: JONATHAN28 on Apr 15, 2009 5:22 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

This message was moderated.