cancel
Showing results for 
Search instead for 
Did you mean: 

Script to simulate Execution of a button (urgent)

Former Member
0 Kudos

Hi all,

I need a working script, java or formcalc, that simulates the press of an execute button containing web service URL of a WSDL and connection name. I would use that script in an event.

Thank you in advance,

Nancy

Accepted Solutions (0)

Answers (3)

Answers (3)

sankar_narayana
Active Participant
0 Kudos

Hi Nancy,

For offline scenario we have used a Portal Webservice. So for calling the webservice we used a button(Webservice method).

But for that button we have written the code in the Enter event.Inorder to to trigger the enter event we have kept a alert message and then we are triggering the event.

Hope this is helpful

Former Member
0 Kudos

Hi Arafat!

Using your script, where can we set the destination page/controller like the one we found in the "Submit" type button? FYI, I'm using BSP.

Thanks!

Former Member
0 Kudos

Hi Nancy,

Below is the script that you can place in an event to invoke the Submit action of an interactive form.

app.eval("event.target.SAPSubmit();");

Hope this helps!!

Regards,

Arafat

Former Member
0 Kudos

Hi Nancy,

please look at my blog

/people/juergen.hauser2/blog/2008/02/25/using-web-services-with-sap-interactive-forms-by-adobe-overview-tips

It provides the answer to your question.

Regards,

Juergen

Former Member
0 Kudos

Thanks Arafat & Jürgen for responding to my question. I went through Jürgen's blog quickly and seems to have the answer there; however, I need to educate myself more in javascript. As the priority got shifted, I'll return to work on this problem soon.

Best regards,

Nancy