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

Message in selection screen

Former Member
0 Likes
469

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.

2 REPLIES 2
Read only

Former Member
0 Likes
348

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

Read only

Former Member
0 Likes
348

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.