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: 

Time out problem

Former Member
0 Kudos

Hi,

I have converted a report program to into /pbs/ program.

The converted /pbs/ program is getting timeout because of these below stmts

LOOP AT IT_BELNR_OTH . "PBS

CALL FUNCTION '/PBS/SELECT_INTO_TABLE' "PBS

EXPORTING "PBS

ARCHIV = 'CFI' "PBS

OPTION = '' "PBS

TABNAME = 'BSEG' "PBS

CLR_ITAB = '' "PBS

SCHL1_NAME = 'BUKRS' "PBS

SCHL1_VON = IT_BELNR_OTH-BUKRS "PBS

SCHL1_BIS = IT_BELNR_OTH-BUKRS "PBS

SCHL2_NAME = 'BELNR' "PBS

SCHL2_VON = ' ' "PBS

SCHL2_BIS = 'z' "PBS

SCHL3_NAME = 'GJAHR' "PBS

SCHL3_VON = IT_BELNR_OTH-GJAHR "PBS

SCHL3_BIS = IT_BELNR_OTH-GJAHR "PBS

TABLES "PBS

I_TABELLE = TAB885 "PBS

EXCEPTIONS EOF = 4 "PBS

OTHERS = 2. "PBS

ENDLOOP. "PBS

please provide solution for avoiding timeout problem.

Thanks & Regards,

Preethi.

1 ACCEPTED SOLUTION

former_member182190
Active Participant
0 Kudos

Hi Preethi,

As you are looping at a table with many records, you r facing this problem.

There are 2 ways to overcome this

1) Extend your Internal memory in RZ11 transaction.

2) Loop at the Internal table upto some records first and then loop from the remaining to the last. Break your loop into 2-3 loops.

Hope this is of some help.

Regards,

Ismail.

3 REPLIES 3

former_member186746
Active Contributor
0 Kudos

Use a progress indicator FM SAPGUI_PROGRESS_INDICATOR

Or increase the permitted time to run a program (there's a profile in RZ11 don;t know the name right now but search for dialog timeout or something like that)

Kind regards, Rob Dielemans

Message was edited by:

Rob Dielemans

Former Member
0 Kudos

This FM doesn't exist in our system, but based on what it <i>looks</i> like it's doing, you might want to change the internal table so that it contains ranges of ducuments and include them in the call to the FM.

Rob

former_member182190
Active Participant
0 Kudos

Hi Preethi,

As you are looping at a table with many records, you r facing this problem.

There are 2 ways to overcome this

1) Extend your Internal memory in RZ11 transaction.

2) Loop at the Internal table upto some records first and then loop from the remaining to the last. Break your loop into 2-3 loops.

Hope this is of some help.

Regards,

Ismail.