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 for a field in table maintenance generator

Former Member
0 Likes
7,123

Hi All,

I have created a table maintenance for a table.

I need to give F4 help for a field as a drop down, as of now i am using POV event and PAI event to get it triggered and captured.

It is working fine, but as my field is key field, once i select any value from drop down all other key fields are becoming disable for input.

code in POV event in flow logic is,

SELECT busrule

FROM z100_pro

INTO CORRESPONDING FIELDS OF TABLE it_bus.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'BUSRULE'

value_org = 'S'

TABLES

value_tab = it_bus

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

code in PAI event is,

CASE ok_code.

WHEN 'SELECTED'.

MESSAGE i888(sabapdocu) WITH z100_sup_shdw-busrule.

ENDCASE.

Can any one please help me on this.

Thank you,

Regards,

Kusuma K.

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
4,306

In the screen field attributes of that particular field ( i think the option will be in the third row of the attribute ),

there change it as list box with key or listbox.

Sorry i just answered looking at the thread subject.

Do you want it in drop down or whether you want to correct the error ????

Edited by: Keshav.T on Jan 7, 2010 2:28 PM

9 REPLIES 9
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
4,307

In the screen field attributes of that particular field ( i think the option will be in the third row of the attribute ),

there change it as list box with key or listbox.

Sorry i just answered looking at the thread subject.

Do you want it in drop down or whether you want to correct the error ????

Edited by: Keshav.T on Jan 7, 2010 2:28 PM

Read only

0 Likes
4,306

DYNPPROG = SY-CPROG

DYNPNR = SY-DYNNR

DYNPROFIELD = 'screen field'

try passing the above fields to F4IF_INT_TABLE_VALUE_REQUEST

.

Read only

0 Likes
4,306

Sorry, it is not working.

Regards,

Kusuma K.

Read only

0 Likes
4,306

Hi,

You could assign a Foreign key to the the table field and regenerate the Table Maintenance, this will automatically create a drop down for you without coding.

Regards,

Nick

Read only

0 Likes
4,306

We can maintain foreign key but domain is having input help as Value table. So it is not giving me F4 help directly.

Thank you,

Regards,

Kusuma K.

Read only

0 Likes
4,306

Hi,

I don't see the relevance of the fact there is a Value table on the domain.

If you create a foreign key (the same table as the value table will be proposed) and regenerate the table maintenance you will get a drop down based on the value table.

Regards,

Nick

Read only

0 Likes
4,306

Thank you all, it is working fine now.

I got confused.

Regards,

Kusuma K.

Read only

0 Likes
4,306

Hello Nike,

I have assigned the foreign key and made the field as "List Box with Key" , but still it is not showing values in drop down while  I am getting values as F4 help.

Could you please help me.

Many Thanks,

Jitendra

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
4,306

If its giving you the values from value table,

Then why are you coding POV and PAI in the table maintenance ?