cancel
Showing results for 
Search instead for 
Did you mean: 

repricing on the billing documents

Former Member
0 Kudos

Hello,

the need I have is to perform the repricing (repricing type KNPRS = 'C') when a billing document is posted.

I cannot use the standard customizing of the copying control since the document flow is unique with other organizations where the repricing type has to be equal to 'G'

I cannot use the standard customizing of the pricing conditions since they are shared in other pricing schema.

I know that on the sales document has been provided some user exit in order to do it (USEREXIT_NEW_PRICING_VBAP and USEREXIT_NEW_PRICING_VBKD) but they are not available for the billing.

Do you know how i can cover my requirement?

Thanks in advance,

Alessandro

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

try

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.

OR

USEREXIT_CHANGE_PRICING_RULE (Module pool SAPMV61A, Include MV61AFZA) You can use this user exit to change the pricing type that has been predefined in the copying control table in billing.

Edited by: Yadav on Nov 12, 2009 12:56 PM

Former Member
0 Kudos

Hi,

Thank you very much for your answer !!

Do you know which field/structure I have to update in the user exit you suggested?

Alessandro

Former Member
0 Kudos

Hi,

you can use the structure KOMK or XKOMV depends upon availability of knprs (Scale type) field.

regards

Vivek.

Former Member
0 Kudos

hi,

with regards to the topic above i have one addiitonal question.

how could i determine repricing (type G) at save of the billing document.

for enahnced rebate billing type i need to reprice each line as my manual tax condition is not determined at the time of billing creation (during rebate settlement). actually condition record seems to be found but condition is not set. how do i make this condition set in the billing document...please note that this is enhanced rebate billing doc.

would be grateful for any hint.

thanks

Wojtek

sarthak_mohantysd
Active Contributor
0 Kudos

Hello,

Please use the following userexit for your requirment and let us know the result of the exercise.

USEREXIT_CHANGE_PRICING_RULE : Kindly take the help of ABAPer to code accordingly so that when the Sales Organsiation for which you want to change is considered then the code will be triggered accordingly.

Regards,

Sarthak

Former Member
0 Kudos

Hi Sarthak,

I have an additional question. How is it possible to trigger the user exit you suggested?

The user exit doesn't run even if it is active.

Thanks in advance.

Alessandro

sarthak_mohantysd
Active Contributor
0 Kudos

Hello,

In order to resolve the issue regarding this userexit not getting triggered, please take the help of a ABAPer and ask to debug in order sort the issue.

Regards,

Sarthak

Answers (1)

Answers (1)

ajitsingh6
Active Contributor
0 Kudos

Hi,

GOTO COPY CONTROL AND AT ITEM LEVEL FOR ITEM CATEGORY CHANGE PRICE TYPE FROM G TO B/C.

Regards

AJIT K SINGH

HAPPY TO HELP U

Former Member
0 Kudos

I can not do it since these setting is valid for other organizations.

Thanks,

Alessandro