Hello,
The inbound delivery should be created first as described in the note 1373027:
1) Create the inbound delivery for the PO with movement type 105 - ID is replicated to EWM
2) Perform the 103 posting with reference to the PO in ECC (by using MIGO)
3) Perform the GR in EWM - ID in ECC is updated accordingly.
Regrads,
Thomas