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

SELECT-OPTIOn

Former Member
0 Kudos
552

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
Read only

Former Member
0 Kudos
529

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
Read only

Former Member
0 Kudos
529

u must write code under initialization event.

initialization.

p_mcomp-low = '60000000'.

p_mcomp-high = '60000063'.

append p_mcomp.

clear p_mcomp.

Read only

Former Member
0 Kudos
529

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.

Read only

Former Member
0 Kudos
529

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

Read only

Former Member
0 Kudos
530

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.

Read only

Former Member
0 Kudos
529

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

Read only

kesavadas_thekkillath
Active Contributor
0 Kudos
529

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.

Read only

0 Kudos
529

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.