2010 Oct 28 10:27 AM
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
2010 Oct 28 10:29 AM
Search on Google, Search on SDN, Read the documentation a.k.a. F1 SAPHelp.
2010 Oct 28 10:37 AM
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.
2010 Oct 28 10:52 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |