‎2018 Jun 27 7:05 PM
Hi all,
I have checked several entries in the forum and have not found a correct answer.
This is my problem:
I have created a dropdown listbox, and populated the list with the required values with Function VRM_SET_VALUES. When I select any of the values, and then press any button, the correspondent code is not triggered. I have discovered by debug that when pressing the button, at start of PAI, the input field has no values, it is empty.
Any ideas? I don't know what else to try. Any help would be great!
UPDATE!!
The field I am having the issue with, is DD03L-FIELDNAME. I have tested my program changing this field for SBOOK-CONNID, and it works with that field. I think the difference is the flag 'Foreign key check' that CONNID has, and FIELDNAME doesn't. All the examples I've seen are related to CONNID and CARRID, which have Foreign Keys. Does this mean that Dropdown Listbox is only enabled for fields with Foreign Keys?
‎2018 Jun 28 10:38 AM
‎2018 Jun 28 3:40 AM
‎2018 Jun 28 7:09 AM
Hello Quynh, thank you for answering.
I also tried that, yes, and didn't work.
Also tried to name it as a DB field (DD03L-FIELDNAME concretely), and hasn't either worked.
Any other suggestion? Thanks!
‎2018 Jun 28 8:28 AM
Um..Idk what could be wrong. maybe you can look at SAP sample RSDEMO_DROPDOWN_LISTBOX and find out what difference.
‎2018 Jun 29 1:09 PM
I have tried copying that sample program and substituting the CARRID field with my DD03L-FIELDNAME field. It doesn't work. Maybe the reason is that CARRID has foreign key (in DB scarr), and my field doesn't.
Thanks anyway
‎2018 Jun 28 10:38 AM
‎2018 Jul 02 12:17 PM
‎2018 Jun 28 11:37 AM
Hi,
have u declared the function code also declare the drop down as (listbox with key),
the name LIST_BOX will hold the key values as 1 for first row, 2 for second row...
‎2018 Jun 29 1:06 PM
I tried that. The only difference I get is that now the dropdown displays a number (key) on the left of the possible values. But when selecting any, same result... value is not transferred to program.
‎2018 Jun 29 1:13 PM
Hi,
You can use VRM_SET_VALUES function module in PBO or Process On Value Request(POV).
Please try with this... and let us know..
Thanks,
Prathyusha.
‎2018 Jun 30 11:14 AM
My call to VRM_SET_VALUES is already in the PBO. I also tried including it in the POV but the result is the same. I get the possible values in the dropdown, but when I select any, the value is not transferred to program.
Thanks!
‎2018 Jul 02 12:19 PM
Hello all,
First, thank you so much for taking the time to answer.
Finally I have managed to get what I wanted!! I made a copy of program DEMO_DYNPRO_DROPDOWN_LISTBOX and then changed its fields for mine, one by one, in order to avoid changing what I didn't need to be changed.
It works!
‎2018 Jul 02 5:02 PM
So, my links to my examples in fact were the correct answer ..
‎2018 Jul 05 9:31 AM
Fine, I've opened the question again to be able to set your links as "correct answer". Have a nice day...