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: 

UserExit in VF01 at time of save that will reflect in Profit Center

Former Member
0 Kudos

Hi Experts,

I want to know if there is any user exit that can used in changes of profit center while Invoice Creation or Cancellation.

Our requirement is to Divide the Profit center of Finished Goods into The Profit centers of Raw materials used to create the finished good.

If A,B,C are the Raw Materials to create D Finished Good.

A is having 001 Profit Center

B is having 002 Profit Center

C is having 003 Profit Center

D is having 004 Profit Center

Now currently the Invoices are made from delivery where in Finished Good was used and FG's Profit center is being displayed in Invoice.

Current requirement is to divide the profit center of FG 'D' into 3 Profit centers as 3 Raw materials were used for it and that should be reflected

in Accounting.

At the time of Save the profit centers of of raw materials should be reflected not the finished goods.

Is this possible via any user exit that is available at time of save.

Thanks,

Kunal Leo

6 REPLIES 6

atul_mohanty
Active Contributor
0 Kudos

Hi Kunal -

Please check the Substitution (GGB1) / BTE (FIBF) for this. Probably it may help you.

Regards,

Atul Mohanty

deependra_shekhawat3
Contributor
0 Kudos

Hi,

Please check EXIT_SAPLV60B_008 component of user exit  SDVFX008(User exit: Processing of transfer structures SD-FI).

Thanks

Deependra

former_member187748
Active Contributor
0 Kudos

Hi

these are the user exit for VF01, i will sujjest you to put break point in every user exit

and run VF01, and then it will prompt you to different user exit based on each screen of VF01,

choose the appropriate user exit and do the needful

SDVFX001  User exit header line in delivery to accounting

SDVFX002  User exit for A/R line in transfer to accounting

SDVFX003  User exit cash clearing in transfer to accounting

SDVFX004  User exit G/L line in transfer to accounting

SDVFX005  User exit reserves in transfer to accounting

SDVFX006  User exit tax line in transfer to accounting

SDVFX007  User exit: Billing plan during transfer to Accounting

SDVFX008  User exit: Processing of transfer structures SD-FI

SDVFX009  Billing doc. processing KIDONO (payment reference numbe

SDVFX010  User exit item table for the customer lines

SDVFX011  Userexit for the komkcv- and kompcv-structures

V05I0001  User exits for billing index

V05N0001  User Exits for Printing Billing Docs. using POR Procedu

V60A0001  Customer functions in the billing document

V60P0001  Data provision for additional fields for display in lis

V61A0001  Customer enhancement: Pricing

Former Member
0 Kudos

Hi,

check this user-exit and write the coding as below!

RV60AFZC

form userexit_fill_vbrk_vbrp.


Populate the profit center:

Decide the W_prctr is based on your raw materiel or finished goods
         vbrp-prctr = w_prctr.


endform.

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

See SAP Note 173798 - User exit for PCA substitution

Regards

Eduardo

Former Member
0 Kudos

Hi All,

I did not mention one thing after saving the Invoice the profit centers in accounting should be displayed.

for example

In the above Accounting Document only finished goods profit center and the amount and Invoice is displayed.

What my requirement is if in Invoice the Finished good is made from 3 raw materials(A,B,C) those

3 Raw materials Lines and Profit center and the Amount should be displayed on the said screen.

like

REF.DOC No ITM PERIOD Profit Center Partner PC Account ACC.Text  In pctr Local Curr Curr

90000757       11          10   Pr.Ctr for A                   400000     Sales              15592.5            USD

90000757       12          10   Pr.Ctr for B                   400000     Sales              15592.5            USD

90000757       13          10   Pr.Ctr for C                   400000     Sales              15592.5            USD

                                                                                                               *  46777.5            USD

this is what is to be done.So from which user exit it can be achieved.

Thanks a Lot,

Kunal