Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

call abap method in a javaScript Function

Former Member
0 Likes
517

Hi all,

I want call a abap method via a javaScript function in a view of a bsp application.

Does someone know how it works?

regards Alex

1 ACCEPTED SOLUTION
Read only

former_member848108
Active Participant
0 Likes
371

Hi,

You can either change the location of the page to a target URL usinng "document.location.href = 'targeturl'. So targeturl is the fully qualified url necessary to call the method.

Or you can take a look at XMLHttpRequest object (http://www.w3.org/TR/XMLHttpRequest/) which can create requests to a given URL. You can parse and use the data returned by the target url.

Hope it helps,

Regards.

Ozcan.

1 REPLY 1
Read only

former_member848108
Active Participant
0 Likes
372

Hi,

You can either change the location of the page to a target URL usinng "document.location.href = 'targeturl'. So targeturl is the fully qualified url necessary to call the method.

Or you can take a look at XMLHttpRequest object (http://www.w3.org/TR/XMLHttpRequest/) which can create requests to a given URL. You can parse and use the data returned by the target url.

Hope it helps,

Regards.

Ozcan.