‎2009 Apr 03 5:10 PM
Hi all,
I have a requirement like i need to create a DropDownBox - say for customer names and when i enter a letter in the drop down box i need to select items based on that letter.For example if i am entering 'J' all the names starting with 'J' must be highlighted,then if i enter 'JO' the search must be done against 'JO'.Please guide me .
Thanking you all in advance
Sri
‎2009 Apr 03 5:31 PM
Hi Hanumanth,
if it is Module pool.
go to the respective screen -->GO to element List-->go to texts I/O Templates --> change the Option Drop from No drop box to List BOx..
then Write your Logic in
PROCESS ON VALUE-REQUEST.
FIELD w_mara_matnr MODULE drop_down_comaterial.
in Drop_down_comatrial
* PASS PRODUCTION ORDER NUMBER (AUFNR) TO TABLE AFPO
SELECT matnr FROM afpo INTO TABLE l_matnr
WHERE aufnr = w_afpo_aufnr
AND wemng EQ space.
IF sy-subrc NE 0.
ENDIF.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR'
dynpprog = sy-repid
dynpnr = '2020'
dynprofield = 'W_MARA_MATNR'
value_org = 'S'
TABLES
value_tab = l_matnr.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.