Change idoc status
We are using idoc FIDCC2 to transfer fi documents from one SAP system to another SAP system.
Also, we have exit EXIT_SAPLF050_005 to change a certain field depending of a value of another field in a Z table. If no data is found in this table, the idoc must be created but not be sent. Is it possible to do this changing the idoc status? If the answer is yes, how can I do this?
This exit has a field called NO_DISTRIBUTION, if this field is modified with an 'X', the idoc is not created.
The idoc is created by sap standard program, there is no z program.