06-09-2008 5:14 AM
hi all,
I have one requirement , i.e Our Client has one wish that for every customer he is fixing some line items means 5 or 6 line items. IF it is less than that sales order will not create for that particular customer and it needs to show warning message .
How can i achieve this .
Plz send some suggetions to solve this problem.
Regards
Rami Reddy
06-09-2008 5:33 AM
Hi,
Use FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
of MV45AFZZ. In thie routine use:
Data w_no_of_lines type I.
DESCRIBE table XVBAP lines w_no_of_lines.
If w_no_of_lines < 6 or 7 depending on your requirement gibe the the warning message.
I hope this helps,
Regards
Raju Chitale
06-09-2008 5:33 AM
Hi,
Use FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
of MV45AFZZ. In thie routine use:
Data w_no_of_lines type I.
DESCRIBE table XVBAP lines w_no_of_lines.
If w_no_of_lines < 6 or 7 depending on your requirement gibe the the warning message.
I hope this helps,
Regards
Raju Chitale
06-09-2008 7:43 AM