We have similar kind of requirement.Where Vendor sends the PO Inbound message which contains Store components.First system will create the Purchase Order in SAP then based on PO information and Store quantities Allocation table should be created.
Initially we used FM but it didn't work .So we used BDC to create Allocation table.Try with BDC.