‎2008 Aug 05 12:07 PM
Hi All,
I am displaying three fields MARA-MATNR, MARA-PLGTP and MARA-ZZ_EXPCODE on the selection screen and validating the same. When i enter wrong value (Assume the value is 12) in the MARA-PLGTP field and prees enter i am getting the error as "The price band category 12 does not exit".
So now when i enter wrong value in the MARA-ZZ_EXPCODE and press enter i want the same format of error which i am getting for the MARA-PLGTP.
Is it possible?????
Regards,
Santosh
‎2008 Aug 05 12:09 PM
Hi
make error message in massage class like
EXPCODE 7 does not exist.
in prog do.
message e<msg no>(msg class) with MARA-ZZ_EXPCODE.
Aditya
‎2008 Aug 05 12:19 PM
Aditya,
I am not talking about only a single value. As the user may be entering different values. So how can we capture that value and fix it in the message.
‎2008 Aug 05 12:10 PM
Hi.....
Yes it is possible... for any field...
find the check table for that field and do validation.
Thanks,
Naveen.I
‎2008 Aug 05 12:20 PM
Hi Naveen,
As i am referring to the custom field, so it is not having any check table. So is there any other method to get the solution?
‎2008 Aug 05 12:13 PM
Hi,
Create your own message class...in SE91 transaction or..
please check this sap help link..
http://help.sap.com/saphelp_nw70/helpdata/en/cd/5892c9b06311d2957b00a0c94260a5/content.htm
Hope this would help you
Good luck
Narin
‎2008 Aug 05 12:28 PM
Hi,
create a message class ZWP_SETUP ....
there in the messages declare like this...
say foe message 6
6 : expcode &1 doesnot exist
in report program
REPORT ZMSGMSG message-id ZWP_SETUP.
message E006 with MARA-ZZ_EXPCODE(ie field name).
‎2008 Aug 05 12:38 PM
hi Aalok,
Just tell me one thing how will you capture the value entered by the user and display that value along with the message.
Foe eg: If user enters value 100 i need to display the error message as "The Exp.Code 100 does not exit". the same way i want the error message for all the values, if the entered value is not a valid value.
Think i have given a clear picture now what i need.
Regards,
Santosh