Trigger an event after an IDOC is being created.
Can anyone tell me how to start on this:
I want to run a function module after an IDOC comes into our system (and is saved in the DB).
The idoc creates an inbound delivery and I have to change a value on this delivery.
I was trying to create an event that calls my function module.
Via the processing code of the IDOC I see that the object type: IDOCPACKET has an end event: MASSINPUTFINISHED
So I tried to create an enty with this object type and event in the transaction SWETYPV :
BOR Object Type IDOCPACKET MASSINPUTFINISHED SUBSCRIBE
And here in the details I've put Reciever Call: Function module and below the name of my function module. And put the linkage actived.
But now when I try transaction SWUE i don't seem to create the event. I'm wordering what I'm doing wrong...;