Application Development 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: 

Error message type doubt

former_member1006740
Participant
0 Kudos
130

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

Former Member
0 Kudos
72

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.

former_member262988
Active Contributor
0 Kudos
72

Hi,

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

Thanks,

Shailaja Ainala.

tarangini_katta
Active Contributor
0 Kudos
72

HI neelima ,

write like this

MESSAGE e000(zp) RAISING text-e03.

I hope it will work for you.

Thanks,

0 Kudos
72

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.

0 Kudos
72

Hi Nellima,

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

Thanks

0 Kudos
72

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

Former Member
0 Kudos
72

Hi,

Try this

message s000(zp) with text-e03.

EXIT.

Regards

Krishna

former_member1006740
Participant
0 Kudos
72

resloved by myself thx