Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Sales Order Creation

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

pls see the below threads.

thanks

karthik