05-18-2007 10:50 AM
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
05-18-2007 11:40 AM
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.
05-18-2007 10:51 AM
Hai,
Write the coding in <b>START-OF-SELECTION</b>
Regards,
Padmam.
05-18-2007 10:55 AM
Hi
Well normally validation we write at AT Selection-screen???
How does it gonna trigger if we write at start-of-selection?
Thanks
05-18-2007 10:54 AM
hi
select-options : matnr for mara-matnr obligatory.
write this way......and check
05-18-2007 10:56 AM
Hi rk,
try obligatory keyword in select-options.
eg : select-options : matnr for mara-matnr obligatory.
Reward if useful.
Rgds,
Sunny
05-18-2007 10:58 AM
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
05-18-2007 10:59 AM
05-18-2007 10:59 AM
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.
05-18-2007 11:02 AM
hi rk,
use AT-SELECTION SCREEN
SELECT-OPTIONS: MATNR FOR MARA-MATNR OBLIGATORY
IT SHOULD WORK
I
05-18-2007 11:40 AM
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.