I've activated the enhancement SIDOC001, component EXIT_SAPLEDI1_001 because I need to check a field in the control segment (EDIDC table) and change the status of the idoc.
Actually, to make a test, I've implemented this simple code:
SELECT SINGLE * FROM edidc
WHERE arckey = control_in-arckey.
IF sy-subrc = 0.
control_out-arckey = '12345'.
Once I've activated it, no idocs are entering in my SAP system even if everything seems correct, no exception has raised or log is present in the elaboration.
What could it be?
Thanks in advance!