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

Dump RPERF_ILLEGAL_STATEMENT

Former Member
0 Likes
1,378

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,

4 REPLIES 4
Read only

Former Member
0 Likes
888

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

Read only

0 Likes
888

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

Read only

Former Member
0 Likes
888

solved myself.

Read only

0 Likes
888

Hi there,

Do you remember HOW you solved it?

Cheers,

Andres.