‎2007 Jul 25 2:56 PM
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.
‎2007 Jul 31 9:00 AM
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.
‎2007 Jul 25 3:40 PM
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
‎2007 Jul 30 3:54 PM
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
‎2007 Jul 31 9:00 AM
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.