cancel
Showing results for 
Search instead for 
Did you mean: 

VF02 user exit just after saving

Former Member
0 Kudos

Hi,

Please tell the user exit or BADI which will work in VF02 alone. Requirement is, whatever changes have been made for quantity in the document, has to be reflected in the Z table in the background.

Please clarify.

Regards,

Tom Jerry.

Accepted Solutions (0)

Answers (3)

Answers (3)

claudia_neudeck
Active Contributor
0 Kudos

Dear Customer,

you can find the userexits which are available for billing in customizing under the following menue path:

SPRO

> Sales and Distribution

> System Modifications

> User Exits

> User Exits For Billing

If you only want to save some data if you change the document the you ca create a requirement in the userexit for the

transaction code.

I hope that the information are helpful.

regards

Claudia

Lakshmipathi
Active Contributor
0 Kudos
whatever changes have been made for quantity in the "document, "
     has to be reflected in the Z table in the background.

which document ?? Is it sale order ?? Your explanation is not clear. Meanwhile, as you would be aware, either in VF01 or VF02, we cannot change few data and that includes quantity also. Of course, you can generate billing for partially PGId delivery

thanks

G. Lakshmipathi

Former Member
0 Kudos

Hi Lakshmipathi,

Thanks for your reply and I am sorry on the error. I mean the pricing data and not quantity. If u see the item details in VF03, the price per unit of material is displayed according to the condition type. And if there are changes made to the condition type (VK12) in price and currency, does it get automatically reflected in the billing document ? I am saving the billing value in some Z table. And everytime the price gets changed, the Z table should get updated automatically. This is my requirement, which is why I asked if there is any user exit or Badi to work with. Please help on this.

Regards,

Tom Jerry.

Former Member
0 Kudos

Hi,

Below are the list of user exit available for billing:-

USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ)

The internal number range used in the standard system is specified in the billing type table and can be changed in this user exit. This user exit is only called when the billing documents is created.

USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)

In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMKCV (header fields).

USEREXIT_ACCOUNT_PREP_KOMPCV (Module pool SAPLV60A)

In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMPCV (item fields).

USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)

Depending on the number range, table TVFKD is used to set the billing date (country-specific requirments in Italy). USEREXIT_NUMBER_RANGE is automatically deactivated when this user exit is being applied.

USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC)

This user exit is only called when the billing document is created. It is used to provide the header and the item of the new billing document with deviating or additional data.

USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB)

Printing the item line of a billing document can be supplemented or changed.

USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)

Printing the header line of a billing document can be supplemented or changed.

User exits in program RV60AFZD

Short descriptions of the user exits are contained in the program:

USEREXIT_RELI_XVBPAK_AVBPAK

USEREXIT_NEWROLE_XVBPAK_AVBPAK

USEREXIT_NEWROLE_XVBPAP_AVBPAK

The following user exits are available in report SAPLV60B for transfer to accounting (function group V60B):

EXIT_SAPLV60B_001: Change the header data in the structure acchd

You can use this exit to influence the header information of the accounting document. For example, you can change the business transaction, "created on" date and time, the name of the person who created it or the transaction with which the document was created.

EXIT_SAPLV60B_002: Change the customer line ACCIT

You can use this exit to change the customer line in the accounting document. This exit is processed once the ACCIT structure is filled in with data from document header VBRK.

EXIT_SAPLV60B_003: Change the customer line in costing

The customer line is filled in differently for costing. You can use exit 003 to influence the ACCIT structure.

EXIT_SAPLV60B_004: Change a GL account item ACCIT You can add information to a GL account item (such as quantity specifications) with this exit.

EXIT_SAPLV60B_005: User exit for accruals

Once all relevant data for accruals was entered in the GL account item, you can add to this data with this exit.

EXIT_SAPLV60B_006: Change the control line ACCIT

You can use exit 006 to add information to the control line.

EXIT_SAPLV60B_007: Change the installment plan

You can use exit 007 to add information to the installment plan

parameters in the GL account item.

EXIT_SAPLV60B_008: Change the transfer structure ACCCR, ACCIT and ACCHD

After the accounting document is filled in with data, you can use exit 008 to change the document once again.

EXIT_SAPLV60B_010: Item table for customer lines

You can use exit 10 to influence the contents of customer lines before they are created.

EXIT_SAPLV60B_0011: Change the parameter for cash account determination or reconciliation account determination

You can use this exit to change inbound parameters in order to influence account determination.

with regards

Vivek.

Lakshmipathi
Active Contributor
0 Kudos
does it get automatically reflected in the billing document ?

It depends on your copy control. In VTFL, for your item category with the combination of your delivery type and billing type, against the field "Pricing type", if you maintain B as and when billing document gets generated, automatically, system will consider only VK11 pricing. It will not consider sale order pricing.

On the other hand, if you have maintained G, then you need to go to condition tab in billing document and click on "Update" button at the bottom screen. A small box will appear where you double click on B so that the revised price will be fetched into your billing.

Again this is possible only if you have "Posting Block" in VOFA as other Accounting Document will immediately be generated once you save the billing document and after that, the options whatever I suggested here is not possible.

thanks

G. Lakshmipathi

Former Member
0 Kudos

thanks Lakshmipathi for your functional guidance. I was able to follow-up and the update button worked nicely in updating the pricing values according to the condition. You have been rewarded. But i need the final solution.

Please tell the user exit available for VF02, that will execute just after changes made in the billing document gets saved. With this user exit, I can update the pricing values in Z table as per the requirement.

Lakshmipathi
Active Contributor
0 Kudos

There are couple of Function Modules related to Pricing. They are

a) RV_PRICE_PRINT_GET_BUFFER

b) RV_PRICE_PRINT_GET_MODE

c) RV_PRICE_PRINT_HEAD (Header)

d) RV_PRICE_PRINT_HEAD_BUFFER

e) RV_PRICE_PRINT_ITEM (Item)

f) RV_PRICE_PRINT_ITEM_BUFFER

g) RV_PRICE_PRINT_REFRESH

Alternatively, You can also try with any of the following:-

a) Function module RV_INVOICE_CREATE

b) SDVFX001 EXIT_SAPLV60B_001 include ZXVVFU01

c) V60A0001-EXIT_SAPLV60A_002

d) Function Module BAPI_ACC_BILLING_CHECK

thanks

G. Lakshmipathi

Former Member
0 Kudos

Hi Tom ,

Following are the use exits that can be used for your senario :

V60A0001

V60P0001

V61A0001

SDVFX007

SDVFX008

SDVFX009

SDVFX010

SDVFX011

V05I0001

V05N0001

Following are the Badi's that are triggered after VF02 is saved :

SD_CIN_LV60AU02

VOR_WA_FAKTURA

Hope this will help to you.

Regards,

Nikhil