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

user exit for MIRO

Former Member
0 Likes
21,535

Hi friends

My requirement is to do some validation in MIRO when user will press the save button. For this I am using EXIT_SAPLMRMP_010 fm exit in LMR1M001enhancement. But the problem is when I am trying to validate that and show some messages it is not showing my error message and processing is still going on. Please suggest me how to show that message and stop the processing on that point. I am using ECC 5.0 version and already checked the BADI INVOICE_UPDATE but it is also not working.

regards

shiba dutta

1 ACCEPTED SOLUTION
Read only

former_member632991
Active Contributor
0 Likes
9,627

Hi,

Put the breakpoint in each of the userexit that are provided and check whether processing is going at that step.

If it is so then put the logic in that userexit.

Exit Name Description

LMR1M001 User exits in Logistics Invoice Verification

LMR1M002 Account grouping for GR/IR account maintenance

LMR1M003 Number assignment in Logistics Invoice Verification

LMR1M004 Logistics Invoice Verification: item text for follow-on docs

LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting

LMR1M006 Logistics Invoice Verification: Process XML Invoice

MRMH0001 Logistics Invoice Verification: ERS procedure

MRMH0002 Logistics Invoice Verification: EDI inbound

MRMH0003 Logistics Invoice Verification: Revaluation/RAP

MRMN0001 Message output and creation: Logistics Invoice Verification

Regards,

Sonika

Hi friends

My requirement is to do some validation in MIRO when user will press the save button. For this I am using EXIT_SAPLMRMP_010 fm exit in LMR1M001enhancement. But the problem is when I am trying to validate that and show some messages it is not showing my error message and processing is still going on. Please suggest me how to show that message and stop the processing on that point. I am using ECC 5.0 version and already checked the BADI INVOICE_UPDATE but it is also not working.

regards

shiba dutta

11 REPLIES 11
Read only

former_member632991
Active Contributor
0 Likes
9,628

Hi,

Put the breakpoint in each of the userexit that are provided and check whether processing is going at that step.

If it is so then put the logic in that userexit.

Exit Name Description

LMR1M001 User exits in Logistics Invoice Verification

LMR1M002 Account grouping for GR/IR account maintenance

LMR1M003 Number assignment in Logistics Invoice Verification

LMR1M004 Logistics Invoice Verification: item text for follow-on docs

LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting

LMR1M006 Logistics Invoice Verification: Process XML Invoice

MRMH0001 Logistics Invoice Verification: ERS procedure

MRMH0002 Logistics Invoice Verification: EDI inbound

MRMH0003 Logistics Invoice Verification: Revaluation/RAP

MRMN0001 Message output and creation: Logistics Invoice Verification

Regards,

Sonika

Read only

0 Likes
9,627

thanks for the reply but in my case the exit is triggering but i cant able to show my error message and stop at that point. Please give any idea how can i show my message and stop the procsessing at that point.

regards

shiba dutta

Read only

0 Likes
9,627

Hi,

Check the condition on which u r writing the message,

and write the message as error messgae, then it will stop there.

Regards,

Sonika

Read only

Former Member
0 Likes
9,627

Hi SD ,

check is there any other BADIs which are avail for this MIRO. BADI should stop the process ? which method u are using ?

Regards

Prabhu

Read only

kiran_k8
Active Contributor
0 Likes
9,627

Shiba,

First time I am seeing SHIBA DUTTA posting a query,usually I see you answering to queries posted by others.Definitely,the question will be a worth.

K.Kiran.

Read only

Former Member
0 Likes
9,627

hi prabhu i have tried with the badi INVOICE_UPDATE within method CHANGE_AT_SAVE and CHANGE_BEFORE_UPDATE but it is not working.

hi sonika i am using only type e message but is not stopping it is going to the message but not showing in the MIRO tcode.

please suggest some thing its urgent.

regards

shiba dutta

Read only

0 Likes
9,627

Hi Shiba,

it is going to the message , and u have write the message as error then it should stop at this point.

Can u post ur code here so that i can suggest u some corrections if possible?

Regards,

Sonika

Read only

0 Likes
9,627

sd,

make use of exceptions <b>ERROR_WITH_MESSAGE</b>, dont raise any msgs thru keyword <b>message</b>

<b>Note that you must not send any system messages in the methods. One exception to this is the method CHANGE_AT_SAVE. In this method, you can issue a system messages if the exception ERROR_WITH_MESSAGE is triggered simultaneously.

The statement Commit Work must not be performed, since this leads to data inconsistencies in the database.</b>

regards

prabhu

Read only

0 Likes
9,627

I have tried with that exception also but it was not solving the thing by the way my issue is closed because now i am using MM08R002 and fn module EXIT_SAPLMR1M_001 it is triggering when user is selecting any line item in the po and try to save it .. here i can show my message also.

Thanx to every one

regards

shiba dutta

Read only

Former Member
0 Likes
9,627

hi kiran

really i have got problem in this and i dont know what to do so i think this is the best place where every body can share their knowledge. so i am looking forward for updating my knowledge.

regards

shiba dutta

Read only

0 Likes
9,627

Shiba,

Yes,nothing can teach SAP better than SDN.As I am a Budding Consultant I will not be of much help in this regard.Hope your prob will get solved.

K.Kiran.