Hello all,
I'm building a web dynpro where a user puts in a range of values, and when he clicks a button I present him a table with the table records which a certain field is in the given range.
Here's the button event code so far:
method ONACTIONSEARCH_PATS.
DATA: lt_pat TYPE TABLE OF npat,
lv_min_pat TYPE I,
lv_max_pat TYPE I.
*** In this section something should be added, I need you help for it, and then: ***
SELECT * FROM npat INTO TABLE lt_pat
WHERE patnr BETWEEN lv_min_pat AND lv_max_pat.
node_pat = wd_context->get_child_node( name = 'PATIENTS' ). "that's the table node
node_pat->bind_table( lt_pat ).
endmethod.
My question is: How do I get the values of the range? (I have two inputfields in the layout, one for minimun and one for maximum)
Thanks in advance.