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

issue in select option

Former Member
0 Likes
853

HI.

I created ALV report with select option .i am getting error message if input is invalid as per validation but after the error message its come out from select option screen to plain screen,

I want to avoid it ,I need to stay same screen (select option screen )if I entered invalid input ,

How I can do it? Please help me .

Regards,

Jay

Hi,

In which event you are doing validation.

The validation is done in at selection-screen event or PAI event.

Give the error message in PAI event.

Also check any write statements are there in between.

Hope it helps you.

6 REPLIES 6
Read only

bpawanchand
Active Contributor
0 Likes
811

Hi

I hope there is a OUTPUT statement like either WRITE or SKIP or ULINE can you please check it or else please post the code that is having the problem.

regards

Pavan

Read only

Former Member
0 Likes
811

Hi,

In which event you are doing validation.

The validation is done in at selection-screen event or PAI event.

Give the error message in PAI event.

Also check any write statements are there in between.

Hope it helps you.

Read only

Former Member
0 Likes
811

Hi Jay,

I think you are displaying the error message in START-OF-SELECTION. Just check it out and display the message in AT SELECTION-SCREEN (I Mean in PAI event).

Regards,

Mahi.

Read only

Former Member
0 Likes
811

hi,

you can put your validation code inside,

At SELECTION-SCREEN ON <Filed>.

Put an Error Message if the input is wrong.

Regards

Sumit Agarwal

Read only

Former Member
0 Likes
811

Hi Jay,

Put a validation like this, check perform validation.

*Global Declarations

INCLUDE /dceur/z_rev_cre_de_memo_top.

*Subroutines

INCLUDE /dceur/z_rev_cre_de_memo_f01.

*Events

AT SELECTION-SCREEN.

PERFORM validations.

----


  • START OF SELECTION

----


START-OF-SELECTION.

*Authorization check for Plant

PERFORM authority_check.

PERFORM fetch_data.

END-OF-SELECTION.

----


*END-OF-SELECTION

----


for the same validation

FORM validations.

CLEAR : wf_vguid,

wf_vhcle,

wf_zz_commnos,

wf_zz_fin_dest_key,

wf_zz_shk_flg,

wf_zz_ord_clsfcn.

IF pa_vhcle IS INITIAL AND pa_comm IS INITIAL.

*Either internal vehicle no. or commission no. should be entered.

MESSAGE e197(/dceur/zais_msg2).

  • LEAVE LIST-PROCESSING.

ENDIF.

Mohinder

Read only

Former Member
0 Likes
811

thanks