Hi,
Purchase account is taken from the Gen. Prod. Posting group - from Item card. It means, that if You would like to have one item to be posted differently from the same PO - in the lines Item quantities would need to be split - for the manufacturing in one line, and for R&D in separate line. In the R&D line, the Gen. Prod. Posting group should be different.
To achieve this there are 2 options;
1) keep duplicate items for R&D purposes with different Gen. Prod. Posting group on the item card. If You don't want the stock to pile up for items here, You can provide them to be Type = Non-inventory or Service.
2) Add the column Gen. Prod. Posting in the PO lines. And for those items/quantities that will go to R&D, indicate different Gen Prod. Posting group. This has to be changed manually - as when Item is selected, it will fill up with the value from Item card.
For both option You would need to add General Posting Setup lines for the Gen. Bus. Posting group and the new Gen. Prod. Posting group combination, and indicate the Purchase account the R&D GL account.
One other option (but not sure if it works well), would be to use different locations. For manufacturing use FACTORY, and for research use RD location. This way when purchased, the value of goods will be accumulated in different G/L accounts (form the Inventory Posting Setup). But this way inventory would pile up, and You would need to perform monthly actions - to transfer value from RD Inventory GL to R&D account, and then re-value items in R&D location to be of 0 value, and then to a phys. inventory for this location indicating that there are no more items here - so that Inventory levels for these items don't mess up the Procurement process, and they can see that these items are out of stock when planning new purchases for Manufacturing.