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

list box in table control

Former Member
0 Likes
2,130

Hi Experts,

I got a requirement where in i need to put list box (Drop down sort of thing)in a table control based on the table control entries.

Can any of you plz help/suggest/give sample code/sample program at the earlist...Its very urgent...

Thanks in advance...

Kiran I.

13 REPLIES 13
Read only

Former Member
0 Likes
1,405

hi kiran,

you can try using this FM VRM_SET_VALUES.

regards

vijay

Read only

0 Likes
1,405

Hi Vijay,

FM VRM_SET_VALUES is the one i used.But when we use this, how to read the value that is there in line of the table control?

Suppose we have 10 line items in table control,for line item in table contrtol different values have to populated.

Kindly Help.

Kirani.

Read only

0 Likes
1,405

hi,

what ever value you select that will be stored in the table control field, you can check it also.

NAME = 'IT_TC-MATNR'.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

ID = NAME

VALUES = LIST1.

after you select the data from drop down,

the value will be stored in it_tc-matnr.

regards

vijay

Read only

0 Likes
1,405

Hi Vijay..

I had done the same as u have suggested.But here the issue is with the value..i aggre that 'IT_TC-MATNR' will have only one value at a time.But how the control will know where the cursor is on?

When i switch on the debugger & go with teh list box,its taking me no where which means that the control is not reading the cursor postion.I hope u understood.

Plz suggest..

Thanks & regards...

Kirani

Read only

0 Likes
1,405

Hi,

using get cursor field <fieldname> value <value>

you can try.

regards

vijay

Read only

0 Likes
1,405

Hi Kiran

In your POV you should try to get the line of table control where the user press F4:

GET CURSOR LINE V_LINE.

Max

Read only

Former Member
0 Likes
1,405

In your screen flow logic, use the <b>PROCESS ON VALUE_REQUEST</b>, use <b>FIELD and MODULE</b> statement. Inside Module, figure out the values you want to show, put them in an internal table and use function module <b>F4IF_INT_TABLE_VALUE_REQUEST</b> to show and accept them.

Read only

0 Likes
1,405

Hi Sharad,

I ahvent ever used POV.Can u plz tell the sample pgm where in POV is used.

Thanks & Regards,

Kirani.

Read only

Former Member
0 Likes
1,405

Hi kiran,

if you are unable to use the vrm_set_values

you can switch from table control to Grid control

and you can use drop down in grid control.

check this example BCALV_EDIT_06.

regards

vijay

Read only

Former Member
0 Likes
1,405

HI.

This question was posted already. Pl. follow the threads..

Thanks,

Maheshwari.V

Read only

0 Likes
1,405

Hi Maheshwari,

Can you plz give link where this was posted earlier..

Thanks..

Kirani

Read only

Former Member
0 Likes
1,405

U can easily have listbox in table control.

For that go to element list->Text IO templates in tat select the column of the table control and select drop down option as listbox.

Read only

Former Member
0 Likes
1,405

Hi Kiran ,

Kindly go through this link:

http://sap.niraj.tripod.com/id38.html

Hope it helps you

Regrds

Mansi