Requirement is , want to have purchase order number plant wise. I know that we can have different number ranges for different document types in standard SAP. But how to achieve different number ranges for purchase order plant wise.?
Is there any user exits available for this?
it is possible through a BADI to get the separate number ranges for plant wise PR/PO,
but u need to maintain a customised table with number ranges and plants,
whenever the user try to save a PO/PR the syatem will pick the number range from the customised table,
that BADI is ME_PROCESS_PO_CUST,
it is very useful if any client has number of plants like 30 or 40 plants,
and it is easy track the PO from where it has raised.
you forgot to say that you have to prevent having items for more of one plant in a PO then.
By the way I have more than 500 plants in the system and do not need to use extra number ranges to know from which plant the PO was raised. A very few people will be able to know 500 different number ranges to immediatly this Po was raised from plant xxxx.
set PO number range to external in config.
Use either the exit or the BADI previously mentioned.
1. On call PO create, stick any old number in initially (you don't know the Plant yet)
2. On Save or Check, check only one Plant for all items on PO, error message if not.
3. On exit, if PO not saved, you haven't referenced the 'real' PO numbers so just allow exit
4. On exit, if PO saved, call bespoke number range tables (take next number for given Plant, update last PO number).
It would be worth checking the confirmation of PO create includes the 'real' PO number too.
I think you wants a identification of PO with plant wise. So just you need to a small customization in PO format for PO Number Block to you ABAP people.
For Example : Your plant is : 1000 and PO number 5000000456, So its should be display as 1000-5000000456.