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

Dequeue a Locked Idoc

Former Member
0 Likes
1,502

Hi Experts,

Actually In my report program I am generating an Idoc (inbound , status - 51) and I have displayed the list of Idoc's in the report output. But while reprocessing those Idoc's using 'RBDMANI2' program .Its raising the foreign lock exception as 'Idoc has been Locked'.Hence I came out of the report output and then the 'RBDMANI2' program picks up the idoc's correctly.

Is there any functional module available to Dequeue the Locked Idoc.

4 REPLIES 4
Read only

alex_m
Active Contributor
0 Likes
870

Use this FM: DEQUEUE_ES_EDIDOCS

Read only

Former Member
0 Likes
870

Use FM EDI_DOCUMENT_DEQUEUE_LATER

Read only

Former Member
0 Likes
870

Hi,

My problem is resolved.I have passed the value as space to no_dequeue flag in the F.mod mentioned below

call function 'IDOC_STATUS_WRITE_TO_DATABASE'

exporting

idoc_number = v_idoc_number

no_dequeue_flag = ' '

importing

idoc_control = wa_control_record

tables

idoc_status = it_status_record

exceptions

idoc_foreign_lock = 1

idoc_not_found = 2

idoc_status_records_empty = 3

idoc_status_invalid = 4

db_error = 5

others = 6.

if sy-subrc = 0.

commit work and wait.

endif.

Edited by: Srinivas on Feb 2, 2010 2:04 PM

Read only

Former Member
0 Likes
870

Its resolved