RE: [sap-log-sd] How to specify new partner function while creating condition table for pricing

Posted by gcarbone (Senior SD Consultant)
on Aug 30 at 9:22 AM
Hi,

to add a new field in the pricing you have to do several steps.

You can search for SAP note (see 32878 for example).

Anyway the steps are the followings:

- define a custom field in KOMKAZ or KOMPAZ (header or position) beginning with ZZ,

let's say ZZAGENT.

You can use a field in KOMK or KOMP that you don't use such as TKOMK-VRTNR or TKOMK-TAXK9.

- Insert it in customizing as you were told in the other mail
SD > System Modifications > Create new fields > New fields for pricing

- Valorize the field in user exit MV45AFZZ in form:
USEREXIT_PRICING_PREPARE_TKOMK. (HEADER)
USEREXIT_PRICING_PREPARE_TKOMP. (POSITION)

Here an example from my system:

form USEREXIT_PRICING_PREPARE_TKOMK.

clear: TKOMK-ZZKVGR3, TKOMK-ZZKVGR4, TKOMK-TAXK9.

TKOMK-ZZKVGR3 = VBAK-KVGR3.
TKOMK-ZZKVGR4 = VBAK-KVGR4.

TKOMK-TAXK9 = KUWEV-TAXK1.


clear TKOMK-VRTNR.
perform XVBPA_LESEN(SAPFV45K) using 'ZA'
VBAP-POSNR
SY-TABIX.
if XVBPA-UPDKZ <> 'D'.
TKOMK-VRTNR = XVBPA-LIFNR.
endif.


endform. "USEREXIT_PRICING_PREPARE_TKOMK

---------------Original Message---------------
From: naughtybudgie
Sent: Tuesday, August 30, 2011 12:21 AM
Subject: How to specify new partner function while creating condition table for pricing

Hi Marlene,

I'm really intrigued to know the business requirement to do this as I can't help wondering if it could be achieved by using an existing field.

Regardless... to create new fields in the field catalog I suggest you read the quite good documentation SAP provides in the IMG attached to the following node:

SD > System Modifications > Create new fields > New fields for pricing

good luck!

__.____._
Copyright © 2011 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Mark as helpful
View this online
  
gcarbone
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
View the "Managing the Application Life Cycle" webinar and learn how organizations optimize their SAP applications.
_.____.__