on 03-21-2016 2:29 PM
Hi all,
I would like to ask you for help in this area.
In pricing procedure for sales order I have two price conditions in following access sequence:
ZPRB (price bruto) - this one is always found
ZPRN (price netto) - here are used scales, and netto price is used - discounts are supressed
Example:
ZPRB - 100 EUR/1 M2
ZPRN - scale: 0 - 1 PAL no price
from 1 PAL is price 80 EUR/1 M2
1 PAL = 100 M2
In sales order:
if I put 2 PAL, netto price is found correctly, price condition ZPRB is supressed == correct behaviour
if I put 15 M2, ZPRB is used, in ZPRN is price 0 (no scales found), exclusion (KINAK) = 'X', but light in ZPRN is red and here comes the problem.
In this case I would like to have ZPRN inactive (because no scales are found) and I would like to use discounts - they are suppressed by ZPRN - it has red light.
Is there any way how to deactivate ZPRN if the quantity is below scales? I tried formulas in pricing procedure and no success. And from some reason I do not have to use scales 0 - 1 PAL with price.
Thank you.
David
Hi,
I finally found working solution. Note 836243 gave me a hint.
Solution:
user-exit RV61AFZB
FORM USEREXIT_XKOMV_FUELLEN USING RETURNCODE.
code:
DATA: ls_tkomv LIKE tkomv.
IF konp-kschl = 'ZCNA' AND komp-mgame > 0.
READ TABLE tkomv INTO ls_tkomv WITH KEY kschl = 'ZCNA' kposn = komp-kposn.
IF ls_tkomv-kbetr = 0.
CLEAR: komp-kznep, konp-kznep.
ENDIF.
ENDIF.
What happens:
1) if quantity will be less then trigger quantity in scales of ZCNA, condition value will be zero => ls_tkomv-kbetr = 0
- in condition ZCNA will be by system set up KINAK = 'X', previous condition ZCBA become active again
- in this case is cleared KZNEP => subsequent discounts will be active again
2) if quantity will be found within the range of scales of ZCNA => standard behaviour happens, condition exlude all the discounts, previous condition become deactivated - KINAK = 'Y'.
BR,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try in VOFM -> Formulas -> Condition value. Here you can set xkwert and xkomv-kinak according to your requirements.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I tried this. The I was able to use KINAK = 'A'. Only in this case is previsous condition active and correct price is found. But there is a consequence I am not able to handle with. Second condition is set as "net" - it exclude all discounts. And when I use KINAK on it, it is inactive as requested, but KOMP-KZNEP is still "X" and no discounts related to the first price conditions are active.
Scenarios:
1) when material input in sales order, quantity 10 M2 is used
- ZCBA is found and used - correct
- ZCNA - here is used KINAK = 'A' and working, but KOMP-KZNEP = 'X', no discounts allowed (I need them)
2) when material input in sales order, quantity 150 M2 is used
- ZCBA is not used because of ZCNA - correct
- ZCNA is active and no discouts appears - correct
3) when I change quantity from 150 > 10 M2
- ZCBA is active - correct
- ZCNA - KINAK = 'X', condition is "RED" - incorrect
- here I wasn't able to set KINAK = 'A'
- KOMP-KZNEP = 'X' - no discounts are allowed - incorrect
BR,
David
David can you please confirm as if there's any exclusion has been set for your pricing schema in IMG? I'm afraid that some exclusion group has been assigned for your condition type and that's why system is deactivating all discounts. One more thing, you're using exclusion at which end i mean while maintaining condition record in VK11, in V/06, at exclusion group level or via some routine? Looking forward to your reply. Thanks.
Hi,
I can confirm that there are no exclusions. This behaviour is standard and I would like to modify it.
Both conditions are price conditions:
For ZCNA I have condition record:
I need this behavour. If in sales order is quantity less 1 PAL, use condition ZCBA instead of ZCNA. Also all discounts has to be active.
If I have more then 1 PAL, ZCNA is active and all discounts are suppressed - right behavour and it is correct.
BR,
David
You can take the inputs from OSS note 105621
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.