cancel
Showing results for 
Search instead for 
Did you mean: 

user exist for MV45AFZZ and RV60AFZZ

Former Member
0 Kudos

Hi,

I followed below link and successfully add sales document item category to " Allowed fields". then created a table and access sequece for my condition type But condtion type won't carry condition record under sales condtion. I think I didn't make my user exit codes right.

[http://www.sap-img.com/sap-sd/add-a-field-to-new-condition-table-in-pricing.htm]

FORM USEREXIT_PREPARE_TKOMP.
u2022	* TKOMP-zzfield = xxxx-zzfield2.
u2022	* { INSERT  DEVK902616
u2022	*MOVE xxxx-PSTYV TO TKOMP-ZZPSTYV.
u2022	*} INSERT
ENDFORM.
*eject

Your advice will be deeply appreciated.

thanks,

Linda

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Linda,

Could you pls paste the exact code you've written and also please go to pricing analysis and let us know what does system say about your cond type?

Regards,

Raghu.

Former Member
0 Kudos

Thanks Rags,

here is the code..and when I create SO, the system said no condition record.

*---------------------------------------------------------------------*
FORM USEREXIT_PRICING_PREPARE_TKOMP.

*  TKOMP-zzfield = xxxx-zzfield2.
*{   INSERT         DEVK902616                                        1
* MOVE ZZPSTYV TO TKOMP-ZZPSTYV.
*}   INSERT

ENDFORM.

Former Member
0 Kudos

Hi Linda,

1) The * mark at the begining of a statemnt indicates it is commented. Pls remove the * mark

and 2) It has to be VBAP-PSTYV TO TKOMP-ZZPSTYV.

pls do the changes as below and check:

FORM USEREXIT_PRICING_PREPARE_TKOMP.

  • TKOMP-zzfield = xxxx-zzfield2.

*{ INSERT DEVK902616 1

MOVE VBAP-PSTYV TO TKOMP-ZZPSTYV.

*} INSERT

ENDFORM.

Answers (0)