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

Displaying Error Message

Former Member
0 Likes
1,001

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

7 REPLIES 7
Read only

Former Member
0 Likes
955

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

Read only

0 Likes
955

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.

Read only

naveen_inuganti2
Active Contributor
0 Likes
955

Hi.....

Yes it is possible... for any field...

  • find the check table for that field and do validation.

Thanks,

Naveen.I

Read only

0 Likes
955

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?

Read only

narin_nandivada3
Active Contributor
0 Likes
955

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

Read only

Former Member
0 Likes
955

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).

Read only

0 Likes
955

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