We have a 2 Bapi's.
Frist BAPI is used to delete the item level for the purchase requistion. the frist bapi is working fine.
2nd BAPI is used to release purchase requistion, the 2nd bapi is working fine.
We have putted the wait upto 1 second statement bewteen Frist BAPI and 2nd Bapi.
Now the problem is, some time the frist BAPI (BAPI_REQUISITION_DELETE) takes the more than one sec , that time i am getting error messages.
how can i get the output with giving the error message result without using wait up to 1 statement.
Please prefer the better statement to avoid the wait up to one second.