Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Enhancement Doubt

former_member207873
Participant
0 Likes
1,798

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,741

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

9 REPLIES 9
Read only

former_member207873
Participant
0 Likes
1,741

Any help ?

Read only

0 Likes
1,741

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.

Read only

0 Likes
1,741

hi,

you mean default profit center?

Read only

0 Likes
1,741

Hi

I need the same profit center as that of the sales order.

B.R.

Read only

0 Likes
1,741

hi,

Tcode 3KEH can be used to define default Profit Center based on G/L account.

Read only

0 Likes
1,741

Can you give some idea on how to programmatically achieve this ?

Read only

Former Member
0 Likes
1,742

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

Read only

0 Likes
1,741

Hi

Read only

0 Likes
1,741

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