cancel
Showing results for 
Search instead for 
Did you mean: 

output not obtained in frontend from backend

Former Member
0 Kudos

hai all,

iam using adaptive rfc model.the rfc gives the required output when its run in the backend but when trying to get the same in front end its not giving the output.what can be the problem.

plz help me...

Thanks n Regards

Sharanya.R

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

While Executing a RFC see that you are giving input to all the Mandatory import fields.... if you don't set one mandatpry field also RFC will not be executed and it ill not give you output.

Thanks,

Sunitha Hari

Former Member
0 Kudos

Hey,

some times user have permissons to get RFC FNM into WD side.

try to use the smlg transaction add permissions ask ur admin.

Thanks

Lohi.

Former Member
0 Kudos

hai lohitha n sunitha,

when i execute the rfc its not giving any error but output is not obtained.

public void executing( )

{

//@@begin executing()

wdComponentAPI.getMessageManager().reportSuccess("hi");

Zmmin_Display_Busconfig_Input objData = null;

try

{

objData = new Zmmin_Display_Busconfig_Input();

wdContext.nodeZmmin_Display_Busconfig_Input().bind(objData);

wdComponentAPI.getMessageManager().reportSuccess("1");

wdContext.currentZmmin_Display_Busconfig_InputElement().modelObject().setIv_Voltage(wdContext.currentContextElement().getInput_node());

wdContext.currentZmmin_Display_Busconfig_InputElement().modelObject().execute();

wdComponentAPI.getMessageManager().reportSuccess("2");

for(int i=0;i<wdThis.wdGetContext().nodeEt_Busconfig().size();i++)

{

wdComponentAPI.getMessageManager().reportSuccess("3");

wdComponentAPI.getMessageManager().reportSuccess(""+wdThis.wdGetContext().nodeEt_Busconfig().getEt_BusconfigElementAt(i).getBus_Config());

}

}

catch(Exception e)

{

wdComponentAPI_getMessagemanager().reportSuccess(""+e);

}

! and 2 are getting printed but 3 is not getting printed.Iam calling this method in the init of view

Even before that i have set the value of the attribute input_node as 220KV wch is a input.

Thanks n Regards

Sharanya.R

Edited by: Sharanya R on Feb 28, 2008 8:01 AM

Former Member
0 Kudos

Hi ,

Try Priniting the value of the input node after Hi stmt...

wdComponentAPI.getMessageManager().reportSuccess(wdContext.currentContextElement().getInput_node());

Thanks,

Sunitha Hari

Former Member
0 Kudos

hai sunitha ,

i tried printing and its getting printed.

...220KV is printed.

Thanks n Regards

Sharanya.R

Former Member
0 Kudos

Hi ,

In R/3 Check the RFC ... se37 what are the import paremeters and what are the mandatory import fields for the function module nodeZmmin_Display_Busconfig.

Thanks,

Sunitha Hari

Former Member
0 Kudos

hai sunitha,

In r/3 the one and oly mandatory input parameter is the voltage and the output is bus configuration.

Thanks n Regards

Sharanya.R

Former Member
0 Kudos

Hi ,

plz check the if nodeEt_Busconfig(). is the node which is under output node.

Think would have changed the name of the node under output .

Replace* wdThis.wdGetContext().nodeEt_Busconfig() *with

wdcontext.nodeEt_Busconfig()<node under output>.size

for(int i=0;i<wdThis.wdGetContext().nodeEt_Busconfig().size();i++)

{

wdComponentAPI.getMessageManager().reportSuccess("3");

wdComponentAPI.getMessageManager().reportSuccess(""+wdThis.wdGetContext().nodeEt_Busconfig().getEt_BusconfigElementAt(i).getBus_Config());

}

Former Member
0 Kudos

HAI sunitha

i have given my context structure of custom ctrller.check that plz.

ZMM_DISPLAY_BUS_INPUT

| |_Output

| |_ET_BUS(node--internal table)

| |_bus_config(this is the output)(attribute)

|

|_Et_voltage(this is the input to be passed)

Thanks n Regards

Sharanya.R

Edited by: Sharanya R on Feb 28, 2008 8:34 AM

Former Member
0 Kudos

Hey Shar,

It shoud work what I have given the other post.

have u tried that.....?

Before execute method stmt.

find the size of ur node if it comes one it returns data otherwise no records are coming.

int i = wdContext.node<outputnodename>().size();

wdcomponentAPI.getMessageManager().reportSuccess(i);

this make sense.

thanks,

Lohi.

Former Member
0 Kudos

Hi Sharanya.R,

Have u tried debugging it.In TCode SE37 ,put an external breakpoint & run the application. Check whether all the input parameters are getting passes correctly or not. There u can find out the point where exactly its failing.

regards

Sumit

Former Member
0 Kudos

hai lohitha,

i tried printing the size and it gives 0.

Thanks n Regards

Sharanya.R

Former Member
0 Kudos

Hi ,

In the Context structure u gave input attribute as Et_voltage

In code U r setting the value setIv_Voltage

wdContext.currentZmmin_Display_Busconfig_InputElement().modelObject().setIv_Voltage(wdContext.currentContextElement().getInput_node());

change the above code to below one and Execute

objData.setEt_Voltage(wdContext.currentContextElement().getInput_node());

Thanks,

Sunitha Hari

Former Member
0 Kudos

hai sunitha,

its oly IV_voltage...can anything else be the reason for the same.

Thanks n Regards

Sharanya.R

Former Member
0 Kudos

Hi Sharanya,

wdContext.currentZmmin_Display_Busconfig_InputElement().modelObject().setIv_Voltage(wdContext.currentContextElement().getInput_node());

instead..try this..

objData.setIv_Voltage(....);

after setting input then bind...

wdContext.nodeZmmin_Display_Busconfig_Input().bind(objData);

then execute..

-

Shyam.

Former Member
0 Kudos

Hi Sharanya.R,

I think the best way to find any problem at runtime,is the debugging.

regards

Sumit

Former Member
0 Kudos

hai,

no its Iv_voltage only.wat all can be the other reasons fo this case.

Thanks n Regards

Sharanya.R

Former Member
0 Kudos

Hi Sharanya

It should give you proper output.

You need to create model, then add it in used model.

Hope you are binding it and executing it.

Regards

Pratyush