Skip to Content
author's profile photo Former Member
Former Member

USER EXIT RV60AFZC

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Jul 22, 2014 at 07:20 AM
    • 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2014 at 04:12 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 22, 2014 at 04:21 AM


    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2014 at 06:27 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.