A1 interface used to track warehouse inventory.Material movements from A1 interfaced to A2, which is another interface system.
Now A1 replaced with PM and WM.
Based on the work order type we query table aUFM(since it has a secondary index on AUFNR) to fetch all the desired fields apart from movement type and document posting date.For fetching the later two fields we query table MSEG using the primary key relationship for all material documents that we fetched from AUFM.Need to validate if the current approach will not hit performance.Also a better approach would be acceptable.