Warehouse Interface Claims

The Warehouse Interface Claims program reads Warehouse Interface Claims/Returns header & detail files(WICLA00P & WICLB00P) and validates customer, rep, warehouse, items, reason, type of sale, customer tax number, debtor allocation document type and number, original claim amount, invoice amount, delivery name & address and invoice number. Transaction header and Transaction Delivery Address files (DSTRA00P and DSTRI00P) will be updated if these fields are populated. If not valid then the status is changed to ‘E’ (for error) otherwise the status is changed to ‘R'(for ready).

Explanation

  • Claim reference numbers are generated for all valid records that are checked by this program.
  • The price and discount is updated from the Warehouse Interface Claim Detail (WICLB00P) file to Transaction detail file (DSTRB00P).
  • WICLI00P is used to override delivery as well as billing addresses.
  • The claim sub-status is selected via TMSWH/WI-CLDFT.
  • Defaults warehouse actions by reason code and warehouse combination (TMSDS/RCT-ACTN and TMSDS/SEQ-ACTN).
  • Item Extension fields are from TMSDS/RCT-ACTN.
  • New claims such as “on approvals” can be automatically created for all Returns.
  • TMSWH/WI-CLTYP switches control claim generation via warehouse or directly to distribution and can be selected by “type of sale”. Add code to write DSTRB directly if the control file flag set to ‘1’.
  • Excludes status ‘H'(held) records when reading Claims/return input header file (WICLA00P).
  • If logical warehouse is blank on Warehouse Interface Claims/Returns header (WICLA00P) then the system will default the warehouse from control file TMSWH/WI-CLWH. This is for EDI claims that do not have a specific warehouse nominated.
  • With EDI claims, control file TMSWH/WI-CLRSE setup would determine how to respond to data errors. If switched on, EDI messages can be sent immediately when a data error is encountered and the system will update Warehouse Interface Claims/Returns header (WICLA00P) with status “H” (not to process the same data again).
  • Control file TMSWH/WI-CLRSE can be set up to allow processing even if there is invalid allocation document number.
  • When no invoice is allocated to a claim the system can use either normal price or average sales price for credit amount as defined in control file TMSAR/CL-PRCR.
  • When incoming EDI data has errors, the mapping in control file TMSWH/WI-CLRER would determine the applicable EDI response to send.
  •  Allows consignment returns by customer/reference on the assumption that one customer will only have one consignment.
  • Allows returns stock to be updated in a non-location control warehouse. It will require the following setup.
    • transaction reason to be flagged as ‘update stock’ in TMSDS/TR-RSN.

    • TMSWH/WI-CLDFT to be set by the logical warehouse (non-loc ctl wh)

    • Claim reason in TMSWH/WI-CLDFT to be ‘non-physical returns’ (TMSAR/CL-REAS).