Hi experts,
I need advice on a point of config, for billing an STO in a Plants Abroad situation. I have a possible course of action to resolve my problem, but I'm looking for suggestions for a simpler solution.
Currently (before we introduced Plants Abroad) our config for STO and billing is as follows:-
We create an STO, with Purchase Doc type UB.
A replenishment delivery - document type NL is created.
This delivery is then billed using billing document type F2. We create our invoices both manually, using VF01, and automatically, running program SDBILLDL in a background job.
In config this is a simple sequence - Document UB is set to default to delivery type NL. The NL document type is set to default sales order type DL, and DL is in turn set to default to billing type F2.
Now we have introduced Plants Abroad for one plant which is in Spain but belongs to our UK company code. We are set up to use the same STO document type UB, then delivery type NL, which has been set up in copy control so that the Plants Abroad billing type WIA can be used with it. When I create billing documents using VF01, and I enter the WIA document type this works fine.
However, when I don't enter a document type, or when the program is run, it is F2 that defaults. I understand why this is happening, because of the sequence of config described above.
So, my question is - how can I best amend my config so that WIA will be automatically defaulted for the Plants Abroad items, but F2 will continue to be defaulted where Plants Abroad does not apply?
When I look at the config it seems to me that it's a continuous one-to-one chain, and that I will therefore need to create a new Purchase Document type, new sales order type, and a new delivery type. This seems a very heavy-handed way of solving the problem. Does anyone know of an easier, simpler way? Or is there maybe a possible solution involving User Exits?
Thanks in advance for your suggestions,
Val