drop IDOC if a field is empty
I am sending a IDOC to PI.
Now I want to stop IDOC being generated if one of the fields of the IDOC is empty.
I know its a 1 min job in PI to stop based on a field. But I want to stop it at ERP.
can this be done on ABAP side?
thanks in advance,