How to trigger a custom outbound Idoc with custom segment when invoice is created in VF01?
I have create the following things :
1. Custom Segment Type
2. Custom Idoc
3. Custom Message Type
The requirement is that whenever the custom message type is triggered through VF01/VF02 , my custom Idoc should get triggered and all the fields of the idoc should be populated.
I cannot enhance the standard idoc. I want a new idoc to be triggered from the system.
How do I achieve this?