Close Multiple Sales Orders

SOLVED

Hello, does anyone know of a way to automate closing multiple sales orders?

I was trying to look at API or Import options but seems that closing a sales order requires execution of an action (TRTCLESOH) and I'm not finding the easiest way to access the action. Any help would be appreciated!

Parents
  • +1
    verified answer

    You can use DIVSOHCLE to close multiple orders for whatever your parameter is, such as a range of order numbers, a certain customer, orders witch a specific backordered item, etc.

    The simple call is 

    Call DIVSOHCLE('order number here',1) From TRTVENCDE.

    You can stick this in a for loop or even use a pattern match inside the part where the order number goes, although I've never tried that. Of you can provide some more context about how the orders are linked I can write some script here for you that might do the trick.

Reply
  • +1
    verified answer

    You can use DIVSOHCLE to close multiple orders for whatever your parameter is, such as a range of order numbers, a certain customer, orders witch a specific backordered item, etc.

    The simple call is 

    Call DIVSOHCLE('order number here',1) From TRTVENCDE.

    You can stick this in a for loop or even use a pattern match inside the part where the order number goes, although I've never tried that. Of you can provide some more context about how the orders are linked I can write some script here for you that might do the trick.

Children