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

Drop down selection for a column in Table Control

Former Member
0 Likes
1,643

Hello,

I have a table control where data is displayed. The user can fill data in one of the column and save. We want to have a drop down in that column where user can select a value. This column is a qunatity field.

Please guide how it can be done.

RR

Hello,

I have a table control where data is displayed. The user can fill data in one of the column and save. We want to have a drop down in that column where user can select a value. This column is a qunatity field.

Please guide how it can be done.

RR

3 REPLIES 3
Read only

Former Member
0 Likes
727

Search on Google, Search on SDN, Read the documentation a.k.a. F1 SAPHelp.

Read only

Former Member
0 Likes
727

well you could doubleclick that field in your table control in the screen painter.

In the preferences popup you can use the drop-down menu to choose "as listbox". Thats it. Be aware that you either need a check table assigned to that field or a domain that has specified values assigned.

I ask myself how that should work out for a quantity as you´d need a check table with all possible entires are existing.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
727

In SE51 screen editor, double-click on the editable field and set the dropdown listbox at listbox. As I don't think that you have domain value or table value for this field, set the field value list to "A" from program.

Then in the PBO use the FM VRM_SET_VALUES to fill the list of allowed values. do this in a module called in the LOOP AT WITH CONTROL which fills the table control from the program data. (use a name like TC_XXXX_CHANGE_FIELD_ATTR)

I'm not sure SE51 will allow you to use a quantity field in a listbox, so use a character field (check also right justified box on dynpro field attrinutes window), in VRM_SET_VALIUES parameters and in initial filling of the screen field use a WRITE xx UNIT yy to fill the screen field. Then a MOVE should perfect correctly when filling actual database/abap field by a move statement.

Regards,

Raymond