Hi MNH,
I am guessing that you will find that the batch.rlsed = 1 (true) but the status is S meaning that the data is inconsistent. Normally an S status batch has rlsed = 0.
See if there are any GLtrans for this batch. You will have to do a query to find this because an unreleased batch won't show up in GL>Journal transactions.
Select status, rlsed,* from batch where batnr = '027028' and module = 'ap'
Select rlsed, posted,* from gltran where batnr = '027028' and module = 'ap'
If the gltrans exist and are released, then update the batch.rlsed to 1 (true) and status to U.
If the gltrans.rlsed = 0, then update batch.rlsed to 0