‎2009 Sep 22 4:51 PM
Hi,
I did the below coding and it doesn't work. I want to provide X & Space in the drop down list on the selection screen for my parameter p_rsml.
Any suggestions please.
AT SELECTION-SCREEN OUTPUT.
Build Drop Down for RSML Indicator
DATA: i_vrm TYPE vrm_values,
wa_vrm LIKE LINE OF i_vrm,
g_name TYPE vrm_id.
g_name = 'P_RSML'.
wa_vrm-key = '1'.
wa_vrm-text = 'X'.
APPEND wa_vrm TO i_vrm.
CLEAR: wa_vrm.
wa_vrm-key = '2'.
wa_vrm-text = ' '.
APPEND wa_vrm TO i_vrm.
CLEAR: wa_vrm.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = g_name
values = i_vrm
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
This doesn't work in INITILIZATION EVENT Also.
‎2009 Sep 22 5:06 PM
You need to declare parameter as list box.
Like
PARAMETERS : P_RSML TYPE c AS LISTBOX VISIBLE LENGTH 10.
You might have missed it.
Check .
Edited by: harsh bhalla on Sep 22, 2009 9:37 PM
‎2009 Sep 22 5:06 PM
You need to declare parameter as list box.
Like
PARAMETERS : P_RSML TYPE c AS LISTBOX VISIBLE LENGTH 10.
You might have missed it.
Check .
Edited by: harsh bhalla on Sep 22, 2009 9:37 PM
‎2009 Sep 22 5:44 PM
Thanks. But I dont want to see the Key Values 1, 2 etc...when I use the drop down. I just want the values. How can I do it?
Thanks,
Kiran
‎2009 Sep 22 6:03 PM
‎2009 Sep 22 6:29 PM
Thanks Rob. Thats what I did, if you see my first post.
That will give me 1 <Value 1>, 2 <Value 2> etc... I just want to see the values and not the keys 1,2 etc along with the values.
Thanks
Kiran
‎2009 Sep 22 6:34 PM
I did see your first post - it doesn't pass a syntax check.
You're not being clear. Do you want to see the key or the text?
Rob
‎2009 Sep 22 6:37 PM
hi kiran,
as far as i know what you mean to say is:
1 'X'
2 '__'
this is what you are getting now.and you want it as:
'X'
'__'
right?
i have seen this situation before, to my knowledge its a user setting, it varies from user to user. i guess you need to check with basis guys. i am not infront of sap system.. so cant check.
‎2009 Sep 22 6:45 PM
Yes, I just want 'X' & Space.
I think I solved it. I passed X & Space into field KEY and not having any texts for it. That solved.
Thanks,
Kiran