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

How to avoid standard SAP error message & put custom error message

Former Member
0 Likes
1,544

Hi All,

I am using a select option "Billing key date" on selection screen.

When user enters Date to greater than Date from then, I want that error message "Billing key date -From Date must be before Billing key date - To Date" should be displayed on screen.

I have put validation for this at AT SELECTION SCREEN.

Instead of getting my custom erro message I am getting standard SAP error message "Lower limit is greater than Upper limit".

I tried to debug, but the error message is coming just after /h -Enter.

Please suggest some way by which I can avoid standard SAP message & my custom message is displayed.

Regards,

Vijay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,195

Hi

For Date fields SAP std validation is like that

you can't change it.

Anyhow it means the same (yours and SAP's)

<b>Reward points for useful Answers</b>

Regards

Anji

Hi All,

I am using a select option "Billing key date" on selection screen.

When user enters Date to greater than Date from then, I want that error message "Billing key date -From Date must be before Billing key date - To Date" should be displayed on screen.

I have put validation for this at AT SELECTION SCREEN.

Instead of getting my custom erro message I am getting standard SAP error message "Lower limit is greater than Upper limit".

I tried to debug, but the error message is coming just after /h -Enter.

Please suggest some way by which I can avoid standard SAP message & my custom message is displayed.

Regards,

Vijay

6 REPLIES 6
Read only

Former Member
0 Likes
1,195

Hi Vijay,

Instead of putting the validation in the event AT SELECTION SCREEN,

try to use it in the event

AT SELECTION SCREEN ON FIELD.

Check if the lower limit is greater and if yes, provide custom error message.

<b>Reward points for helpful answers.</b>

Best Regards,

Ram.

Read only

Former Member
0 Likes
1,195

Hi Vijay,

For select-option there is no need to have any validations for lower and upper limit. SAP will take care of it and it is the standard way.

Regards,

Atish

Read only

0 Likes
1,195

Hi Vijay,

If still you want to modify this functioanlity then you need to do this by modifying the screen in CHAIN...ENDCHAIN.

By default the selection screen 1000 generates, you need to modify it then it may work.

Regards,

Atish

Read only

Former Member
0 Likes
1,196

Hi

For Date fields SAP std validation is like that

you can't change it.

Anyhow it means the same (yours and SAP's)

<b>Reward points for useful Answers</b>

Regards

Anji

Read only

Former Member
0 Likes
1,195

HI Vijay,

This is SAP standard check on select-option and will come always.

Read only

Former Member
0 Likes
1,195

Hi

With ranges, the lower limit must not be greater than the upper limit.

You cannot forego this restriction and add your own custom message. These restrictions are placed by SAP and cannot be skipped.

Regards

Raj