Reset CAE Status for Argentina Invoices (AFIP)

Reset CAE Status for Argentina Invoices (AFIP)

Scenario

During the integration of the synchronous AFIP webservice for Argentina invoices via  SAP PI / PO, I did some End-to-End tests and struggled with multiple errors on PI side. Unfortunately, sometimes it was impossible to do a new test because one invoice was no longer in a send able state.

These are the possible states:

CAE Status Description
I Sent to AFIP
A Approved
P Approved with Reservations
R Rejected
N New Document
C Contingency
E Validation Error
O Observations

Error

The following error message is shown when clicking on “Send to AFIP” button in SAP ERP transaction “J1AEXPMONITOR”:

Another document is already in process

Solution

  1. Goto transaction SE16
  2. Insert table name “J_1ACAE” and click on the “Table contents” button
  3. Insert some filters into the mask (optional) and click on the “Execute” button

    Data Browser: J_1ACAE Selection Screen
    Enter filter values and execute
  4. Select line where you would like to change the CAE status and click on the “Change” button

    Data Browser: Table J_1ACAE
    Select one table entry of table “J_1ACAE” to edit
  5. Remove the “X” in field “RFC SENT LOCK” and click on “Save” button

    Change CAE STATUS for table entry
    Change CAE STATUS for table entry
  6. Leave the data browser to unlock the table
  7. Try to resend the message in transaction “J1AEXPMONITOR”

Leave a Reply

Your email address will not be published. Required fields are marked *