‎2009 Jul 17 6:58 AM
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.
‎2009 Jul 17 7:09 AM
‎2009 Jul 17 7:10 AM
‎2010 Feb 02 1:04 PM
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
‎2010 Feb 02 1:06 PM