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

At selection screen event

Former Member
0 Likes
1,709

Hi all,

In my program i have done all my validations in At selection screen event. but i am getting an error when i try to click on multiple selections of select-options.

is there any way to get rid of this,

i tried using the validations in selection-screen event but in later coontext when i used set cursor field i was not getting the correct result for this

Please help on this...

thanks,

Poonam

Hi all,

In my program i have done all my validations in At selection screen event. but i am getting an error when i try to click on multiple selections of select-options.

is there any way to get rid of this,

i tried using the validations in selection-screen event but in later coontext when i used set cursor field i was not getting the correct result for this

Please help on this...

thanks,

Poonam

13 REPLIES 13
Read only

Former Member
0 Likes
1,662

hi,

i suppose if you want to give multiple values for that field then its low value should be nill...and that value can be given in the multiple selection screen.

Because when you give some value in the select option field and then press f4 to give multiple values - this would be action and it checks for the validation in at selection screen for that field.

So if you want to enter multiple values then instead of entering any value in single field, enter all values in the multiple screen for that field.

Hope you are clear.

Regards

Sajid

Edited by: shaik sajid on Jul 21, 2009 9:40 AM

Read only

0 Likes
1,662

i have one selectoptions and 3 parameters for output files.

i am just validating files...

but the problem is when i try to click on multiple selections in select-options its going to validation part of files.

Read only

0 Likes
1,662

Hi

write the validation for select options as below

at selection-screen on so_carr-low.

perform validation.

at selection-screen on so_carr-high.

perform validation.

and if the paramt and select option are defined in one block than

u can use

*Validation for Carrier and Date

at selection-screen on block 1.

perform validation.

Hope this helps.

Read only

Former Member
0 Likes
1,662

Hello Poonam,

please put your validation code under the codtion ...

At-selection-screen .

if sy-ucomm = 'ONLI' . (the sy-ucomm value of excute button )

Put you validation here .

endif.

thanks and Regards..

Priyank

Read only

0 Likes
1,662

not working...

going to dump.

Read only

Former Member
0 Likes
1,662

Hi Poonam,

After at selection-screen use some condition.

at selection-screen.

select f1

from table into l_f1(variable)

where...

if sy-subrc ne 0.

if sy-ucomm = 'ONLI' or sy-ucomm = space.

message .....

endif.

endif.

.........................................................

Hope this can solve your pb.

Regards,

Tutun

Read only

Former Member
0 Likes
1,662

Hi Poonam,

You can use AT SELECTION SCREEN ON FIELD event.

Like AT SELECTION SCREEN ON PAR1.

perform validation1.

AT SELECTION SCREEN ON PAR2.

perform validation2.

AT SELECTION SCREEN ON PAR3.

perform validation3.

if not selopt[] is initial.

AT SELECTION SCREEN ON SEL1.

perform validation4.

endif.

Thanks & Regards,

Anil Salekar

Read only

Former Member
0 Likes
1,662

Hi Poonam,

You can use AT SELECTION SCREEN ON FIELD event.

Like AT SELECTION SCREEN ON PAR1.

perform validation1.

AT SELECTION SCREEN ON PAR2.

perform validation2.

AT SELECTION SCREEN ON PAR3.

perform validation3.

if not selopt[] is initial.

AT SELECTION SCREEN ON SEL1.

perform validation4.

endif.

Thanks & Regards,

Anil Salekar

Read only

0 Likes
1,662

hi anil,

i am using as u said.

its working fine.

but getting an error when i use At selection-ecreen event inside an if statement.

Read only

0 Likes
1,662

hello Poonam ,

Try this ...

tables: sscrfields .

At-selection-screen .

if sscrfields-ucomm = 'ONLI' . (the sy-ucomm value of excute button )

Put you validation here .

endif.

the below code is working perfectly in my report ..May this will help you ...

CASE sscrfields-ucomm .

WHEN 'ONLI'.

IF rb_app = 'X'.

IF p_aifile IS INITIAL .

MESSAGE e902 .

ENDIF.

ELSE.

IF p_pifile IS INITIAL .

MESSAGE e902 .

ENDIF.

ENDIF.

ENDCASE.

ENDIF.

thanks and regards..

Priyankl

Read only

Former Member
0 Likes
1,662

hi poonam,

at selection-screen on <field_name> is one solution.

but can you drop your validation code here. i guess there is some error in logic there too.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,662

First add a TABLES statement in the TOP include:

TABLES: sscrfields.

Then in you AT SELECTION-SCREEN EVENT, add a check like

AT SELECTION-SCREEN.
  IF sscrfields-ucomm EQ 'ONLI'
  OR sscrfields-ucomm EQ 'PRIN'.
    " checks here
  ENDIF.

The checks will only be processed when user actually launch the report.

NB: You can check other values of sscrfields-ucomm (ENTER should be initial and click on multiple selections should be a code begining with a '%'.

Regards,

Raymond

Read only

Former Member
0 Likes
1,662

Hi Poonam,

I think u need to validate it in START-OF-SELECTION event.

in select querry u mention low or high value.

reagrds,

pravin