‎2009 Jul 09 11:55 AM
hi all,
I HAVE A REQUIREMENT IN WHICH WHEN I AM ENTERING WRONG PLANT THE REAMINING ELEMENTS IN SELECTION SCREEN ARE GETTING DEACTIVATED.SO MY QUESTION IS HOW TO MAKE THEM ACTIVE EVEN THOUGH I ENTER A WRONG PLANT IN THE PLANT FIELD OF SELECTION SCREEN.
‎2009 Jul 09 11:56 AM
hi
use at selection screen for a field
AT SELECTION-SCREEN ON p_carrid.
IF p_carrid IS INITIAL.
MESSAGE 'Please enter a value' TYPE 'E'.
ENDIF.
Regards
Sajid
Edited by: shaik sajid on Jul 9, 2009 12:57 PM
‎2009 Jul 09 12:00 PM
Use Validation for all selection screen variable as SAJID has given you the example.
Regds,
Anil
‎2009 Jul 09 12:00 PM
Hi,
You might be using loop at screen in at selection screen event for modifying the screen dynamically. If you do not want any modification remove that code. Just validate your plant if it is wrong.
Thanks & Regards,
Satish
‎2009 Jul 09 12:07 PM
‎2009 Jul 09 12:18 PM
Hi,
If the PLANT is madatory, and if you enter wrong PLANT, it will disable other fields. So in this case make that PLANT optional and try to giv ERROR message.
Regards,
Sandhya
‎2009 Jul 09 12:20 PM
>
> hi all,
>
> I HAVE A REQUIREMENT IN WHICH WHEN I AM ENTERING WRONG PLANT THE REAMINING ELEMENTS IN SELECTION SCREEN ARE GETTING DEACTIVATED.SO MY QUESTION IS HOW TO MAKE THEM ACTIVE EVEN THOUGH I ENTER A WRONG PLANT IN THE PLANT FIELD OF SELECTION SCREEN.
PLEASE DON'T POST IN ALL CAPITALS
‎2009 Jul 09 12:20 PM
Hi kartikeya,
Look At this code on the given Link
https://wiki.sdn.sap.com/wiki/display/Snippets/inactiveprogramsundertheuser
Also you can refer the wiki Link below to Refer the codes You can choose for the
critical fields in the Program
https://wiki.sdn.sap.com/wiki/display/ABAP/Handlingcriticalfieldsinabapprogram.
regards
Saurabh Goel
Edited by: Saurabhgoels on Jul 9, 2009 1:21 PM