‎2006 Oct 04 1:59 PM
Hi Experts,
I have a selection screen where I want to display a dropdown. On change of this dropdown I have to perform certain actions.
I have declared the dropdown as:
PARAMETERS: p_soldto as listbox VISIBLE LENGTH 30 user-command chg
But with the above declaration the p_soldto has always 1 character value. In other words if my dropdown has 10 items, where Each item has a key like 1, 2...upto 10.
On selection of last item (key 10), the p_soldto shows 1 instead of 10. This is because the p_soldto has been declared without any size.
If I try to give size as:
PARAMETERS: p_soldto(20) as listbox VISIBLE LENGTH 30 user-command chg
Then, this gives error saying size cannot be specified when user-command is used.
What shall I do? How do specify size along with user-command? Please help! I am really lost. This is really ridiculous of SAP.
Kindly help
Thanks
Gopal
Message was edited by: gopalkrishna baliga
‎2006 Oct 04 2:05 PM
why dont you declare it as
p_soldto type char30 as listbox VISIBLE LENGTH 30 user-command chg
this should solve your problem
‎2006 Oct 04 2:10 PM
‎2006 Oct 04 2:12 PM
hi,
try this
PARAMETERS: p_soldto(10) type c as listbox VISIBLE LENGTH 30 user-command chg
rgds
anver