Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to pass abap variable to java script variable?

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.


Former Member

Hi Na,


lv_candidate_id = <%= l_candidate_id %>.


Graham Robbo

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question