Skip to Content
0
Former Member
Jan 07, 2008 at 04:05 AM

Can i execute bapi two times if yes then wht code i need to write 2 time.

18 Views

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