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

API to create a select options table from a given input field value

Former Member
0 Likes
362

Hi all,

Is there a function module which can be called to create a Select-Options Table for a given input field value. For example, if the user enters the value ABC, then a line must be added to an select-options table like I(Sign) CP(Option) ABC(Low), but if the value ABCDE is entered in the input field, then a line must be added to the select-options table I(Sign) EQ(Option) ABCDE(Low). Thanks.

Kind Regards,

Sukru

1 REPLY 1
Read only

Former Member
0 Likes
289

Did not find any function module to that !

But what you can do is do it in your program

SELECT-OPTIONS: s_so for <type>.

perform select_op using <your value> tables s_so. " Do this for the required values...

Form select_op using value tables s_so.
s_so-sign = 'I'.
s_so-option = 'BT'.
s_so-low = value.
s_so-high = ' '.
append s_so.
endform.

call this form using all your values and you will be ready with your select options.

Regards,

Lalit Mohan Gupta.