cancel
Showing results for 
Search instead for 
Did you mean: 

Field validation in MIRO Transaction

Former Member
0 Kudos

Hi All..

My requirement is like...

In MIRO Tcode...for the Details tab..very first field...Unplanned Delivery Cost..

In this field user shud not enter value more than '10'.

How to achieve this??

User exit??

LMR1M001

LMR1M002

LMR1M003

LMR1M004

LMR1M005

LMR1M006

MRMH0001

MRMH0002

MRMH0003

MRMN0001

I found these...can anyone tell me which one fits in above scenario

Or Field validation can be maintained??

Any other solution...pls suggest..

Regards,

Dhananjay.

Message was edited by:

Dhananjay Patil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You must be having some 'Z' message class defines in your system for giving error messages throught SAP. if that say znov then:

If i_rbkpv-beznk > 10.

Message e999(znov) with

'Unplanned Delivery cost > 10 not allowed..'.

Endif.

*

Where 999 is the message no within the above mentioned message class viz. znov. If you need to define a message class use SE91.

I hope this helps,

Regards

Raju Chitale

Former Member
0 Kudos

Hi..

I have Z message class....zmessage

but u need to include it in with....'message-id zmessage ' ..

where to do this...cause i m facinfg error which says "message-id xx missing in report statement".

Former Member
0 Kudos

Hi

Got it...

Thanx.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You may use EXIT_SAPLMR1M_004 of enhancement LMR1M001 & check If i_rbkpv-beznk > 10 Then give the error mesage.

I hope this helps,

Regards

RBC

Former Member
0 Kudos

Hi Raju...

I am tryin doing so..

But where to declare message class in this case..??

Former Member
0 Kudos

Hello

Try to implement BADI INVOICE_UPDATE. On the method CHANGE_BEFORE_UPDATE

Bye

Gabriel

Former Member
0 Kudos

Hi..

I have never worked on Badis..can u elaborate a bit more..

Former Member
0 Kudos

Hello

go to tcode se18

type the badi I wrote before.

INVOICE_UPDATE

go to implementation->create ZINVOICE_UPDATE

Give a description ....

Click on interface.....and double click on CHANGE_BEFORE_UPDATE.

This will activate the method. Put a break point.....save and activate.

Execute the tcode miro and check if it stops at the time needed.

Bye,

dont forget to reward!!!

Gabriel

Former Member
0 Kudos

Hi Gabriel,

Thanx.....will try an get back to u..

Former Member
0 Kudos

Hi Gabriel..

when i tried acivating the method it gave error sayin...The particular method is not declared or inherited in class ZCL_IM_INVOICE_UPDATE1...

What to do??

Message was edited by:

Dhananjay Patil