Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

HTML ABAP integration

Former Member
0 Likes
612

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
560

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.

2 REPLIES 2
Read only

Former Member
0 Likes
561

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.

Read only

0 Likes
560

Hello ashish. Thanx for useful information.

I had done it in similar way.