Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Module Pool - Dropdown value not transferring to program

Former Member
0 Likes
5,763

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.

  • There is no clear statement.
  • The field is defined on screen as Input & Output.
  • I have tried indicating "FIELD v_myfield" at the beggining of PAI module, didn't work.
  • If I do not set the field as "Listbox" (so it is a normal input field), the value selected is correctly transferred from screen to program.

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?

1 ACCEPTED SOLUTION
13 REPLIES 13
Read only

DoanManhQuynh
Active Contributor
0 Likes
4,237

Did you assign function code for dropdownlist yet?

Read only

0 Likes
4,237

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!

Read only

4,237

Um..Idk what could be wrong. maybe you can look at SAP sample RSDEMO_DROPDOWN_LISTBOX and find out what difference.

Read only

0 Likes
4,237

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

Read only

0 Likes
4,237

Thanks for the links!

Read only

former_member185116
Active Participant
0 Likes
4,237

Hi,

have u declared the function code also declare the drop down as (listbox with key),

l1.jpg

the name LIST_BOX will hold the key values as 1 for first row, 2 for second row...

Read only

0 Likes
4,237

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.

Read only

Former Member
0 Likes
4,237

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.

Read only

0 Likes
4,237

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!

Read only

Former Member
0 Likes
4,237

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!

Read only

retired_member
Product and Topic Expert
Product and Topic Expert
0 Likes
4,237

So, my links to my examples in fact were the correct answer ..

Read only

0 Likes
4,237

Fine, I've opened the question again to be able to set your links as "correct answer". Have a nice day...