API to issue and return parts to a work order on EAM
For example, given work order "WO1", (wip_entity_id = 12345), I want to issue 1 of part number "PART1" (inventory_item_id 2345) from locator "A-01-01" (inventory_location_id 3456) from subinventory "PARTS ROOM".
I may also need to return it back to inventory if it is not actually used.
I have tried using a WIP COMPONENT ISSUE using MTL_TRANSACTIONS_INTERFACE, but that doesn't work for EAM.
I have found EAM_MATERIALISSUE_PVT.Fork_Logic and that seems to work for issuing parts, but not for returning them, and I am not sure if this is the right API to use in this case.