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

Update amount when quantity has changed in MIRO

Rushikesh_Yeole
Contributor
0 Likes
3,121

For INVOICE in MIRO tansaction, i supply PO number in PO reference..

When i change the quantity in item level for PO , Amount corrresponding should get updated before saving .

Amount = quantity * Price.

I have gone through uer exits and BADIS

Kindly suggest proper user exit or BADI implementation or Method.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,679

Hi,

Try customerexit LMR1M001 -- User exits in Logistics Invoice Verification.In this function module to be used is EXIT_SAPLMRMP_010. If you getting the amount in E_TDRSEG.Then you only need to update this table found in fm EXIT_SAPLMRMP_010. I dont have a test system to actually check when it is getting triggered.So kindly try this and let me know the status.

Regards,

NickD.

14 REPLIES 14
Read only

Former Member
0 Likes
2,680

Hi,

Try customerexit LMR1M001 -- User exits in Logistics Invoice Verification.In this function module to be used is EXIT_SAPLMRMP_010. If you getting the amount in E_TDRSEG.Then you only need to update this table found in fm EXIT_SAPLMRMP_010. I dont have a test system to actually check when it is getting triggered.So kindly try this and let me know the status.

Regards,

NickD.

Read only

0 Likes
2,679

I checked the above enhancement. i wriiteen my code in it.

but it is not going into debugging. MIRO screen number is 6000.

Kindly elaborate in detal...

Read only

0 Likes
2,679

I checked the above enhancement. i wriiteen my code in it.

but it is not going into debugging. MIRO screen number is 6000.

Kindly elaborate in detal...

Read only

0 Likes
2,679

I checked the above enhancement. i wriiteen my code in it.

but it is not going into debugging. MIRO screen number is 6000.

Kindly elaborate in detal...

Read only

0 Likes
2,679

I checked the above enhancement. i wriiteen my code in it.

but it is not going into debugging. MIRO screen number is 6000.

Kindly elaborate in detal...

Read only

0 Likes
2,679

I checked the above enhancement. i wriiteen my code in it.

but it is not going into debugging. MIRO screen number is 6000.

Kindly elaborate in detail...

Read only

0 Likes
2,679

I checked the above enhancement. i wriiteen my code in it.

but it is not going into debugging. MIRO screen number is 6000.

Kindly elaborate in detail...

Read only

0 Likes
2,679

I checked the above enhancement. i wriiteen my code in it.

but it is not going into debugging. MIRO screen number is 6000.

Kindly elaborate in detail...

Read only

0 Likes
2,679

I checked the above enhancement. i wriiteen my code in it.

but it is not going into debugging. MIRO screen number is 6000.

Kindly elaborate in detail...

Read only

Former Member
0 Likes
2,679

Hi,

Check enhancement LMR1M001

Regards

Vinod

Read only

Former Member
0 Likes
2,679

Hi,

Please use BADI INVOICE_UPDATE.Check method CHANGE_AT_SAVE .

Thanks and Regards,

P.Bharadwaj

Read only

Rushikesh_Yeole
Contributor
0 Likes
2,679

I checked the above enhancement. i wriiteen my code in it.

but it is not going into debugging. MIRO screen number is 6000.

Kindly elaborate in detail...

Read only

0 Likes
2,679

Hi,

I checked further this is what I found :

According to SAP Note 1156325 - BAdIs in the Logistics Invoice Verification environment:

Definition name: INVOICE_UPDATE

Usage

The BAdI 'INVOICE_UPDATE' was only designed to execute checks during

document entry or document posting in transaction MIRO.

According to SAP Note 392342 - MIRO: No data change through Bussiness Add In

Symptom

In the logistics invoice verification MIRO, you cannot change data using

Business Add In 'INVOICE_UPDATE'.

Additional key words

BAdI, SE18, MRM_BADI_INVOICE_CHECK,

Cause and prerequisites

This system behavior is correct.

BAdI 'INVOICE_UPDATE' was only designed to execute checks during the

document entry or document posting in Transaction MIRO. Therefore, it has

only import parameters. There are no export parameters. This means that the

data changed in the BAdI is not processed further in standard program MIRO.

So When you are using transaction MIRO 'SIMULATE' it goes the break-point .The badi is called in FM 'MRM_BADI_INVOICE_CHECK'

THanks and Regards,

P.Bharadwaj

Read only

0 Likes
2,679

Thaks for the reply..

But i have to update amount on screen...

e.g. if i change the quantity on screen and press enter it should update amount.

Above exit and Badi are coming after saving.

Kindly suggest. or where should i call the BADI?