2015 Mar 13 4:32 PM
Hi Experts,
The issue which we are facing is that profit center is getting populated in sales order but not in billing (VF03). So I need to get the right user exit to populate the profit center. I am trying with USEREXIT_MOVE_FIELD_TO_COBL in MV45AFZB. But while processing VF03 this user exit is not getting triggered. So what will be the right user exit to use ?
B.R.
2015 Mar 13 7:57 PM
Hi P.D.
You can use the USEREXIT_FILL_VBRK_VBRP in RV60AFZC to populate the profit center field for the invoice item.
Just retrieve the sales order profit center and pass it to the VBRP structure.
Hope this will fix issue for you.
Regards,
Abhi
2015 Mar 13 5:41 PM
2015 Mar 13 6:04 PM
I think i haven't made myself clear.
We are getting profit center in VA03 tcode for a sales order.
But for the same, billing document we are not getting the profit center.
which user exit can be used to populate the profit center by copying the profit center from the sales order.
B.R.
2015 Mar 13 6:39 PM
2015 Mar 13 6:51 PM
2015 Mar 13 7:01 PM
hi,
Tcode 3KEH can be used to define default Profit Center based on G/L account.
2015 Mar 13 7:04 PM
Can you give some idea on how to programmatically achieve this ?
2015 Mar 13 7:57 PM
Hi P.D.
You can use the USEREXIT_FILL_VBRK_VBRP in RV60AFZC to populate the profit center field for the invoice item.
Just retrieve the sales order profit center and pass it to the VBRP structure.
Hope this will fix issue for you.
Regards,
Abhi
2015 Mar 13 8:16 PM
I looked into this user exit. But it is not getting triggered when using VF03.
B.R.
2015 Mar 13 8:24 PM
Hi P.D.
I am not sure why you are specifically looking for VF03. VF03 is just a display transaction and will display the invoice with whatever the value stored in the database. If profit center doesn't exist in your invoice table, then you can't see in VF03.
Kindly try for VF02/VF01 to create / change invoice and the user exit will trigger.
If you want to see the Profit center then it needs to be populated programatically and stored in VBRP table. Or else your functional team needs to do some config settings to pass the sales details to your invoice.
Thanks,
Abhi