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

Multiple default value in selection screen

Former Member
0 Likes
4,862

Hi,

I hvae plant in my selection screen

By default, Plant are FN15, FN16, FN17, IG15, IG16, and IG17.

can you help me hw can i declare them default.

tcode will be helpful.

thanks

vikash.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,600

Hi,

You can create an SELECT-OPTIONS for your plant field,

and then append its low and high value with your required value

and give the sign = BT in the INITIALIZATION event or

you can set the multiple single values of your select option

from the button present with the select option on the selection screen.

Hope it helps

Regards

Mansi

Edited by: MANSI ASNANI on Mar 25, 2009 6:40 AM

10 REPLIES 10
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
2,600

Hi,

Use ranges for plant.


RANGES : p_werks FOR werks.

Append these values in this range in INITIALIZATION event.


INITIALIZATION.
  p_werks-sign = 'I'.
  p_werks-option = 'BT'.
  p_werks-low = '<value>'.
  append p_werks.
  clear p_werks.

  "similarly append other values

Regards,

Tarun

Read only

Former Member
2,600

Hi,

Append the values to SELECT-OPTION plant in INITIALIZATION event.

select-options : so_werks LIKE t001-werks.

EG:

INITIALIZATION

so_werks-option = 'I'.

so_werks-sign = 'BT'.

so_werks-low = 'FN15'.

append so_werks.

so_werks-low = 'FN16'.

append so_werks.

append similarly all the required plants...

Regards

Pavan

Edited by: vishnu Pavan on Mar 25, 2009 6:38 AM

Edited by: vishnu Pavan on Mar 25, 2009 6:40 AM

Edited by: vishnu Pavan on Mar 25, 2009 6:55 AM

Read only

Former Member
0 Likes
2,600

Hi,

You can create a domain and its valu range you can write these default values and then use this domain type in the sclection screen field.

Regards,

Pranaya

Read only

Former Member
0 Likes
2,600

yes simply declare a select-option for that plant and then append the mentioned values to that select-option/range table in the Initialization part of your program.

Read only

Former Member
0 Likes
2,601

Hi,

You can create an SELECT-OPTIONS for your plant field,

and then append its low and high value with your required value

and give the sign = BT in the INITIALIZATION event or

you can set the multiple single values of your select option

from the button present with the select option on the selection screen.

Hope it helps

Regards

Mansi

Edited by: MANSI ASNANI on Mar 25, 2009 6:40 AM

Read only

Former Member
0 Likes
2,600

hi,

if the default values are a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af ag ah

then u can put these values as default in select otion s_txcd 15 like this.

s_txcd15-low = 'A3'.
 s_txcd15-option = 'EQ'.
 s_txcd15-sign   = 'I'.
 append s_txcd15.
 s_txcd15-low = 'A4'.
 append s_txcd15.
 s_txcd15-low = 'A5'..
 append s_txcd15.
 s_txcd15-low = 'A6'.
 append s_txcd15.
 s_txcd15-low = 'A7'.
 append s_txcd15.
 s_txcd15-low = 'A8'.
 append s_txcd15.
 s_txcd15-low = 'A9'.
 append s_txcd15.
 s_txcd15-low = 'AA'.
 append s_txcd15.
 s_txcd15-low = 'AB'.
 append s_txcd15.
 s_txcd15-low = 'AC'.
 append s_txcd15.
 s_txcd15-low = 'AD'.
 append s_txcd15.
 s_txcd15-low = 'AE'.
 append s_txcd15.
 s_txcd15-low = 'AF'.
 append s_txcd15.
 s_txcd15-low = 'AG'.
 append s_txcd15.
 s_txcd15-low = 'AH'.
 append s_txcd15.

or

u can also use the ranges also

regards

rahul

Read only

Former Member
0 Likes
2,600

HI,

SELECT-OPTIONS : S_PLANT TYPE MARD-WERKS.

INITIALIZATION.

S_PLANT -sign = 'I'.
S_PLANT -option = 'EQ' .
S_PLANT -low = 'FN15'.
APPEND S_PLANT .

S_PLANT -low = 'FN15'.
APPEND S_PLANT ,

Read only

Former Member
0 Likes
2,600

Using select-options:

REPORT  YSAT_DEFAULT_VALUES.
tables: marc.
select-options: sel1 for marc-werks.

initialization.
sel1-low = 'FN15'.
sel1-option = 'EQ'.
sel1-sign = 'I'.
append sel1.
clear sel1.

sel1-low = 'FN16'.
sel1-option = 'EQ'.
sel1-sign = 'I'.
append sel1.
clear sel1.

sel1-low = 'IG15'.
sel1-option = 'EQ'.
sel1-sign = 'I'.
append sel1.
clear sel1.

sel1-low = 'IG16'.
sel1-option = 'EQ'.
sel1-sign = 'I'.
append sel1.
clear sel1.

Read only

Former Member
0 Likes
2,600

Declare SELECT-OPTIONS for plant on selection screen.

In The INITIALIZATION event construct the range of the desired plants.

Read only

Former Member
0 Likes
2,600
tcode will be helpful.

I bolt from the blue, Does a t-code dish up your purpose in this case?