on 08-11-2009 11:31 AM
Hi.
Where to Write Routine as
If X<Y then does not allow to save Sales Order.
where X & Y are Condition types.
Regards,
Amol
Amol,
If you will tell us what types of these condition type is there so we can assist you some other method also. Whether these can be configured by customer expected price condition types or not.
Anyways if you want to right the check then you can have that in SAVE_DOCUMENT_PREPARE in sales order user exit MV45AFZZ,
Thanks,
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Amol,
I understand from your questions that these are Pricing Condition types, but if you can elaborate your scenario, probably the best solution you can get from a Lot of experts, elaboration makes us understanding problem better.
Again, As Mr Yadav Suggested it will require Access key, and in the exit, you have to write a check, remember the values you have to Pick From the Structure KOMV. and compare the conditions.
Explain this to your Technical consultant he will surely help you out.
Thanks,
Raja
My Scenario is as follows
VPRS Internal price 560.000,00 INR 1 EA 560.000,00
ZR15 Dealer Price 540.000,00- INR 1 EA 540.000,00-
Markup 20.000,00 INR 1 EA 20.000,00
ZD03 % of Internal Price 30,000 % 168.000,00
SubTotal 540.000,00- INR 1 EA 540.000,00-
here
Markup = VPRS- ZR15
ZD03 = 30% of VPRS
so i want markup should not be lass than ZD03
Regards,
Amol
Amol,
Another option could be allow sales order entry but insert rejection reason for that line item based on values of specific pricing conditions. Then it would allow users to take corrective action subsequently. This could be done during order processing itself and you don't have to wait for user exit during order save.
Hi Amol
The best way to achieve as already suggested by Mr.Yadav and Mr.Raja as use the exit MV45AFZZ ,Form Save document Prepare As This comes at the end of All entries done by user just before saving dcument.
second way is to use a condition value routine for ZD03 as it is always 30 % of VPRS ,
Compare the value of VPRS with Other condition types u r using and write a custom error message through SE91.assign it to Routine. Message can contain "MArk up is not in the Expected range " please review".
and u can exit from program using abap code.
This will be useful in case u dont want any item to go above mark up value.
The other advantage of using routine is u get condtion values and condition related tables access while in pricing processing only ,while in first case it is to be fetched in user exit code.
the issue with routine is user can't save document and he has to data entry again from beginning of the sales document.
Routine to write in VOFM condition value routine.
SE91 custom message .
Regards
Mandar
Sales order save exit..........
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.