Hi,
The stock doesnt store the information about the PO or PR or requisitioner. There can be multiple receipt of the same material against different PO or PR. In this case, the system cant track the PO or the requisition. While goods issue also, system wont / cant track the PO against stock.
However, there is a possibility if you are using batch management. If you are using batch management, you can create a batch characteristic like department or requisitioner. While creating PR or PO, maintain the requistioner or department in the requisitioner or tracking number field in PR or PO. It will be better if you can create a Ztable and mainatin the department or requisitioner in the Ztable. Use search help to populate value for the requisitioner from the ztable. Refer the thread: http://scn.sap.com/thread/1971269
http://help.sap.com/saphelp_nw04s/helpdata/EN/cf/21ee38446011d189700000e8322d00/frameset.htm
You may use user exit (like EXIT_SAPMM07M_004 ) which can import the department or requisitioner from EKPO or EBAN table and update the same in the batch classification against the characteristic while doing GR. Now, you can track the material based on the requisitioner or department.
For goods issue in MIGO, you can modify the standard field "Goods Recipient" in where tab, with search help from the ztable created. While selecting batch, the system will populate the batch characteristics.
You may use user exit to compare the goods recipient field in migo and the requisitioner or department value in the batch characteristics. Write logic in the exit in such a way that the system wont allow goods issue if both the above are not the same.
Regards,
AKPT