Hi
There is no straight FM or BAPI to do this. Have to go by the classes and methods the standard uses to create inbound delivery. It is based on BOPF framework. See the below note for a sample program that uses the same time of coding for outbound delivery.
1414179 - Technical documents for software development in EWM
FYI, the /SCWM/INB_DLV_SAVEREPLICA, cannot be used as this is for process if deliveries gets created in ECC first and then EWM. Production receipt is the other way.
hope this helps.
Thanks, Raj