RE: [sap-log-sd] Use Custom Field from Different Partner Function in Pricing

Posted by CIpinza (SAP Senior Consultant)
on Nov 28 at 9:58 AM

You can do it using program MV45AFZZ to fill your new komp field. In the following example, I need to fill the pricing field Transportation Zone from partner function 'YR'.

Claudio Ipinza.




* This userexit can be used to move additional fields into the *

* communication table which is used for pricing: *

* *

* TKOMP for item fields *

* *

* This form is called from form PREISFINDUNG_VORBEREITEN. *

* *

FORM userexit_pricing_prepare_tkomp.
DATA: ls_kunnr LIKE kna1-kunnr.
DATA: ls_kna1 TYPE kna1.
* TKOMP-zzfield = xxxx-zzfield2.

CLEAR ls_kunnr.

READ TABLE xvbpa WITH KEY parvw = 'YR' posnr = '000000'.

ls_kunnr = xvbpa-kunnr.




pi_kunnr = ls_kunnr


pe_kna1 = ls_kna1


no_records_found = 1


IF sy-subrc EQ 0.

tkomp-zzztr = ls_kna1-lzone.


---------------Original Message---------------
From: sisonkemdala
Sent: Monday, November 28, 2011 9:46 AM
Subject: Use Custom Field from Different Partner Function in Pricing

I have a scenario where I need to use a custom field for pricing from a different partner function in pricing.

Basically I have a sales discount that is dependent on a custom field in a particular partner function (ZX) in the sales order. So the discount will only be granted if the custom field has a value of say 01 and that the partner function must be ZX.
If the conditions are met then the discount must be applied in the sales order.
My question is how or do I proceed? I have added the custom field to the field catalog and am now not sure at what point must I fetch the field from the ZX partner function.

Copyright © 2011 and message author. 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Mark as helpful
View this online
SAP Logistics Sales and Distribution Helper

Posted helpful replies on 5 threads in a group to earn a Bronze Achievement
Popular White Papers

In the Spotlight
Become a blogger at and share your expertise with the community. Start today.