Application Development 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: 

in modulepool list box

Former Member
0 Kudos

hai,

on a module pool screen i want to have a text field with drop down list box and in that i want to select set of values from the table field ie., for example empid field . whenever i update the database with new empid , i should see that one in the next screens drop down box.can anyone help me out?

Thanks & Regards,

Syam.

2 REPLIES 2

Former Member
0 Kudos

Hi,

try like this.

in screen flow logic

process on value-request.

  field itab-empid module mod.

in program

define itab1 with one field.

module mod1 input.


  SELECT EMPID
        FROM <dbtab>  INTO CORRESPONDING FIELDS OF TABLE itab1.


   CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = 'EMPID'
      dynpprog    = sy-repid
      dynpnr      = sy-dynnr
      dynprofield = 'ITAB-EMPID'
      value_org   = 'S'
    TABLES
      value_tab   = itab1.

endmodule.                 " mod1  INPUT

Regards,

Sathish reddy.

Former Member
0 Kudos

Hi Syam,

No need to write code for this, just create a Search help for that Table field, attach that F4 help to the screen field and select "Display as Dropdown" in the screen painter properties window of that field.

Regards

Karthik D