Hi,
I want to attach value help to a field. I also want to make that field as non-editable so that the user chooses only from F4 help. So i made an input field as non-editable and attached a F4 help to it. But when i try to choose value from the F4 help, it is not filling in the input field. Can some one help me with this.
Thanks and Regards,
Chander
Hi,
Instead of F4 Help for a parameter,if you made the parameter as listbox you can make the user to select only from the values available.
Here is the sample code.Try this and if it helps you,kindly reward points by clikcing the star on the left of reply.
PROGRAM zcmtest01.
TYPE-POOLS: vrm.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
PARAMETERS: ps_parm(10) AS LISTBOX VISIBLE LENGTH 10.
AT SELECTION-SCREEN OUTPUT.
name = 'PS_PARM'.
value-key = '1'.
value-text = 'Line 1'.
APPEND value TO list.
value-key = '2'.
value-text = 'Line 2'.
APPEND value TO list.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING id = name
values = list.
START-OF-SELECTION.
WRITE: / 'Parameter:', ps_parm.
Hi,
See the link below.........
http://www.sapdevelopment.co.uk/reporting/alv/alvscr.htm
I hope this will serve your purpose.
Thanks.
Add a comment