Hi Besana,
In your scenario, the function module what you are using has the inbound interface and it is not correct one to use it for outbound process.Could you please explain clearly what you want to do. I mean after inbound delivery creation , what you want to send in outbound.
Regards,
Ravi