Skip to Content
Former Member
Nov 29, 2008 at 08:01 AM

Execution of BAPI


Hi All,

I am using dynpage technology to create a portal application.

My requirement is, I need to have a confirmation window with OK & CANCEL. button on it. I have created it using javascript.

If ok is clicked, the bapi should be executed. How to do this?

stringBuffer strBuf = new stringBuffer();

strBuf.append("winopen = confirm("\do you want to continue?"\));

The above code opens a confirm window, with message 'do you want to continue?'. If you click ok, this window will return true value and it is assigned to winopen variable in the above code. if this window returns true, we can execute the bapi.

Now how to call the bapi execution code inside java script or Is there any other way wherein we can use this winopen variable which holds true value outside the javascript, so that we can execute the bapi?

Please suggest. Hope I am clear.

Thanks in Advance.