12-22-2014 3:06 PM
Hi Experts,
I want to add authority according Plant at SD billing process. (VF01-VF02-VF03-VFX3)
I found and add for VF01. (USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC)
But I didnt found for VF02-03.
I want to add authority object at filling/Show time.
Do you know any userexit, badi etc. for VF02-03 transaction.
Best regards.
12-23-2014 11:02 AM
Melih,
USEREXIT_FILL_VBRK_VBRP is same for VF01/02/03.You can put a break point and check it using VF02 and VF03.It will get triggerred for all the 3 transactions.Any validations based on T Code you use the the table T180 ( T180-TRTYP ).
K.Kiran.
12-22-2014 5:33 PM
Billing is driven by the Sales Area (Sales Org / Distr Ch / Division), not by Plant. Even in the scenarios when delivery happens from different plants I haven't heard of a need to separate the billing authorizations by plant. It seems to me that in such case Plant really should be assigned to its own Sales Area. Or perhaps the authorization restriction is simply excessive. I'd really suggest to reconsider this design.
Otherwise if you google 'billing authorization plant site:sap.com' you'll see that this question has been asked on SCN before and there is no different option available.
12-23-2014 11:02 AM
Melih,
USEREXIT_FILL_VBRK_VBRP is same for VF01/02/03.You can put a break point and check it using VF02 and VF03.It will get triggerred for all the 3 transactions.Any validations based on T Code you use the the table T180 ( T180-TRTYP ).
K.Kiran.
12-23-2014 12:21 PM
Hi Kiran,
Thanks for answer.
But USEREXIT_FILL_VBRK_VBRP work only VA01 at our system.
I dont try your other advice. Because Its customizing table. I dont sure be any problem after any change.
We have 8 plant and different area. Also We want to do SD billing process according plant.
If a person employe of plant1. He dont create,view,change,reverse etc. other plants.
I think there is any solutions of SAP for this issue.
12-23-2014 2:02 PM
Hi Melih,
Try form FORM USEREXIT_PRICING_PREPARE_TKOMP in include RV60AFZZ. Check your z-object there and if the authorization check fails, you can raise error message.
12-23-2014 4:06 PM
Hi Kivanc.
I'm using these user exists.
But these userexit only save process.
I need check during entry/before open at VA02-03.
12-24-2014 1:17 PM
Hey Melih,
At the very end of include MV60AF0B_BELEG_LESEN, FORM BELEG_LESEN, there is an enhancement point. You can create an enhancement there. For VF02/VF03, you have billing document number (vbrk-vbeln) there, so you can directly read plant information (vbrp-werks) from database and make the system respond to it accordingly.
12-25-2014 4:37 PM