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

Table control

Former Member
0 Likes
1,580

I have created a table control with 3 colums. One of the colum s is a drop down list. I need to assign default values from the database table to the drop down list in table control. How to do it? Can you help me with an example?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,544

Hi

See the reports:

- DEMO_DROPDOWN_LIST_BOX,

- DEMO_DYNPRO_DROPDOWN_LISTBOX,

- RSDEMO_DROPDOWN_LISTBOX

These reports show how to use the fm F4IF_INT_TABLE_VALUE_REQUEST or VRM_SET_VALUES to obtein it.

Max

15 REPLIES 15
Read only

Former Member
0 Likes
1,545

Hi

See the reports:

- DEMO_DROPDOWN_LIST_BOX,

- DEMO_DYNPRO_DROPDOWN_LISTBOX,

- RSDEMO_DROPDOWN_LISTBOX

These reports show how to use the fm F4IF_INT_TABLE_VALUE_REQUEST or VRM_SET_VALUES to obtein it.

Max

Read only

0 Likes
1,544

Hi

I tried by giving that.Even then its not working.Can u please provide me with an example code.

Read only

Former Member
0 Likes
1,544

hi,

this can done bye giving default value at doamin leavel it's easy proess for chaeck-list in screen-fields.

still any problem mail me to shaik0079@yahoo.com

regards,

saleem

Read only

0 Likes
1,544

Hi

I tried all possibilities.Even then its not working.Can you please provide me with an example code.

Read only

Former Member
0 Likes
1,544

reference the table control field to the dtaabase field.

it will get those values automatically.

thanks

Read only

former_member186741
Active Contributor
0 Likes
1,544

is your field a fixed value domain one? i.e like vbak-vbtyp? These types of fields can have 'refer to dictionary' set on their attributes on the screen painter and the dropdown will work automatically.

Read only

0 Likes
1,544

Its a fixed value domain.. I specified "Get it from Dictionary'. Even then its not retrieving the values.

Read only

0 Likes
1,544

double click on the column in table control and give the search help for that field(if existing) and try

and also check 'Fom dictonary'

Read only

0 Likes
1,544

have you got 'possible values' set to zero? This prevents the dropdwon from appearing.

Read only

0 Likes
1,544

Each value in the table is displayed in each column.. its not displayed as a list

Read only

0 Likes
1,544

have u selected it as a list box in the attributes of that column

double click on that column and select it as listbox from drop down list

Read only

0 Likes
1,544

yes..i have selected as list box..Pls help if anything i have missed out

Arthi

Read only

0 Likes
1,544

is this a sap standard field you are adding or a custom one??

If standard what is it?

If it's not a sap standard try adding (for test purposes) vbak-vbtyp to your screen and see if you can get that to show dropdown values.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,542

Hi,

Check this link and kindly reward points by clicking the star on the left of reply,if it helps.

https://forums.sdn.sap.com/search!execute.jspa?forumID=50&forceEmptySearch=true&q=DropdowninTablecontrol&objID=f50&dateRange=all&userID=&numResults=15

Read only

Former Member
0 Likes
1,542

Can I re-activate this problem. I am new to screen painter and have been getting most of what I know from sdn forums and sap demo programs.

I tried the suggestion made earlier (using VBAK-VBTYP) and it works and I can see the drop-down values.

Unfortunately, I am using an internal table to populate the drop-down for a field included in my table control. I am using the function F4IF_INT_TABLE_VALUE_REQUEST and is called within a module by ;

PROCESS ON VALUE-REQUEST.

FIELD i_cart-deltype MODULE pop_deltype.

The field (called i_cart-deltype) is not being populated.

Thank you so much for all your help and assistance.

Dodie Plata