Skip to Content
0
Former Member
Dec 04, 2008 at 12:57 PM

BSP: Write data in a sap-table in javascript

137 Views

Hi experts,

I try to use a abap table in JavaScript code. In a BSP I generate a lot of data with a javascript function. Now I want to write this data in a abap-table and send it back to the controller. The sap-table is defined in the page attributes.

The table has char fields and a dec13,3 field.

What I need is something like this:

Sap-table[] = JS-table.
Or 
For(var i=0;i++;EndOfJSTable){
  <%= wa-char_field1 %>) = js-table<i>-field1;
  <%= wa-char_field2 %>) = js-table<i>-field2;
  <%= wa-dec_field3 %>)  = convert(js-table<i>-field3,13,3);
append wa to sap-table;
} 

Can anybody give me an idea?

Thanks a lot!