‎2013 Nov 15 8:54 AM
Hello all,
We are using Function module PRICING for generating pricing and the new value it returns is diffrent then when you simulate.
The net value that returns wrong is ep_netwr = fs_komp-kzwi1.
Code below:
*Pricing başlık bilgileri
PERFORM fill_pricing_header USING is_matpr.
*Pricing kalem bilgileri
PERFORM fill_pricing_item USING is_matpr.
REFRESH : ft_komv.
CALL FUNCTION 'PRICING'
EXPORTING
calculation_type = 'B' "Carry out new Pricing
comm_head_i = fs_komk
comm_item_i = fs_komp
IMPORTING
comm_head_e = fs_komk
comm_item_e = fs_komp
TABLES
tkomv = ft_komv
EXCEPTIONS
OTHERS = 0.
DELETE ft_komv
WHERE kinak NE space.
CLEAR:ep_netwr, ep_indtut.
ep_netwr = fs_komp-kzwi1.
‎2013 Nov 15 9:04 AM
Did you check in debugging for both the scenarios in parallel...?
‎2013 Nov 15 9:22 AM
Yes i debugged the code Nabheet
and what i found is SAp finds a discount code when users come via internet
and discounts that as well which leads to the wrong value
But when you create via R3 it doesnt apply that web discount.
So it works correct actually but how can we change this that it knows its not coming from web?
what do you suggest ?
‎2013 Nov 15 9:32 AM
Can you please point the code in PRICING.. We will have to check at what place it determines the same. Please provide that subroutine details
‎2013 Nov 15 11:12 AM
Nabheet hello
The code PRICING is called inside a Z function
And it returns the table
ft_komv inside this table we looked and saw the extra discount which doesnt exist
in normal transaction and that was for web discount
I havent debugged inside the Pricing Function module
I talked with customers and they say they will be using this via web so for now
it seems we are on hold.
CALL FUNCTION 'PRICING'
EXPORTING
calculation_type = 'B' "Carry out new Pricing
comm_head_i = fs_komk
comm_item_i = fs_komp
IMPORTING
comm_head_e = fs_komk
comm_item_e = fs_komp
TABLES
tkomv = ft_komv
EXCEPTIONS
OTHERS = 0.
‎2013 Nov 15 11:13 AM
‎2013 Nov 15 11:17 AM
Is your pricing is for Free goods,
Please give parameter as A then check once ..
‎2013 Nov 15 11:19 AM