Processing for Response Type retDEPC

When processing the response type retDEPC, the system analyzes the element dhRegDPEC. If it exists, the system:

  1. Obtains the values for the DPEC registration date, DPEC registration time, and response code from the transmission response XML file.

  2. Uses the value for the response code to get the NF-e status from the Special Handling Code field of UDC 76B/RS.

    Note: For the retDPEC response file, a value of 124 (approved) with a value of D in the Special Handling Code field must exist in UDC 76B/RS.
  3. Validates the next status value based on the document type and NF-e status.

  4. If no errors exist, updates these tables:

    • F76B12TE

    • F7611B

    • F4211

      If errors exist or validations fail, the system writes error messages to the Work Center.