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

New fields in SD pricing

Former Member
0 Likes
568

Hi friends,

How can i add new fields to SD-Pricing fieldcatalog.

Regards,

Ashwin

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
496

Hi,

If u want to add new fields in SD-pricing first add those fields in KOMKAZ(header), KOMPAZ(Item) Structures.

Then if ur doing pricing at the time of ORDER write the code in exit MV45AFZZ for passing the data from tables to pricing communication structure.

For header fields:

FORM userexit_pricing_prepare_tkomk.

  • TKOMK-zzfield = xxxx-zzfield2.

READ TABLE xvbpa WITH KEY parvw = 'ZD'.

IF sy-subrc EQ 0.

MOVE xvbpa-kunnr TO tkomk-zzparnr.

ENDIF.

ENDFORM. "USEREXIT_PRICING_PREPARE_TKOMK

For item fields:

FORM userexit_pricing_prepare_tkomp.

  • TKOMP-zzfield = xxxx-zzfield2.

MOVE vbap-mvgr1 TO tkomp-zzmvgr1.

MOVE vbap-mvgr2 TO tkomp-zzmvgr2.

MOVE vbap-mvgr3 TO tkomp-zzmvgr3.

ENDFORM. "USEREXIT_PRICING_PREPARE_TKOMP

And if ur doing pricing at the time of billing add the same code in RV60AFZZ.

Rewards points if helpful.

Regards,

Srinivas Ch

Hi friends,

How can i add new fields to SD-Pricing fieldcatalog.

Regards,

Ashwin

1 REPLY 1
Read only

Former Member
0 Likes
497

Hi,

If u want to add new fields in SD-pricing first add those fields in KOMKAZ(header), KOMPAZ(Item) Structures.

Then if ur doing pricing at the time of ORDER write the code in exit MV45AFZZ for passing the data from tables to pricing communication structure.

For header fields:

FORM userexit_pricing_prepare_tkomk.

  • TKOMK-zzfield = xxxx-zzfield2.

READ TABLE xvbpa WITH KEY parvw = 'ZD'.

IF sy-subrc EQ 0.

MOVE xvbpa-kunnr TO tkomk-zzparnr.

ENDIF.

ENDFORM. "USEREXIT_PRICING_PREPARE_TKOMK

For item fields:

FORM userexit_pricing_prepare_tkomp.

  • TKOMP-zzfield = xxxx-zzfield2.

MOVE vbap-mvgr1 TO tkomp-zzmvgr1.

MOVE vbap-mvgr2 TO tkomp-zzmvgr2.

MOVE vbap-mvgr3 TO tkomp-zzmvgr3.

ENDFORM. "USEREXIT_PRICING_PREPARE_TKOMP

And if ur doing pricing at the time of billing add the same code in RV60AFZZ.

Rewards points if helpful.

Regards,

Srinivas Ch