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

Former Member
0 Likes
821

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

Former Member
0 Likes
786

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

Former Member
0 Likes
786

Hai,

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

Regards,

Padmam.

Read only

0 Likes
786

Hi

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

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

Thanks

Read only

Former Member
0 Likes
786

hi

select-options : matnr for mara-matnr obligatory.

write this way......and check

Read only

Former Member
0 Likes
786

Hi rk,

try obligatory keyword in select-options.

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

Reward if useful.

Rgds,

Sunny

Read only

0 Likes
786

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

Read only

Former Member
0 Likes
786

Hi,

Set Parameter Id for that Parameter.

Regards,

Padmam.

Read only

Former Member
0 Likes
786

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.

Read only

Former Member
0 Likes
786

hi rk,

use AT-SELECTION SCREEN

SELECT-OPTIONS: MATNR FOR MARA-MATNR OBLIGATORY

IT SHOULD WORK

I

Read only

Former Member
0 Likes
787

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.