2009 Apr 09 8:55 AM
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.
Hi,
Did you do it through user exit.....or badi
Thanks,
Shailaja Ainala.
2009 Apr 09 9:23 AM
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.
2009 Apr 09 9:37 AM
Hi,
Did you do it through user exit.....or badi
Thanks,
Shailaja Ainala.
2009 Apr 09 2:03 PM
HI neelima ,
write like this
MESSAGE e000(zp) RAISING text-e03.
I hope it will work for you.
Thanks,
2009 Apr 10 6:01 AM
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.
2009 Apr 15 1:25 PM
Hi Nellima,
R u using exits or any BADI's.Beause it works for me in my report.
Thanks
2009 Apr 15 2:15 PM
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
2009 Apr 15 1:54 PM
Hi,
Try this
message s000(zp) with text-e03.
EXIT.
Regards
Krishna
2009 Jun 24 12:54 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |