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

capturing List box value in Module pool while executing

Former Member
0 Likes
1,640

Hi,

Plz let me know if any one can help me out in this regards,

I have designed a screen with a list box.

And using VRM type pool, FM vrm_set_values am able get values in list box,the list box contains the values AND,OR...

But the problem is when executing am able to select value from the list box i.e.,AND

but the value 'AND' is not coming in the field...when i am debugging.

Plz help me out in capturing the field value.

Regards,

sudha

6 REPLIES 6
Read only

Former Member
0 Likes
1,000

Hi sudha,

1. We can also use the FM

F4IF_INT_TABLE_VALUE_REQUEST

(here u will be able to capture the value)

2.

DATA : BEGIN OF itab OCCURS 0,

bukrs LIKE t001-bukrs,

butxt LIKE t001-butxt,

END OF itab.

SELECT * FROM t001 INTO CORRESPONDING FIELDS OF TABLE itab.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'BUKRS'

value_org = 'S'

dynprofield = 'MYLISTTAB'

dynpprog = sy-repid

dynpnr = sy-dynnr

TABLES

value_tab = itab

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

3. In pai module,

use the code :

PROCESS ON VALUE-REQUEST.

field mylistab module abc.

where field = your field name

abc = module name (which contains the above coding in step 2)

regards,

amit m.

Message was edited by: Amit Mittal

Read only

0 Likes
1,000

Hi Amit,

Here in my screen 1000, i have input/output fields,which i converted to list box.These list boxes are not getting populated from dictionary.I have hard coded values in it as 'AND','OR','IN','<','>','<=',etc.

When I execute the program , i am able to select the value from list box , the problem is in debugging am not able to get these selected value for respective fields.

The FM which you have suggested is for DB fields not for Hard coded values.

Plz help me out

Read only

0 Likes
1,000

Hi again,

1. The FM which you have suggested is for DB fields not for Hard coded values.

Its not so.

We can fill the INTERNAL TABLE manually.

In ur case define internal table,

and fill it with the AND OR IN < > = etc.

and pass it to this FM.

It will work fantastic.

regards,

amit m.

Read only

Former Member
0 Likes
1,000

Hi,

check these demo examples..

<b>demo_dropdown_list_box

demo_dynpro_dropdown_listbox</b>

regards

vijay

Read only

Former Member
0 Likes
1,000

Hi Sudha,

When you select values from List box, you will get

only key value of the entry.

Lets say if you give key value 1 for AND and

2 for OR then when you seelct the AND entry you will

get 1 in the list box parameter, so again you need to

read the value from the table to get it.

Hope this will help you.

Thanks&Regards,

Siri.

Read only

Former Member
0 Likes
1,000

Hi,

U have to write below statment in Flow logic under

PROCESS AFTER INPUT event.

Field <name of listbox>.

After selecting a value from list box, press enter.

so, above code will execute and it contain ur selected value.

Regards,

Digesh Panchal