Hi
Before you call the Idoc Function Module which will create the Idoc
Check the conditions if success call the function module .
If fails don't call the Function Module .
So in this case Idoc will not be created .
My question is you want create the Idoc and then block Please explain me .Because in the above solution it will not create the idoc if conditions fails .
Please reward if useful.
Add a comment