We want to restrict the automatic bar code request pop up to specific company codes or plants, either through customizing or user exists.
You can see that material documents are activated according to the transaction code and the movement type (and not according to the Company Code), you can see the information in this following path:
SPRO > Materials Management > Inventory Management and Physical Inventory > Goods Receipt > Activate Storage of Incoming Documents
To resolve this issue please do as following:
There is no MM-IM user exit or BAdI available to restrict the automatic bar code request pop up to specific company codes or plants, but you should be able to use for example the BADI MB_DOCUMENT_BADI (method MB_DOCUMENT_BEFORE_UPDATE) in conjunction with the user exit defined in the table TOAEX to achieve this.
In the BAdI MB_DOCUMENT_BADI you have all the data about the MM document that is normally contained in the tables MKPF and MSEG. Further, if you wish to de-activate the pop up you can set a particular value in MEMORY ID i. e. EXPORT 'NO_BARCODE' to MEMORY ID 'CHECK_BACODE'. Within the user exit for the barcode processing you can then IMPORT this value and if necessary suppress the bar code pop up.
The memory ID is between each goods movement that is, DELETE FROM MEMORY ID 'CHECK_BACODE'.