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: 

default value for select options.

Former Member
0 Kudos

Hi folks

I have to default four values in select-options.

eg.,

S_lfart for likp-lfart, default zse, zin, znd, zps.

Thanks in Advance,

Rao

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos

Fill the range in INITIALIZATION

REFRESH S_LFART.
CLEAR S_LFART.
S_LFART-SIGN = 'I'.
S_LFART-OPTION = 'EQ'.
S_LFART-LOW = 'ZSE'.
APPEND S_LFART.
S_LFART-LOW = 'ZIN'.
APPEND S_LFART.
S_LFART-LOW = 'ZND'.
APPEND S_LFART.
S_LFART-LOW = 'ZPS'.
APPEND S_LFART.

Or you could put the value in a variant (CUS&XXX to insure transport and protection from users...) and affect it to transaction.

Regards

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please try this.


INITIALIZATION.

S_LFART-SIGN = 'I'.
S_LFART-OPTION = 'EQ'.
S_LFART-LOW = 'ZSE'.
APPEND S_LFART.

S_LFART-SIGN = 'I'.
S_LFART-OPTION = 'EQ'.
S_LFART-LOW = 'ZIN'.
APPEND S_LFART.

S_LFART-SIGN = 'I'.
S_LFART-OPTION = 'EQ'.
S_LFART-LOW = 'ZND'.
APPEND S_LFART.

S_LFART-SIGN = 'I'.
S_LFART-OPTION = 'EQ'.
S_LFART-LOW = 'ZPS'.
APPEND S_LFART.

Regards,

Ferry Lianto

former_member491305
Active Contributor
0 Kudos

INITIALIZATION.

s_lfart-low = 'zse'.

s_lfart-otion = 'EQ'.

s_lfart-sign= 'I'.

append s_lfart.

s_lfart-low = 'zin'.

s_lfart-otion = 'EQ'.

s_lfart-sign= 'I'.

append s_lfart.

s_lfart-low = 'znd'.

s_lfart-otion = 'EQ'.

s_lfart-sign= 'I'.

append s_lfart.

s_lfart-low = 'zps'.

s_lfart-otion = 'EQ'.

s_lfart-sign= 'I'.

append s_lfart.

Former Member
0 Kudos

Hi,

Go through the following syntax:

SELECT-OPTIONS <sel> FOR <f>

[DEFAULT <g> [to <h>] [OPTION <op>] SIGN <s>]

[MEMORY ID <pid>]

[LOWER CASE]

[OBLIGATORY]

[NO-DISPLAY]

[MODIF ID <key>]

[NO-EXTENSION]

[NO INTERVALS]

[NO DATABASE SELECTION].

Declares a selection table <sel> for the field <f>. For <sel>, places input fields on the corresponding selection screen. The additions allow you to set a default value, accept input in lowercase, define a required field, suppress or modify the display on the selection screen, restrict the selection table to a line or a selection to a single field, or prevent input from being passed to a logical database

Regards,

Bhaskar