‎2014 Jun 19 7:43 PM
Hello experts,
Please guide me on HTML ABAP integration. I am working on project where we are developing one tool. In one part of that I stuck on area where i want to add some values to HTML drop-down list from SAP table and also retrieve the selected value from HTML drop-down to an internal table. Please give me some suggestion to achieve it.
I have uploaded HTML file successfully through ABAP code by using HTML viewer. Now i want to add dropdown list menu to HTML dropdown list from SAP tables and upon selections of those entries in HTML dropdown I need to capture it in an internal table.
Thanks in advance.
‎2014 Jul 03 8:24 AM
Hi,
In HTML, dropdown is created using tages <SELECT> <OPTION id='1' ( or anything else ) > </SELECT>
So,
append string '<select id=dropdown>' to your html code.
Loop at itab into variable.
concatenate string '<option id=' variable-value '>' variable-value
append this string to html code
Endloop.
append string '</select>' to the html code.
This will give you a dropdownlist with all the values in internal table.
Fetching values depends upon the method you are using to pass values back from html page. Please share it for further help.
‎2014 Jul 03 8:24 AM
Hi,
In HTML, dropdown is created using tages <SELECT> <OPTION id='1' ( or anything else ) > </SELECT>
So,
append string '<select id=dropdown>' to your html code.
Loop at itab into variable.
concatenate string '<option id=' variable-value '>' variable-value
append this string to html code
Endloop.
append string '</select>' to the html code.
This will give you a dropdownlist with all the values in internal table.
Fetching values depends upon the method you are using to pass values back from html page. Please share it for further help.
‎2014 Jul 08 11:37 AM
Hello ashish. Thanx for useful information.
I had done it in similar way.