cancel
Showing results for 
Search instead for 
Did you mean: 

Get layout fields values in web dynpro

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Daniel

If we use two input fields and use them for LOW and HIGH values then we need manually do certain standard validations like if the low values is less then the HIGH value or not.

Instead you can create SELECT-OPTIONS in webdynpro.

You can refer to the following link for detailed explanation about how to implement

SELECT-OPTIONS in WEBDYNPR

There several options in select options like obligatory, no extension, no intervals etc.

These options can be found in following link

Hope this is helpful

Points please if helpful

Regards

Subhash

ChandraMahajan
Active Contributor
0 Kudos

Hi,

you can use standard Web Dynpro component WDR_SELECT_OPTIONS.

Refer below step-by-step guide on how to use it.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff...

Regards,

Chandra