‎2011 Aug 03 4:23 AM
Hi
I have a functionality to update certain details and I use the appropriate FM to update the same .
After this I use the statement
COMMIT WORK .
Now if in debugging if we execute step by step the values are updated perfectly but if i am running the application as
a whole the value which is supposed to be updated is not updated perfectly .
I have tried using WAIT UP TO n SECONDS also after this .
Initially i used COMMIT WORK AND WAIT also . But nothing seems to work .
Can anyone please suggest what is wrong .
Thanks in Advance
K.Nadesh Kumar
‎2011 Aug 03 5:40 AM
Hi Nadesh,
Try calling the Function Module in an Update Task. And then Call the COMMIT WORK AND WAIT statement.
CALL FUNCTION 'FM NAME' IN UPDATE TASK
IMPORTING
.....
EXPORTING
....
EXCEPTIONS
......
IF sy-subrc EQ 0.
COMMIT WORK AND WAIT.
ENDIF.
Hope this will help.
Thanks,
Samantak
‎2011 Aug 03 6:07 AM
Hi
I tried to call the FM in Update task also .
But it was also not successful .
Nadesh
‎2011 Aug 04 3:37 PM
Hi
Resolved
NadeshKumar.K
Moderator Message: Please close your threads with proper comments. This is helpful for future references.
Edited by: Suhas Saha on Aug 4, 2011 8:22 PM
‎2012 Mar 09 12:37 PM
Hi All
The Issue was resolved when i tried the following.
WAIT statement solved the issue
Nadesh
‎2011 Aug 03 5:42 AM
Nadesh,
Before use the COMMIT statement,use below code
CALL FUNCTION 'ENQUEUE_READ'
EXPORTING
gname = '' """"""""""" ESDOKOBJ ( eg : table name )
garg = '' """""""""""" document name ( eg : trdir )
GUNAME = ''
TABLES
enq = enq
EXCEPTIONS
OTHERS = 0.
DESCRIBE TABLE enq LINES sy-tfill.
CHECK sy-tfill > 0.
CALL FUNCTION 'ENQUE_DELETE'
EXPORTING
suppress_syslog_entry = 'X'
IMPORTING
subrc = rc
TABLES
enq = enq.
I faced similar problem earlier and resolved using this.
Hope this will solve ur issue.
Regards,
Sree