12-05-2005 3:50 PM
Hi! guys...
I've posted this a few times before. thanks for all the response.
Anyways here it is. again..
we created a new pricing field, namely, the dest.
city. of the SHIP TO PARTY.
everything is workin fine except for the problem that
in SORD. the city value gets defualted from SP master.
What is the code to fill in the
USEREXIT_PRICING_PREPARE_TKOMK...TO GET THE SH party city? (the field name is ORT01 and its from KNA1)
I am not an ABAPper. basically a functional guy.please help me out if you feel like you can.
thanks a lot.
-neez.
12-05-2005 4:27 PM
Hi,
Could you please tell me the transaction, and also the include where the user exit is.
Lokesh
12-05-2005 4:49 PM
Ship to party is maintained as a customer in the system. Just read table KNA1 against ship to party and get field ORT01 to get city.
12-05-2005 4:50 PM
12-05-2005 5:00 PM
Here is some sample code.
DATA: v_ort01 LIKE kna1-ort01.
CLEAR v_ort01.
SELECT SINGLE ort01 INTO v_ort01
FROM KNA1
WHERE kunnr = tkomk-kunwe.
IF sy-subrc = 0.
tkomk-zzort01 = v_ort01.
ENDIF.
TKOMK-ZZORT01 is the field that you added to your pricing structure. You can replace it with the correct name that you gave it.
Srinivas