Application Development 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: 

set UPDATE TASK LOCAL takes long time for execution

former_member309899
Participant
0 Kudos

Hi all,

Am using set UPDATE TASK LOCAL in my report program. After using it my programs taking long time(15 mins) for execution.

Before using that code it wouldnt take that much time. Please advice me in this case.

Regards,

Nagarajan S.

4 REPLIES 4

matt
Active Contributor

Why are you using update task local?

former_member309899
Participant
0 Kudos

Hi,

I create a delivery through BAPI call. after this i used bapi_transaction_commit to commit my work. then i fetch the same delivery from LIPS table and do some process. After bapi call many times LIPS table does not have entry. so i used "SET UPDATE TASK LOCAL" to solve this issue.

But the problem is after add this code, execution time was increased to 15mins.before it was taken less than 1 min so i removed the code. Still its take 15mins. please help me in this case.

i have production issue because of this.

Domi
Contributor

Hi

SET UPDATE TASK LOCAL can only increase the runtime of your report if you call COMMIT WORK w/o AND WAIT or FM BAPI_TRANSACTION_COMMIT with WAIT = abap_false.

And you also mentioned that you removed the local task and have the same runtime => so your coding and/or the data has changed!

Please check the data, your coding and the coding in the UPDATE FMs!

SET UPDATE TASK LOCAL will increase the overall system performance of the process, but NOT necessarily the current report/transaction!

regards

Domi

chaouki_akir
Contributor
0 Kudos

I will try to identify why it is lasting so long:

- SM50: refresh regularly and see if a program name is appearing more

- trace / log transactions like STAD and SAT

- debug in update task (F7 to go to the next function module)