‎2007 Jun 13 6:44 AM
Below is the module to display list from Internal table.
My problem is , HOW to get vnumber, kunnr values selected from List to Screen Fields. Pl. help.
regards
Vikas
MODULE create_dropdown_box INPUT.
SELECT vnumber kunnr dofeature
FROM zfeature1
INTO CORRESPONDING FIELDS OF TABLE itab2 WHERE vnumber < 200000.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'VNUMBER'
value_org = 'S'
display = 'F'
DYNPROFIELD = 'ZFEATURE21-VNUMBER'
IMPORTING
USER_RESET = ''
TABLES
value_tab = itab2
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
...
ENDIF.
‎2007 Jun 13 7:16 AM
hi Vikas ,
Its very simple , when you select any value from the dropdown list , then the screen field already is assigned with the value . i mean the screen field has the value selected , now you can use this field value directly in the PAI .
for example :
If 'ZFEATURE21-VNUMBER' is your screen field .and you have selected '1234' from the dropdown list .Now 'ZFEATURE21-VNUMBER contains the value 1234 and if you want to keep this value into a local variable ( L_VNUMBER )then use it like :
L_VNUMBER = ZFEATURE21-VNUMBER .
Hence l_VNUMBER is with value 1234 .
You should remember to play with the screen field values mostly in the PAI of the screen flow logic .
Revert if further help needed !
Regards,
Ranjita
‎2007 Jun 13 7:18 AM
Hi,
You can use this FM dynp_values_read to read from the screen fields and FM dynp_values_update to update the screen fields.
Regards,
Vinodh