‎2008 Mar 27 12:19 PM
Hi ,
Iam getting this dump in my system.
Exception condition
"DUMP_STATUS_INCONSYSTENCY_FRE" raised.
As per this dump one note is there saying you should not use commit work in user exit or customer exit .
But i need to update the table at that point so please tell me with out using commit work can i update the table at that point.
Please help me its imp.
Thank you .
‎2008 Mar 27 12:22 PM
Hi,
commit statement in userexit?
You should not do that.
After the user exits code is triggered, the transaction's own commits statements will commit the database anyway
Regards
Kiran Sure
‎2008 Mar 27 12:24 PM
I think you can not use commit work in the user exit or in the BADI because after this in the std program somewhere SAP will update all the records,so SAP will not allow more than one time of commit work for the same action..
Regards
Sugumar G
‎2008 Mar 27 12:24 PM
HI ,
you are not allowed to execute the statements SUBMIT, CALL DIALOG, CALL SCREEN, CALL TRANSACTION, COMMIT WORK, ROLLBACK WORK and all other statements that provoke a database commit.
regards,
venkat.
‎2008 Mar 27 12:26 PM
Hello,
Commit WORK statement should not used inside the User exits. This will obviosly give the dump.
The Transaction itself will have the commit work which will update ur Database.
Cheers,
Vasanth
‎2008 Mar 27 12:27 PM
Use the function Modules ENQUEUE_E_TABLEE and DEQUEUE_E_TABLEE.Update the table between these function modules.
Example :
CALL FUNCTION 'ENQUEUE_E_TABLEE'
EXPORTING
mode_rstable = c_e
tabname = c_sold_table
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*********End Lock********
IF i_del_sold[] IS NOT INITIAL.
DELETE ztsa_ft_soldtp FROM TABLE i_del_sold.
ENDIF.
IF i_del_ship[] IS NOT INITIAL.
DELETE ztsa_ft_shiptp FROM TABLE i_del_ship.
ENDIF.
IF i_db_ship[] IS NOT INITIAL.
MODIFY ztsa_ft_shiptp FROM TABLE i_db_ship.
ENDIF.
IF i_db_sold[] IS NOT INITIAL.
MODIFY ztsa_ft_soldtp FROM TABLE i_db_sold.
ENDIF.
*Sold to Party Table
CALL FUNCTION 'DEQUEUE_E_TABLEE'
EXPORTING
mode_rstable = c_e
tabname = c_sold_table.
‎2008 Mar 28 1:23 PM
Thank you for your reply .
I know i should not use commit work but req was like that .
finally i got one solution actually i was calling BDC and previously it was in Asychronise udate now i changed to Synchronise and it solved my problem .
But thanks all for your time and support.