cancel
Showing results for 
Search instead for 
Did you mean: 

Pricing on Zfields

0 Kudos

Hi Experts,

I want to know what all the developments and customisation i want to do for pricing based on some z fields i want to add in sales documents,

what all tables i need to add this z field?

what all structures i need to add this z field?

how to use it in new condition table so that i can maintain price in condition records?

is this field also to be added in billing document tables for repricing?

Thanks and Regards,

Anil Agrawal

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Anil,

You can very easily use include MV45AFZZ.

In this you can use 2 user exits for your requirement:

1) USEREXIT_PRICING_PREPARE_TKOMK: if you want fields from header to be included in pricing.

like TKOMK-zzfield = xxxx-zzfield2

Eg: tkomk-augru = vbak-augru

2) USEREXIT_PRICING_PREPARE_TKOMP: if you want feilds from item to be included in pricing.

like TKOMP-zzfield = xxxx-zzfield2

Eg: tkomp-zzvstel = vbap-vstel

You ask your ABAPer to do this for you.

Hope this helps you.

Regards,

Dhananjay

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

Add the zfields like an append in tables/structures KOMP and KOMK.

Use the IMG tools to add this fields in pricing.

Notes 111887, 354807 and 400236 are useful.

I hope this helps you.

Regards,

Eduardo

0 Kudos

Hi,

ho i have to add these fields in VBAK/VBAP also VBRK/VBRP or not. i will also see notes which you added,

Please advice,

Anil Agrawal

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

I'm sorry. I forgot tell you how use the userexits for pricing in include MV45AFZZ (USEREXIT_PRICING_PREPARE_TKOMK and USEREXIT_PRICING_PREPARE_TKOMP). In this userexit in SO you can populate this zzfields of KOMP and KOMK from data of VBAP, VBAK and so on.

Regards,

Eduardo