Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

obviously unable to process

Former Member
0 Likes
572

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
557

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

3 REPLIES 3
Read only

Former Member
0 Likes
558

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.

Read only

Former Member
0 Likes
557

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

Read only

Former Member
0 Likes
557

Use transaction SM12 to check lock entries.

Rob