Hi,
I am trying to execute my bapi at wdDoInit() method of view . Same Bapi will execute at Controller.
But my view bapi is not running.
Why this is happeded?
My code for View is like this
public void wdDoInit()
{
//@@begin wdDoInit()
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
{
wdContext.currentZcrm_Sales_Orders_InputElement().setRun_Bp("ALL");
wdContext.currentZcrm_Sales_Orders_InputElement().setUname("SUNIL103");
wdContext.currentZcrm_Sales_Orders_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
}
catch(WDDynamicRFCExecuteException e)
{
manager.reportException(e.getMessage(), false);
}
//@@end
}
Please help me to trace this thing ,
Regards,
Gurprit Bhatia