Skip to Content
0
Former Member
Sep 23, 2008 at 02:03 PM

How to pass abap variable to java script variable?

162 Views

I need to pass a abap variable in bsp view page to a java script variable in same bsp view.

I have the following code:

<% Data l_candidate_id type string.

l_candidate_id = controller->candidate_id.%>

< script >

var lv_candidate_id;

lv_candidate_id = <% l_candidate_id %>.

< /script >

Thats the code i have but i get the following compile error: ABAP-Scripting muss mit einem Punkt '.' beendet werden.

Any suggestion or code sample will be appreciated.

Thanks