Application Development 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: 

Enhancement in MIRO. Looking For BADI/EXITS

JanjanamRamesh
Participant

Hello Everyone,

I Should Implement User Exit or BADI for to check and validate PO data for MIRO. While “Save”ing a manually created invoice I have to check if Purchase order referenced on the Line items,

If purchase order referenced, I Should check if partner function “AZ” maintained at purchase order header level, If partner function “AZ” available on PO header, I Should force the user to select Individual Payee on the selection on the Invoice Payment tab. If Individual Payee not selected I should throw a hard error “ Message 1” while “Save”ing.

Note* : In MIRO , Partner Function is not available. So, i thought of getting Partner function from ME23N.

So, How could this be done. Please suggest.

5 REPLIES 5

venkat_aileni
Contributor
0 Kudos

Hello Ramesh,

I don't which user-Exits or BADI's fulfills your criteria, but why don't you go for Implicit enhancement ?

Find out the Include which was triggering when you click on the save button.

And add your condition in that include using Implicit Enhancement. This fulfills your requirement.

Thanks,

Venkat

0 Kudos

Thanks Venkat, i will look for Implicit Enhancement, If you got any BADI's or EXITs let me know.

0 Kudos

Hi Ramesh,

If you looking for the User-Exits just follow this procedure:

Ways to find Customer-Exits:

Method #1:   Searching Customer-Exit for a particular transaction.

Open the Transaction

Go to SYSTEM -> Status

Double click on Program Name(This opens the report)

Press Cntrl+F and then enter CALL CUSTOMER and select in main program radio button and press Enter.

You can find the possible Customer-Exit for that particular transaction.

Method #2:

Go to Transaction: SMOD.

Goto tab Utilities then choose Find.

Give the package name and Execute(F8).

We can find out all the possible Customer-Exits based on this package.

Method #3:

Go to Transaction: SE84

Select Enhancements -> Customer-Exits -> Enhancements.

Give Package name and Execute.

We can find out all the possible Customer-Exits based on this package.

If you want to know which User-Exit will trigger after pressing Save Button.

Put Break-point in the User-Exits and perform the transaction. After saving if it gets triggered then use it but before using check Import Parameters(Else use Watch Point or Check Global values in Debugger).

Thanks,

Venkat

raymond_giuseppi
Active Contributor
0 Kudos

Look at BAdI INVOICE_UPDATE "Business Add-In: Logistics Invoice Verification" (also migrated to enhancement spot with the same name) (can be found with scn search tool, SPRO, debug or source scan)

> Use method CHANGE_AT_SAVE which allows raising an error message triggering a system error ERROR_WITH_MESSAGE.

For more friendly error message, try to find an enhancement spot as already written, as ES_BADI_MRM_PARTNER.

Regards,

Raymond

JanjanamRamesh
Participant
0 Kudos

Hi, Thanks for your Support.

I Got The solution for this.. I Used BADI, MRM_HEADER_CHECK. This Solves my problem