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-options

Former Member
0 Kudos

Hi

Can anyone tell me on this please.

I have parameter and select-options in selection screen.

when i enter values in parameter and click enter,select-option should become manadatory,that is anyway working as i used at selection screen output.

But

when i enter values in parameter and execute(f8),then its going and output list is displaying,its not making select-options mandatory.

Any inputs please.

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

check out this code.....

tables : mara.

parameters : p_name type c user-command CHK.

select-options : matnr for mara-matnr.

at selection-screen on matnr.

if sy-ucomm = 'CHK'.

message e000(bctrain) with 'Enter value in matnr'.

endif.

9 REPLIES 9

Former Member
0 Kudos

Hai,

Write the coding in <b>START-OF-SELECTION</b>

Regards,

Padmam.

0 Kudos

Hi

Well normally validation we write at AT Selection-screen???

How does it gonna trigger if we write at start-of-selection?

Thanks

Former Member
0 Kudos

hi

select-options : matnr for mara-matnr obligatory.

write this way......and check

Former Member
0 Kudos

Hi rk,

try obligatory keyword in select-options.

eg : select-options : matnr for mara-matnr obligatory.

Reward if useful.

Rgds,

Sunny

0 Kudos

I already did this and its working fine ..

i knew about obligatory.

My doubt is not that..

i want to make it as obligatory when i press f8.

Thanks

Former Member
0 Kudos

Hi,

Set Parameter Id for that Parameter.

Regards,

Padmam.

Former Member
0 Kudos

hi rk,

try this,

write code in at selection-screen event.

if <parameter> is not initial and <select-option> is initial.

message e000 with ' select option should be fill'.

exit.

endif.

or

select-options: <variable> for <table and field> obligatory.

try it works.

regards...

seshu.

Former Member
0 Kudos

hi rk,

use AT-SELECTION SCREEN

SELECT-OPTIONS: MATNR FOR MARA-MATNR OBLIGATORY

IT SHOULD WORK

I

Former Member
0 Kudos

hi

check out this code.....

tables : mara.

parameters : p_name type c user-command CHK.

select-options : matnr for mara-matnr.

at selection-screen on matnr.

if sy-ucomm = 'CHK'.

message e000(bctrain) with 'Enter value in matnr'.

endif.