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

Error message type doubt

Former Member
0 Likes
812

HI folks,

i am getting error in message type..

i added one age field in infotype 0002(personal details ) of HR transaction.

this field iam validating based on date of birth field .my requirement is if age is less than 21 i need to raise one error message .i have written code as follows.

message e000(zp) with text-e03.

error message is coming in pop-up if i press enter the t-code is exiting.

please tell me how to code the error message it just give in pop-up message or it should show in status-bar as error message, but it should not exit the transaction.

Please do needful.

Thanks,

Neelu.

8 REPLIES 8
Read only

Former Member
0 Likes
754

Hi Neelu,

If you are using a Module Pool prg then you could use Chain .. EndChain

Define a CHAIN synatx following a FIELD statement

for example

PROCESS AFTER INPUT.

CHAIN.

FIELD input3.

FIELD input4.

FIELD input5.

MODULE check_chain ON CHAIN-REQUEST.

ENDCHAIN.

So in the above case you can use module check_chain to validate the age such that the prg does not exit the screen.

Read only

Former Member
0 Likes
754

Hi,

Did you do it through user exit.....or badi

Thanks,

Shailaja Ainala.

Read only

tarangini_katta
Active Contributor
0 Likes
754

HI neelima ,

write like this

MESSAGE e000(zp) RAISING text-e03.

I hope it will work for you.

Thanks,

Read only

0 Likes
754

HI,

There is no effect after i tried ur code also..it is giving information message,after i pressed enter it is exiting whole transaction..i dnt want like dat it should give informatio message or error message in status bar or pop-up,but it should not exit the t-code.

Thanks,

Neelu.

Read only

0 Likes
754

Hi Nellima,

R u using exits or any BADI's.Beause it works for me in my report.

Thanks

Read only

0 Likes
754

Hi Nileema,

Try:

MESSAGE e000(zp) with test-t01 DISPLAY LIKE 'S'.

Cheers,

Aditya

Edited by: Aditya Laud on Apr 15, 2009 3:15 PM

Read only

Former Member
0 Likes
754

Hi,

Try this

message s000(zp) with text-e03.

EXIT.

Regards

Krishna

Read only

Former Member
0 Likes
754

resloved by myself thx