Understanding the RMA - Update Sales Order Status Program

You run the RMA - Update Sales Order Status program (R400502) for advanced exchanges. For example, you create a sales order to ship an item and a purchase order to receive a defective, yet similar item. If the defective item is not received by the promised delivery date, the program updates the status of the related sales order detail line to a user-defined status such as Print Sales Invoice and the customer is charged for the replacement item. If the defective item is received by the promised delivery date, the program updates the status of the related sales order detail line to a user-defined status such as Complete - Ready to Purge. Additionally, the program changes the price to zero for the replacement item and does not print a sales invoice.

The system bases the data selection on the F40051 table. The system calculates the promised delivery date from the Received Lead Time field in the Return Material Authorization Defaults program (P40052). If the date has passed and the item has been returned, the system updates the sales order status. If the item has been received, the system updates the purchase order to another status.