‎2008 Nov 13 1:06 PM
Hi,
I am getting the following dum, in my FM1 in this I,m calling one FM2 in Parallel process and finally for updating for every 5000 records of data in DB tab, I am calling another FM3.
In FM3 I am getting the following dump at COMMIT WORK(u can see below). If I commented this statement I am not getting erroe and data is updating into DB Tab sucessfully.
ABAP runtime errors RPERF_ILLEGAL_STATEMENT
Occurred on 13.11.2008 at 03:29:32
-
Statement "COMMIT WORK" is not allowed in this form.
-
What happened?
-
The current ABAP/4 program "/PSYNG/SAPLBC_USRHIS " had to be terminated because
one of the statements could not be executed.
This is probably due to an error in the ABAP/4 program.
-
What can you do?
-
Note the actions and input that caused the error.
Inform your SAP system administrator.
You can print out this message by choosing "Print". Transaction ST22
allows you to display and manage termination messages, including keeping
them beyond their normal deletion date.
-
Error analysis
-
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Function Module FM3
000180 Loop at it_statistics.
000190
000200 lv_endcount = lv_endcount + 1.
000210
000220 lv_loopcount = lv_loopcount + 1.
000230
000240 if lv_loopcount = lv_commitcount or lv_endcount = lv_records.
000250
000260 modify ITAB from table it_statistics.
-----> commit work.
000280
000290 clear lv_loopcount.
000300
000310 endif.
Regards,
‎2008 Nov 13 1:12 PM
Hello Prabhakar,
Is your ITAB a Internal Table or a Data Base Table ?
Because,Commit Work is not used for Internal tables ! I guess you know this !
Regards,
Deepu.k
‎2008 Nov 13 1:16 PM
Hi Deepu,
ITAB is a DB Table only. If u want coding part of my FM (means FM1) i will share for more clarification.
thnx for respond & suggest me
‎2009 Jan 08 11:01 AM
‎2012 Feb 14 3:16 AM