Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

pricing field user exit

Former Member
0 Kudos

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.



Former Member
0 Kudos


Could you please tell me the transaction, and also the include where the user exit is.


Former Member
0 Kudos

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.

Active Contributor
0 Kudos

what is the Trxn.


Former Member
0 Kudos

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.

TKOMK-ZZORT01 is the field that you added to your pricing structure. You can replace it with the correct name that you gave it.