2008 Mar 10 2:14 PM
Hi!
How do you solve generally lock entry problems ?
When you have to findout an error e.g.
"selected are being processed"
I assume somebody is attemting to process some that are being processed by another user.
and system is obviously unable to process these .
Have you ever come into touch with such a situation ?
Regards
sas
2008 Mar 10 2:19 PM
Please loop the enque functuion module until the lock has been performed.
then after go with the database operation.
as below
Loop the lock mechansim and exit the loop whenver there is a lock happened.
do.
call function 'ENQUEUE_EZL00FI_EOD_STAT'
exporting
mode_zt00fi_eod_check = 'X'
mandt = sy-mandt
country = iv_countrycode
bu_posting_area = iv_bp_area
posting_date = iv_postingdate
exceptions
foreign_lock = 1
system_failure = 2
others = 3.
Exit the loop whenever enque happened
if sy-subrc = 0.
exit.
endif.
enddo.
*Select is there any other BPAs are there whos cashpool still pending.
*Fetch all those records, and
*
select *
from zt00fi_eod_check
into table lt_bpa_status
where country eq iv_countrycode and
bu_posting_area ne iv_bp_area and
posting_date eq iv_postingdate and
status ne '03' .
lv_sysubrc = sy-subrc.
Select the BPAs which are waiting for those cash pool run.
update zt00fi_eod_check
set status = '03'
where country = iv_countrycode and
bu_posting_area = iv_bp_area and
posting_date = iv_postingdate.
commit work.
Immediately release the lock
call function 'DEQUEUE_EZL00FI_EOD_STAT'
exporting
mode_zt00fi_eod_check = 'X'
mandt = sy-mandt
country = iv_countrycode
bu_posting_area = iv_bp_area
posting_date = iv_postingdate.
Hi!
How do you solve generally lock entry problems ?
When you have to findout an error e.g.
"selected are being processed"
I assume somebody is attemting to process some that are being processed by another user.
and system is obviously unable to process these .
Have you ever come into touch with such a situation ?
Regards
sas
2008 Mar 10 2:19 PM
Please loop the enque functuion module until the lock has been performed.
then after go with the database operation.
as below
Loop the lock mechansim and exit the loop whenver there is a lock happened.
do.
call function 'ENQUEUE_EZL00FI_EOD_STAT'
exporting
mode_zt00fi_eod_check = 'X'
mandt = sy-mandt
country = iv_countrycode
bu_posting_area = iv_bp_area
posting_date = iv_postingdate
exceptions
foreign_lock = 1
system_failure = 2
others = 3.
Exit the loop whenever enque happened
if sy-subrc = 0.
exit.
endif.
enddo.
*Select is there any other BPAs are there whos cashpool still pending.
*Fetch all those records, and
*
select *
from zt00fi_eod_check
into table lt_bpa_status
where country eq iv_countrycode and
bu_posting_area ne iv_bp_area and
posting_date eq iv_postingdate and
status ne '03' .
lv_sysubrc = sy-subrc.
Select the BPAs which are waiting for those cash pool run.
update zt00fi_eod_check
set status = '03'
where country = iv_countrycode and
bu_posting_area = iv_bp_area and
posting_date = iv_postingdate.
commit work.
Immediately release the lock
call function 'DEQUEUE_EZL00FI_EOD_STAT'
exporting
mode_zt00fi_eod_check = 'X'
mandt = sy-mandt
country = iv_countrycode
bu_posting_area = iv_bp_area
posting_date = iv_postingdate.
2008 Mar 10 2:34 PM
K@$TURI
thak you for replying. But to be honest I don't understand the relation to my
current problem.
Any object is being locked and almots it drives me mad I can't figure out.
I get always this error message "...selected are being processed"
Regards
sas
2008 Mar 10 3:07 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |