Skip to Content
0
Oct 06, 2016 at 03:38 PM

Not able to assign the value of a Javascript Variable to an ABAP variable in Layout of a BSP Application

132 Views

Hi Experts,

I have a requirement of passing the value of a JavaScript variable to the ABAP variable in a BSP Application. The ABAP variable is declared in the Page Attributes section of the BSP Application. The reverse is easily possible but since I have a list thro' which I have to iterate in JAVASCRIPT and then, the values are coming to my variable in Javascript separated by comma. So, then further I want this variable (JS variable) to be assigned to the ABAP workarea-fieldname.

Is there any way around to get this done ?


I am trying this but unable to help myself:


var products = "abc";

'<%= ls_product-text %>'' = products;

Kindly suggest something.. Please 😊

Thanks & Regards,

Vaishali Gupta