2008 Jan 07 7:41 AM
Hi friends,
How can i add new fields to SD-Pricing fieldcatalog.
Regards,
Ashwin
2008 Jan 07 7:50 AM
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
2008 Jan 07 7:50 AM
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