Below is my requirement.
Created a new Item category 'Z' which is the copy of IC 'N',
When enter a line item in 'Component' tab of IW32 with item category Z, system should pick G/L account XYZ in purchase requisition creating for that line item. I wanted to use this requisition for services (we don't want to use service masters).
Note - When using item category N for non stock material (line item without material number), system is picking ABC G/L account which is available in order profile.
Can some one please suggest a user exit/BAPI so that code can be written to pick G/L account XYZ on the basis of IC 'Z' or any other solution.
Basically, purchase requisition should be crated for different G/L accounts for IC 'N' and 'Z' when enter line item under component tab of IW32 with
1. G/L account ABC if line item with IC N and
2. G/L account XYZ if line item with IC Z