Skip to Content
0

Trigger an event ,when invoice posted from Mir7

Feb 02, 2017 at 07:03 AM

56

avatar image

Hi Experts,

I have a requirement, to create event based background job. When an invoice is parked from MIR7 and then if some one tries to post it , i need to trigger an event, and based on that event i need to run the background job. So whenever an invoice is posted this background job should run and send the invoice data to Maximo.

How do I resolve/approach this ? Any hints will be greatly appreciated.

Regards,

Sachin.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Raymond Giuseppi
Feb 02, 2017 at 07:13 AM
2

Did you look at a BAdI like INVOICE_UPDATE which methods are triggered in the SAVE process of invoice. For other available BAdIs executed during transaction, read 1156325 - BAdIs in the Logistics Invoice Verification environment.

Regards,
Raymond

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Raymond,

Thanks for the reply.

Yes, I have check the Badi 'INVOICE_UPDATE' and in method 'change before update' i got the new invoice number also, and tried to trigger an event there, but the problem is at that time the new invoice details are not updated in RBKP table , which i am using in another report to send the invoice data to Maximo system.

what I want is, whenever the new entry created in RBKP table (i.e. new invoice posted) the event should trigger.

please give your valuable suggestion.

Regards,

Sachin.

0

Wrap your event triggering code in a RFC enabled FM, CALL this FM IN BACKGROUND TASK, so it will be executed after database update. (For background event use BP_REMOTE_EVENT_RAISE which is RFC enabled)

1