Hi all,
I am using update statement 2 times for a single record in table and here I am using a single enqueue and dequeue statement for this purpose. I have 2 queries
1. Is it advisable to use a single enqueue dequeue statement while I am updating 2 times a single record of a table. Or each
update statement we have to use enqueue separately.
2. Can I use commit statement after the dequeue statment. or I have to use before the dequeue statement
enqueue ....
if ..
update table .....
if sy-subrc = 0.
flag = 'X'.
endif.
if...
update table.....
if sy-subrc = 0.
flag = 'X'.
endif.
endif.
dequeue ...
if flag = 'X'.
commit.
endif.
Regards
Mani