2009 Jun 22 8:34 AM
Hi Guru's,
I need help on sd pricing user exit..
when preceding order document do not have ZW15 condition type,if we try to create the return order using the preceding order , we will not have ZW15 condition type in the returns order. But if we try to enter ZW15 condition type manually in return order,system should throw a warning message that manual entry of ZW15 is not allowed.
i need write code for this concept..Please provide exact user exit for this concept.
Regards
P.Senthil Kumar
Hi Guru's,
I need help on sd pricing user exit..
when preceding order document do not have ZW15 condition type,if we try to create the return order using the preceding order , we will not have ZW15 condition type in the returns order. But if we try to enter ZW15 condition type manually in return order,system should throw a warning message that manual entry of ZW15 is not allowed.
i need write code for this concept..Please provide exact user exit for this concept.
Regards
P.Senthil Kumar
2009 Jun 22 9:56 AM
its a config issue , ask ur FC to fix it....
u need to check its pricing procedure in order to accept manual values.
regards
Prabhu
2009 Jun 22 10:27 AM
Hi Prabhu..
Our function consultant tried this scenrio but he unable to find the soution..so aked me to give the soution..
Please help me on this issue..
Regards
P.Senthil Kumar
2009 Jun 22 10:37 AM
in user exits u can manipulate with values not with the properties of the condition types....anyhow
check these settings.
spro--->SD--->basic function-->pricing--->condition types --->select ur ZW15-->check field values of
*Manual entries*
(b3rd block with heading Changes which can be made )...
regards
Prabhu
2009 Jun 22 10:52 AM
Hi Prabhu,
spro->SD->basic function>pricing->condition types ->select ur ZW15>check field values of
Manual entries
(b3rd block with heading Changes which can be made )...
In this settings, I need to check preceding order document whenther its having ZW15 condition type or not..If ZW15 conditon type not found in preceding order then if ur try to enter the ZW15 condtion type mannually then i want to show error msg..
Can u tell me how to do this in settings.???
Regards
P.Senthil Kumar
2009 Jun 22 11:07 AM
in that case go with RAJU's solution......in that user exit ( MV*FZZ ) , processing Order will copy all condition types from ref.order....so u can put a logic.
regards
Prabhu
2009 Jun 22 10:22 AM
Hi,
We are using FORM USEREXIT_MOVE_FIELD_TO_VBKD. of include MV45AFZZ for the same.
First part is straight forward viz. check if the original order has got the condition 'ZW15' if yes then no validation is required.
In case it is not present:
Ckear w_count.
loop at xkomv where ( kposn = xvbap-posnr )
And ( kschl = 'ZW15' ).
w_count = w_count + 1.
Endloop.
If w_count > 1.
Give Appropriate message.
Message e057(znov) with 'ZW15'.
Endif.
I hope this kelps,
Regards
Raju Chitale
2009 Jun 22 10:34 AM
Hi Raju Chitale,
Thaks for your response..
Thanks for your input..
Ckear w_count.
loop at xkomv where ( kposn = xvbap-posnr )
And ( kschl = 'ZW15' ).
w_count = w_count + 1.
Endloop.
If w_count > 1.
Give Appropriate message.
Message e057(znov) with 'ZW15'.
Endif.
In this case, I need to check preceding order document whenther its having ZW15 condition type or not..
If ZW15 conditon type not found in preceding order then ur try to enter the ZW15 condtion type mannually then i want to show error msg..in this code how to check the preceding order having condition type or not.???
Regards
P.Senthil Kumar
2009 Jun 22 11:25 AM
Hi Raju,
Please suggest me how to write code for getting preceding document no in this user exit
Regards
P.Senthil Kumar
2009 Jun 22 12:21 PM
Hi Raju,
Any inputs for Queries..your suggestions gave some usefull information..
Regards
P.Senthil Kumar
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |