Application Development 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: 

Drop down field in Module Pool Program

Former Member
0 Kudos
1,497

Hi Friends,

Greetings.....

Iam facing a problem in Module Pool. Description as follows :

In my intial screen I have two input/output fields out of which one is drop down , Iam successfully populating the values nearly 35 using the function module "VRM_SET_VALUES" in the drop down but the problem occured is, the field always holds the first value of the drop down even after the selection of other values from the drop down list.

What could be the reason for that ?

How can we solve this problem ?

Thanks in advance,

Lekha.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
212

Hi

The sap list box allows to select a value from the list but we cannot enter our own value in the list box .The value list that will be displayed consists of two fields TEXT field of TYPE 80(C) and internal KEY field of TYPE 40(C).

In screen painter to create a input/output field into list box we use 'L" as a value for dropdown attribute for the i/o field.

In screen painter to determine the type of method that will be used to fill the value

list we use the attribute value list.

If it is blank the value list will be filled by the first column of the input help assigned to the screen field.This input help can be defined in the ABAP Dictionary, on screen using SELECT,VALUES screen statements or in event POV (PROCESS ON VALUE-REQUEST ) and the input help that will be passed to the field should consists of 2 columns ,the key column is filled automatically by the system.SAP recommends value list field should be blank.

or

The value can be 'A' meaning that the value list will be filled in the event PBO(PROCESS BEFORE OUTPUT) or before the screen is displayed.In this method we use function module VRM_SET_VALUES to fill the values and pass it to the i/o field.

If a function code is attached to the list box the selection of a value triggers a PAI

otherwise PAI will not trigger.

check this program DEMO_DYNPRO_DROPDOWN_LISTBOX.

Regards

Raj

Edited by: Rajasekhar Dinavahi on Mar 10, 2009 11:32 AM

3 REPLIES 3

Former Member
0 Kudos
213

Hi

The sap list box allows to select a value from the list but we cannot enter our own value in the list box .The value list that will be displayed consists of two fields TEXT field of TYPE 80(C) and internal KEY field of TYPE 40(C).

In screen painter to create a input/output field into list box we use 'L" as a value for dropdown attribute for the i/o field.

In screen painter to determine the type of method that will be used to fill the value

list we use the attribute value list.

If it is blank the value list will be filled by the first column of the input help assigned to the screen field.This input help can be defined in the ABAP Dictionary, on screen using SELECT,VALUES screen statements or in event POV (PROCESS ON VALUE-REQUEST ) and the input help that will be passed to the field should consists of 2 columns ,the key column is filled automatically by the system.SAP recommends value list field should be blank.

or

The value can be 'A' meaning that the value list will be filled in the event PBO(PROCESS BEFORE OUTPUT) or before the screen is displayed.In this method we use function module VRM_SET_VALUES to fill the values and pass it to the i/o field.

If a function code is attached to the list box the selection of a value triggers a PAI

otherwise PAI will not trigger.

check this program DEMO_DYNPRO_DROPDOWN_LISTBOX.

Regards

Raj

Edited by: Rajasekhar Dinavahi on Mar 10, 2009 11:32 AM

Former Member
0 Kudos
212

Hi Lekha,

Kindly go through this link below:

Hope it helps

Regrds

Mansi

I355602
Product and Topic Expert
Product and Topic Expert
0 Kudos
212

Hi,

Refer the programs:-

DEMO_DYNPRO_DROPDOWN_LISTBOX

DEMO_DROPDOWN_LIST_BOX

Also you can refer:-

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm

This will definitely help you.

Regards,

Tarun