Application Development and Automation 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: 
Read only

Expand range to update orders

Former Member
0 Likes
401

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!

2 REPLIES 2
Read only

Former Member
0 Likes
370

Are you using a bapi to update the status?

Read only

0 Likes
370

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.