cancel
Showing results for 
Search instead for 
Did you mean: 

To make to consider condition value only once

Former Member
0 Kudos

Dear Experts,

could you please tell me how i can make the condtion entry in SO level only once.

Waht config is required at V/06 in spro.

Quick response would be of great help

Regards,

Siva

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

done

Former Member
0 Kudos

Hi

Do you mean, while creating a sale order, you want to enter condition type manually (manual price condition type) in pricing?

In V/06 - in changes which can be made - maintain manual entries -C (Manual entry has priority).

In pricing procedur VOK0 - against condition type -tick as manual.

thanks

Former Member
0 Kudos

Hi,

Thank you for quick response. i have done that. my concern is it allows me o enter multSOiple times while creating SO, How to restrict to only once entry or to consider only latest manual entry.

Regards,

Siva

Former Member
0 Kudos

Hi Siva

In this case you can use user exit USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ.

After manual entry maintainance, whenever user goes to VA02 & try maintain same condition type value manually once again, just before saving above userexit will check if the manual condition price for the corresponding condition type is already maintained before. If yes, it should not allow to over write the price once again. This way you can restrict manual entry second time.

thanks

Anirudh

Former Member
0 Kudos

The MV45AFZZ is the correct user exit. We have similar in place and have coded in FORM USEREXIT_PRICING_PREPARE_TKOMK.

Strategy is to loop through xkomv and store the sy-tabix

now read xvbap with key posnr

Code so that the first one is not deleted

if you find the same condition more than once, delete the xkomv using sy-tabix