cancel
Showing results for 
Search instead for 
Did you mean: 

entering into the method created in custome controller but no output

Former Member
0 Kudos

Hi Experts,

Please help me to get the data.I have followed the same process to access the database but no output i am getting.But the method created in custome controller is called and message is also displayed.But no error it is showing.Please tell me where i am wrong.

Regards

Nutan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

This was the issue with the input data which was passedd to the bapi.

Former Member
0 Kudos

Hi,

Can you post yourmethod?

Regards

Former Member
0 Kudos

Hi Isaias,

Method is

public void ExecuteBapi( )

{

//@@begin ExecuteBapi()

IWDMessageManager manager = wdComponentAPI.getMessageManager();

manager.reportSuccess("entered");

try

{ wdContext.currentZbapi_Role_Getlist_InputElement ().modelObject().execute();

wdContext.nodeEt_Role().invalidate();

}

catch(Exception e)

{

e.printStackTrace();

}

And the action which is calling this method is:

public void onActionDisplayRole(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionDisplayRole(ServerEvent)

wdThis.wdGetFetchDataCustController().ExecuteBapi();

//@@end

}

Please check it where am i wrong? Urgent need

Regards,

Nutan

Former Member
0 Kudos

Hi Isaias,

These codes were given in an example so i have just used it from there. Only changed the context elements.

Regards,

Nutan

Former Member
0 Kudos

Hi Nutan,

Verify if nodeEt_Role ( wdContext.nodeEt_Role().invalidate(); ) is your Result/Output node.

Regards

Former Member
0 Kudos

Hi Nutan,

Write this line of code in your catch block.

wdComponentAPI.getMessageManager().reportException(e.toString(),true);

Please post the error so that we can further think on it.

Regards,

Murtuza