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: 

MIRO-compare Inovice and Oldest GR date of PO

Former Member

Hi,

We have a requirement in MIRO transaction. We need to check the Invoice date(INVFO-ZFBDT) with Oldest GR date for the Purchase order and raise an error messge.please help is in which Exit we can capture the PO number in MIRO transcation .

Regards,

khaderhussain.

1 ACCEPTED SOLUTION

GauthamV
Active Contributor

Check this exit.

LMR1M001

EXIT_SAPLMR1M_002

Drseg structure contains PO number.

6 REPLIES 6

GauthamV
Active Contributor

Check this exit.

LMR1M001

EXIT_SAPLMR1M_002

Drseg structure contains PO number.

0 Kudos

Hello @GauthamV 

I'm new in SAP ABAP and i'm trying use the exit that you mentioned EXIT_SAPLMR1M_002, i'm implemented this one and put a break point on it, but it doesn't reach the breaking point. Do you know why it would be?

Thanks a lot.

Greetings

Did you create and activate a project on this exit (transaction CMOD)

0 Kudos

Hello @raymond_giuseppi 

Is an existing project (tx CMOD)

This is the package where the project and exit are locatedychavez_0-1708958736779.png

ychavez_1-1708959090473.png

 

Greetings!!

 

0 Kudos

You didn't paste the correct CMOD project attributes

raymond_giuseppi_1-1708963944511.png

In fact, you've copied SMOD screen ?

0 Kudos

Here is the correct transaction:

ychavez_0-1708968693023.png

The program/ include ZXM08U09 of the exit is located in this package

ychavez_1-1708969185904.png

The project already had this user exit implemented, which works correctly EXIT_SAPLMRMP_010 and enters in the process implemented. My include and the include that works are in the same package.

But in my case it doesn't enter the user exit EXIT_SAPLMR1M_002.

Greetings!!