on 08-30-2011 7:12 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.