Hi Ringo,
Just copy the contents of the standard function module "IDOC_INPUT_ORDERS" and paste in in your custom function module "z......" instead of calling the function module inside yours.
Do let me know in case you still face any issue.
Thanks.
Regards,
Rachit.