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: 

SELECT-OPTIOn

Former Member
0 Kudos

Hi all

i have thsi statement.I want to take the valus of this statement buit it houldnt be displayed in the input screen.Please help.

SELECT-OPTIONS:p_mcomp FOR S026-MCOMP default '60000000' to '60000063'.

VIjay

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi vijay,

at initialization event u can do this.

initialization.

p_mcomp-low = '6000000'.

p_mcomp-high = '6000003'.

p_mcomp-sign = 'I'.

p_mcomp-option = 'BT'.

append p_mcomp.

clear p_mcomp.

2nd way

after doing the above and in at selection screen output try like dis.

at selection-screen output.

select options:p_mcomp for s026-mcomp NO-DISPLAY.

IF HELPFUL REWARD SOME POINTS.

with regards,

Suresh Babu Aluri.

7 REPLIES 7

Former Member
0 Kudos

u must write code under initialization event.

initialization.

p_mcomp-low = '60000000'.

p_mcomp-high = '60000063'.

append p_mcomp.

clear p_mcomp.

Former Member
0 Kudos

Hi,

You can do as below at the initialization event :

initialization.

if p_mcomp[] is initial.

p_mcomp-sign = I'.

p_mcomp-option = 'BT'.

p_mcomp-low = '60000000'.

p_mcomp-high = '60000063'.

append p_mcomp.

clear p_mcomp.

endif.

Thanks,

Sriram Ponna.

Former Member
0 Kudos

Hi Vijay,

it is too simple.. just write the below logic in your code..

Hi,

You can do as below at the initialization event :

initialization.

if p_mcomp[] is initial.

p_mcomp-sign = I'.

p_mcomp-option = 'BT'.

p_mcomp-low = '60000000'.

p_mcomp-high = '60000063'.

append p_mcomp.

clear p_mcomp.

endif.

Thanks,

murali

Former Member
0 Kudos

hi vijay,

at initialization event u can do this.

initialization.

p_mcomp-low = '6000000'.

p_mcomp-high = '6000003'.

p_mcomp-sign = 'I'.

p_mcomp-option = 'BT'.

append p_mcomp.

clear p_mcomp.

2nd way

after doing the above and in at selection screen output try like dis.

at selection-screen output.

select options:p_mcomp for s026-mcomp NO-DISPLAY.

IF HELPFUL REWARD SOME POINTS.

with regards,

Suresh Babu Aluri.

Former Member
0 Kudos

Hi Vijay,

Declare it under initialization event.

initialization.

p_mcomp-low = '6000000'.

p_mcomp-high = '6000003'.

p_mcomp-sign = 'I'.

p_mcomp-option = 'BT'.

append p_mcomp.

clear p_mcomp.

Regards,

Chandru

kesavadas_thekkillath
Active Contributor
0 Kudos

SELECT-OPTIONS:p_mcomp FOR S026-MCOMP no-display default '60000000' to '60000063'.

im not sure whether there is a hiphen in between no display...bu t it wont display this entry in screen but u can get the valu in your code.

0 Kudos

or try this

SELECT-OPTIONS:p_mcomp FOR S026-MCOMP .

at selection-screen output.

loop at screen.

if screen-name1 = 'P_MCOMP'.

p_mcomp-low = '60000000'.

p_mcomp-high = 60000063'.

append p_mcomp.

screen-input = '0'.

modify screen.

endif.

endloop.