Application Development 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: 

USER EXIT RV60AFZC

Former Member
0 Kudos

Hello Expert,

I have a requirement to update missing profit center in VBRP table. I have invoice no, item no, material no and profit center in  input file  and i have tried lots of bapi but not updating profit center.

I have found user exit  RV60AFZC to update in VBRP table.

 

Can anybody suggest me how to use this user exit, i am new to user exit.

4 REPLIES 4

Former Member
0 Kudos

Hi Anju,

go to user exit RV60AFZC, ther you will have routine:   userexit_fill_vbrk_vbrp.

normally you can do your coding directly inside this routine. but this is not best practice, because it will affect others coding also.

so, inside the above said routine, create an include and inside this include try to call your function module wherein you can do all your changes (like updation of VBRP table).

like below:

FORM userexit_fill_vbrk_vbrp.

  INCLUDE ztest_update_vbrp.

ENDFORM.                    "userexit_fill_vbrk_vbrp

create include and do as floows inside it:

  INCLUDE ztest_update_vbrp.

check some conditons, so that it will be applicable to your case only.

then vbrp-prctr = 'P00055'.

Regards,

Prasad

Former Member
0 Kudos


Hi Anju,

Updating the VBRP table doesn't satisfy the your requirement i.e. there are many other succeeding documents where the said field also gets updated.

If you really want to do this anyways, you can follow the solution said by another SCN fellow.

BR/Thanks

Pranav Agrawal

Former Member
0 Kudos

Guys,

My requirement is like this:

profit center is missing in contracts and they have billed it, so automatically profit center is missing in invoices. To update profit center in contracts i have used BAPI and it is working fine but for invoices i couldn't find any bapi, so i tried update statement to update VBRP table, it is updating profit center in VBRP table but while releasing invoice in VF02, getting error "Profit center 1000/660640 does not exist for 07/01/2014". Means it is getting update somewhere elese also.

so please suggest here.

raymond_giuseppi
Active Contributor
0 Kudos
  • Look in online help, you could fine some documentation on User Exits For Billing, alsor read text provided in includes.
  • If invoice are already in accountings, I don't think you are allowed to change their data...
  • Error "Profit center 1000/660640 does not exist for 07/01/2014" suggest either this is a wrong code (e.g. missing zeroes, ALPHA conversion required so 0000660640 ?) or wrong data, can you check with table CEPC for fields PRCTR, DATBI and KOKRS.

Regards,

Raymond