cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with pricing in background job

Former Member
0 Kudos

Hi together,

I made a special pricing to give the customer a bonus. The difference to the "normal" bonus in SAP is, that I store and read the bonus points from a VIS-table. With some materials the customer can collect bonus-points and if he buy other materials he can got bonus - if the customer have a positive balance of points. This is the reason that I save the points in a VIS-table.

For this I use the formula and conditions as described in OSS-Note 88625 and 74794 (maximal condition base value in billing document).

If I make the invoice "normal" with VF01 everthing works fine - the system look in the tabe and if the customer have a positive balance he got the bonus to the maximum.

But if the invoice will be created automatically in the night via a job, the value of the bonus is allway 0,00. The transaction which will be called is VF04 (Maintain Billing Due List).

Have anybody an idea, why formulas and conditions in pricing with background jobs are not correct working?

Best regards Thomas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

From the information I could gather here,the changes work fine in VF01 but not in VF04.

The reason could be that the user exit changes are applicable only for VF01.

We might have to repeat the user exit changes in another user exit for VF04 to work.

This can be verified by a break point in user exit and executing both VF01 and VF04. If the break point is reached when in VF01 and the break point in not triggered in VF04 then it confirms that the changes have no impact in VF04 hence the reported behaviour.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

thank you, for your answer. But that isn't the reason. The only one thing what I do in the User-Exit, is to mark the condition as statistical (to reduce the bonus points). And this works also in VF04 - I tried it.

Best regards Thomas