‎2008 Feb 25 3:53 AM
Hi all,
In system the Date setting DD.MM.YYYY,
In selection screen
Parameters : p_date like konh-erdat.
I am having the date as parameter.
when i am entereing the date in DD-MM-YYYY format, it is showing the
Standard message has 'Enter the date in __:__:_____.
But whereas my client needs to capture standard message and to display the customised message has 'Enter the date in DD:MM:YYYY.
Will this possible, please let me know this is urgent.
‎2008 Feb 25 3:56 AM
hi varisetty madhavi
you can define the customized message under the event.
AT SELECTION SCREEN ON P_DATE.
read the documentaiton
This event is triggered at the screen event PAI of a selection screen if the content of the input field of a parameter para or a line of a selection criterion selcrit was passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or an error message in the event block makes the fields para and selcrit ready for input again.
No parameter that is defined as a radio button can be specified. For this purpose, the addition ON RADIOBUTTON GROUP is provided.
reward if helpful
Rohan
‎2008 Feb 29 1:03 PM
Hi Madhavi,
Since Format check is an automatic field check, a default error message is generated whenever the input is incorrect. But, the system generated error message can be manually overridden by the following way.
AT SELECTION SCREEN ON P_DATE.
If sy-subrc NE 0.
Message E888(SABAPDOCU)
using 'Enter the date in DD:MM:YYYY'.
Endif.
This should solve your problem. Please award points if this was helpful.