Application Development 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: 

set default value for list box in tandard screen

Former Member
0 Kudos

hi sap experts.

i add an input /output field to my screen and set dropdown as 'listbox' .

i create a z table and insert some records to it.

in my main table (mara) i create an append structure and add a field to table and in foreign keys i refer my field to z table ,so in my screen when i select my list box i see the values in z table.

but now i have a problem,how can i set my list box whit a special value in z table?

thanks for your helps.

2 REPLIES 2

Former Member
0 Kudos

Hi Mahdieh,

In 'INITIALIZATION' event, set the value.

INITIALIZATION.

   fieldName = 'Default value'.

...

regards,

Archer

0 Kudos

hi dengyong and thanks for your reply.

i add a tab to a standard transaction ,and its a standard program, how can i access initialization in standard programs?