2008 Feb 20 9:22 PM
Hello,
I am currently writing a program to mass update status on orders and on the selection screen the user is given an order select-option. My problem is that if given a range (i.e. OR00009000000 to OR00009000100) I need to step through and make a change to each order in the range.
I have thought of doing a loop increasing the order number by one until it reaches the high. Is there a better more efficient way?
Thanks!
Hello,
I am currently writing a program to mass update status on orders and on the selection screen the user is given an order select-option. My problem is that if given a range (i.e. OR00009000000 to OR00009000100) I need to step through and make a change to each order in the range.
I have thought of doing a loop increasing the order number by one until it reaches the high. Is there a better more efficient way?
Thanks!
2008 Feb 20 9:27 PM
2008 Feb 20 9:30 PM
Yes, however there are rules in place that if one order has the wrong status going into the bapi nothing will be updated so I mitigated this by checking each orders status using 'BAPI_ALM_ORDER_GET_DETAIL' for each order. So the expansion of the range would be required before or during this check.