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

selection-screen validations

sivakrishna_boddapati
Participant
0 Likes
852

Hi Experts ,

I have module pool program there in first screen user have choice to select screen if user select the first screen .The selection will be displayed with two parameters using key word

selection-screen begin of screen 2002.

parameters : p_date type sy-datum,

p_num type kunnr.

selection-screen end of screen 2002.

call screen '2003'.

now i want to do validations on these parameters ,

please let me know how can i validate these selection-screen fields there i try chain and endchain in screen 2003 , it says no fields in screen 2003. screen 2002 was developed dynamically by systemplease let me know how to do validations i search it i cant find it plz solve issue .

9 REPLIES 9
Read only

Former Member
0 Likes
810

Hi,

Just want to know in which Screen you created the selection screen.

With Regards,

Sumodh.P

Read only

0 Likes
810

call selection-screen 2002.

call screen 2003.

in the flow logic of screen 2003 i fetch data according to selection-screen values of 2002. so before this i want to validate those selection-screen fields .

screen 2002 was developed by system automatically there we have chain and endchain. if we try change there it says messages

at the time of screen regeneration all data will be lose.

Read only

0 Likes
810

Hi,

How the screen 2002 has Created. is that screen not created by you ?

If it not leave it.

Before fetching the data with the selection screen values try to validate those values.

With Regards,

Sumodh.P

Read only

0 Likes
810

hi

i think there are two methods two create selection screen

1. using layout here we can create selection screen with screen painter

here we can validate using chain end endchain.

Plz try this on

Selection Screen

Defined within an ABAP program; called by the runtime environment or using the CALL SELECTION-SCREEN statement; processed in event blocks of the corresponding ABAP program.

in main screen we have 3 selections for screen 2002 ,2004, 2006.

if sy-ucomm = 2002.

2 . selection-screen begin of screen 2002.

parameters : .........

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

selection-screen end of screen 2002.

call selection-screen '2002'.

once this was triggered after entering vales it return to the next step then

call screen 2003.

then it goes to PBO and PAI events.

endif.

if sy-ucomm = 2003.

selection-screen begin of screen 2003.

parameters : .........

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

selection-screen end of screen 2003.

call selection-screen '2003'.

once this was triggered after entering vales it return to the next step then

call screen 2004.

then it goes to PBO and PAI events.

endif.

all these are done in initial screen PBO . and those are created dynamically now i want to do validations on selection-screen fields. we can;t use at selection-screen in module end end module .

plz let me know if you know any thing more.

Read only

Former Member
0 Likes
810

hi,

use:

At selection-screen for P_date.

"write your Validations here.

Regards

Sajid

Read only

0 Likes
810

hi sajid

In module pool program we can't write at events plz check it

Thanks & Regards

Krishna

Read only

Former Member
0 Likes
810

Hi,

In flow logic you have write ur code PROCESS AFTER INPUT. and which filed you want to validation create module like

filed name MODULE d9000_pai_text_item on input or on request.

It help for you.

Thanks

Regards

I.Muthukumar.

Read only

Former Member
0 Likes
810

Hi,

AT SELECTION-SCREEN.

CHECK NOT p_date IS INITIAL.

write ur code...

CHECK NOT p_num IS INITIAL.

write ur code...

Regards,

Raj.

Read only

sivakrishna_boddapati
Participant
0 Likes
810

if we want to validate selection-screen

write at selection-screen in top include of your program. we cant write AT events in between module and end module.