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: 

ABAP ALV Report Issue

former_member205363
Contributor
0 Kudos

Hi Friends,

I have a report with 2 big queries, reading all Open POs and PRs, then looping to calculate the PO count, PR Count and other values.

Problem is after running the report I am getting Log Off popup.

I used the progress indicator in side the loop to keep the program running, still issue is coming.

Thanks,

Prasad.

1 ACCEPTED SOLUTION

shadab_maldar
Active Participant
0 Kudos

Hi Lakshmi,

I think you are using the FM 'SAP_GUI_PROGRESS_INDICATOR' , as I remember this will also handles timeouts.

My suggestion is process the logic of progress BAR for selected line of records.

Example: executes process bar logic for every 20000 records once or even less in a loop(Do not execute for each record in a loop).

And also use commit work statement after the FM this will remove your timeout/logoff error.

Note: First try to optimize your code, if nested loop exists try to implement parallel cursor.

Regards,

Shadab.

9 REPLIES 9

Former Member
0 Kudos

you need to work step by step.

First remove progress indicator code then check..

if still issue coming then look for another.

also show your code. from where it occurs.

-Avirat

0 Kudos

hi,

why does this Log off pop up appears??

thanks!!

0 Kudos

Hi,

If I give the selection parameter to limit the number of records then its working fine, otherwise without any selection screen values, its loging off.

I dont know why loging off popup is coming, thats what the issue.

Thanks,

Prasad.

0 Kudos

Hi Lakshmi,

Is the system giving any dump??

I think this is because the report is taking too much time to execute, check once with the BASIS consultant.

Regards,

Shadab.

shadab_maldar
Active Participant
0 Kudos

Hi Lakshmi,

I think you are using the FM 'SAP_GUI_PROGRESS_INDICATOR' , as I remember this will also handles timeouts.

My suggestion is process the logic of progress BAR for selected line of records.

Example: executes process bar logic for every 20000 records once or even less in a loop(Do not execute for each record in a loop).

And also use commit work statement after the FM this will remove your timeout/logoff error.

Note: First try to optimize your code, if nested loop exists try to implement parallel cursor.

Regards,

Shadab.

danesh_ms
Discoverer
0 Kudos

hi prasad,

could u post your code here

so that your issue can be fixed

0 Kudos

Hi Lakshmi,

You may refer to below links for using Open, Fetch and Close CURSOR statements.

It may help.

http://scn.sap.com/thread/1760961

https://help.sap.com/saphelp_470/helpdata/en/fc/eb3b23358411d1829f0000e829fbfe/content.htm

Thanks and Regards,

Vikram

0 Kudos

Thanks to all for your inputs, I came to know the issue, its regarding continues usage of progress indicator status inside the loop.

roberto_forti
Contributor
0 Kudos

Hi Lakshmi,

Implement package size, ok?

Select ... appending table it_...[] package size 1000 where ..."


Regards