You did not mention which module the problem occurred. You probably are looking at a "Post-in-progress" error. Depends on the module, you can find the batch's status field and change its value to 1, which means Open. Delete it, then re-enter and repost the batch.
Here are some of the tables and fields:
GL batch - GLBTCL.BATCHSTAT
AP Invoice - APIBC.BTCHSTTS
AR Invoice - ARIBC.BTCHSTTS