2008 Aug 02 6:14 AM
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.
2008 Aug 02 6:18 AM
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
2008 Aug 02 6:20 AM
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.
2008 Aug 02 6:20 AM
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.
2008 Aug 02 6:21 AM
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
2008 Aug 02 6:28 AM
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
2008 Sep 04 7:59 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |