Time out text

Hallo, I just recently read a post from a few months ago in regards to delaying the time it takes on load for text to appear (I can do the effect "appear" on load but would like a two second delay of nothing before you start to see the text) The code that the user posted to fix the problem was as follows....
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
         $('#divId').hide();
         setTimeout(function() {
            $('#divId').fadeIn(3000);
         },8000);                       
</script>
I am testing this out with one ap div that has "hi" typed inside of it, below is the code.....
<style type="text/css">
#apDiv1 {
     position:absolute;
     width:200px;
     height:115px;
     z-index:1;
     font-size: 36px;
</style>
<div id="apDiv1">HI</div>
What I was wondring is how to implement the first code solution into my code i.e combine them to make it work as I have pretty poor code skills.
Thanks

You can delay the fade in effect.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Your page title goes here</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
</script>
<style type="text/css">
html {margin:0; padding:0; font-size: 100%;}
body {
background: #360;
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
padding:0;
width: 990px;
/**with width, this centers page on screen**/
margin:0 auto;
/**visible on page load, black container for fading text**/
.fading {
margin:0;
padding:0;
background: #000;
min-height: 125px;
/**fading text**/
.fading h1 {
margin-top:12px;
padding-top:12px;
color: #FFF;
text-align:center;
font-size: 28px;
/**Re-usable classes**/
.left {text-align:left}
.center {text-align:center}
.right {text-align:right}
/**floats, clearing**/
.floatLt {
float: left;
width: 45%;
padding: 12px;
border: 1px solid silver}
.floatRt {
float: right;
width: 45%;
padding: 12px;
border: 1px solid silver}
/**to clear floats**/
.clearing {
clear:both;
height: 1px;
visibility: hidden}
</style>
</head>
<body>
<p class="center"><img src="images2/jake.jpg" alt="photo of jake" width="480" height="360" title="jake"></p>
<div class="fading">
<h1>Welcome to the home of Scottish Artist &amp; Designer,<br />
Stevie...</h1>
</div>
<div class="floatLt">
<p>this is a floated left container</p>
</div>
<div class="floatRt">
<p class="right">this is a floated right container</p>
</div>
<hr class="clearing" />
<!--For best results, keep this function above the end of body tag -->
<script type="text/javascript">
     $(window).ready(function(){
     $('.fading h1').hide() .delay (2500) .fadeIn(2500);
</script>
</body>
</html>
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists 
http://alt-web.com/
http://twitter.com/altweb

Similar Messages

  • I bought an LG phone and a $35 dollar plan card. Less than a week later it said I was out of time for texts. Apparently it only gave me minutes, not the plan I wanted. Is there any way I can get the plan without paying again?

    I bought an LG phone and a $35 dollar plan card. Less than a week later it said I was out of time for texts. Apparently it only gave me minutes, not the plan I wanted. Is there any way I can get the plan without paying again?

    So you bought a plan and used it all and want another one for free? I understand you thought it had more texts or whatnot but they won't do that since you already used the other plan.
    That's like going to McDonalds and ordering a double cheeseburger, them giving you a double cheeseburger, you eating it and then realizing you wanted a double quarter pounder and expecting them to give it to you free.

  • Request time out when creating content database

    Hello,
    my problem is, that i cannot create a SharePoint content database via the central administration.
    My Setup is the following:
    SharePoint Server 2013 Enterprise Farm
    1x Applikation Server/WFE (Windows Server 2012 SP 1)
    1x Database Server MSSQL Server 2012 (Windows Server 2012 SP 1)
    1x TFS 2013 (Windows Server 2012 SP 1)
    all of them are hosted in the same Hyper-V Environment. It is not the fasted Hyper-V Environment existing on planet earth.
    The weirdest part of the problem is, i am able to create a content database via powershell.
    I am running in some kind of time out issue related to the IIS and CA of that Applikation Server.
    Here is the ULS Log from the failling content database creation via CA
    12.18.2014 10:26:09.47 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Monitoring b4ly
    High Leaving Monitored Scope (PostAuthenticateRequestHandler). Execution Time=8,5997
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.66 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    General g3qj
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:09.50, Original Level: Verbose] url is in site
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.66 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Asp Runtime aj1kp
    High [Forced due to logging gap, Original Level: Verbose] SPRequestModule.PreSendRequestHeaders
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.73 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ahjqp
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:09.70, Original Level: Verbose] SQL connection time: 14.765 for Data Source=SQLSERVER\DATABASE;Initial Catalog=master;Integrated Security=True;Pooling=False
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.73 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Topology 8xqz
    High [Forced due to logging gap, Original Level: Medium] Updating SPPersistedObject {0}. Version: {1} Ensure: {2}, HashCode: {3}, Id: {4}, Stack: {5}
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.77 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Upgrade aj2jl
    High 12/18/2014 10:26:09.77 w3wp (0x2304) 0x1B40 SharePoint Foundation Upgrade ServerSequence aj2jl DEBUG Search ServerSequence returns TargetBuildVersion '15.0.4675.1000' 4deed69c-2f53-a086-14bb-cbf40b020025
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.77 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Upgrade aj2jk
    High 12/18/2014 10:26:09.77 w3wp (0x2304) 0x1B40 SharePoint Foundation Upgrade ServerSequence aj2jk DEBUG Setting Search ServerSequence version (guid '53d65723-a256-48d7-a477-1d3466089eef') to BuildVersion '15.0.4675.1000'
    4deed69c-2f53-a086-14bb-cbf40b020025 4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.77 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Upgrade aj2jl
    High 12/18/2014 10:26:09.77 w3wp (0x2304) 0x1B40 SharePoint Foundation Upgrade ServerSequence aj2jl DEBUG Search ServerSequence returns TargetBuildVersion '15.0.4675.1000' 4deed69c-2f53-a086-14bb-cbf40b020025
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.83 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database 8acb
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:09.81, Original Level: VerboseEx] Reverting to process identity
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.83 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ahjqp
    High [Forced due to logging gap, Original Level: Verbose] SQL connection time: 0.2565 for Data Source=SQLSERVER\DATABASE;Initial Catalog=SharePoint_2013_Prod_Config;Integrated Security=True;Enlist=False;Pooling=True;Min
    Pool Size=0;Max Pool Size=100;Connect Timeout=400
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.16 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ahjqp
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:09.86, Original Level: Verbose] SQL connection time: 0.1719 for Data Source=SQLSERVER\DATABASE;Initial Catalog=SharePoint_2013_Prod_Config;Integrated Security=True;Enlist=False;Pooling=True;Min
    Pool Size=0;Max Pool Size=100;Connect Timeout=400
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.16 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database 8acb
    High [Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.19 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Topology 84y4
    High Granting VIEW SERVER STATE permission for S-1-5-21-3747686279-3738247048-1854932723-1131.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.23 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Topology 84y5
    High VIEW SERVER STATE permission updated successfully.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.23 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Topology 84y4
    High Granting CONTROL SERVER permission for S-1-5-21-3747686279-3738247048-1854932723-1131.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.25 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Topology 84y5
    High CONTROL SERVER permission updated successfully.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.33 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database 8acb
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:12.30, Original Level: VerboseEx] Reverting to process identity
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.33 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ahjqp
    High [Forced due to logging gap, Original Level: Verbose] SQL connection time: 16.4685 for Data Source=SQLSERVER\DATABASE;Initial Catalog=master;Integrated Security=True;Enlist=False;Pooling=False;Min Pool Size=0;Max
    Pool Size=100;Connect Timeout=400 4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.39 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database 8acb
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:12.38, Original Level: VerboseEx] Reverting to process identity
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.39 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ahjqp
    High [Forced due to logging gap, Original Level: Verbose] SQL connection time: 11.6743 for Data Source=SQLSERVER\DATABASE;Initial Catalog=master;Integrated Security=True;Enlist=False;Pooling=False;Min Pool Size=0;Max
    Pool Size=100;Connect Timeout=400 4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.42 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database 7t6o
    High The WSS_Content_uitest database does not exist.  It will now be created.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:15.11 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ahjqp
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:12.44, Original Level: Verbose] SQL connection time: 9.9785 for Data Source=SQLSERVER\DATABASE;Initial Catalog=master;Integrated Security=True;Enlist=False;Pooling=False;Min
    Pool Size=0;Max Pool Size=100;Connect Timeout=400
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:15.11 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ab20s
    High [Forced due to logging gap, Original Level: Medium] Setting the {0} option to {1} on the database {2}.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:15.14 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Upgrade ajy0d
    High 12/18/2014 10:26:15.14 w3wp (0x2304) 0x1B40 SharePoint Foundation Upgrade SPUtility ajy0d DEBUG File C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\Template\sql\store.sql, Time out =
    0 sec 4deed69c-2f53-a086-14bb-cbf40b020025
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.46 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ahjqp
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:15.16, Original Level: Verbose] SQL connection time: 11.4389 for Data Source=SQLSERVER\DATABASE;Initial Catalog=WSS_Content_uitest;Integrated Security=True;Enlist=False;Pooling=False;Min
    Pool Size=0;Max Pool Size=100;Connect Timeout=400
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.46 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database fa45
    High System.Threading.ThreadAbortException: Thread was being aborted.     at SNIReadSyncOverAsync(SNI_ConnWrapper* , SNI_Packet** , Int32 )     at SNINativeMethodWrapper.SNIReadSyncOverAsync(SafeHandle
    pConn, IntPtr& packet, Int32 timeout)     at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()     at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()     at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
        at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)     at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler,
    TdsParserStateObject stateObj, Boolean& dataReady)     at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)     at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1
    completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)     at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()     at Microsoft.SharePoint.Utilities.SqlSession.ExecuteScript(TextReader textReader, Int32
    commandTimeout) 4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.47 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database fa46
    High at Microsoft.SharePoint.Utilities.SqlSession.ExecuteScript(String path, Int32 commandTimeout)     at Microsoft.SharePoint.Upgrade.SPUtility.ExecuteSqlFile(SqlSession sqlSession, ISqlSession isqlSession,
    SqlFile sqlFileId, Int32 timeOut)     at Microsoft.SharePoint.Administration.SPDatabase.Provision(SPDatabase database, SqlConnectionStringBuilder connectionString, SqlFile sqlFileId, Dictionary`2 options)     at Microsoft.SharePoint.Administration.SPContentDatabase.Provision()
        at Microsoft.SharePoint.Administration.SPContentDatabaseCollection.Add(SPContentDatabase database, Boolean provision, Guid webApplicationLockId, Int32 addFlags)     at Microsoft.SharePoint.Administration.SPContentDatabaseCollection.Add(Guid
    newDatabaseId, String strDatabaseServer, String strDatabaseName, String strDatabaseUsername, String strDatabasePassword, Int32 warningSiteCount, Int32 maximumSiteCount, Int32 status, Boolean provision, Guid lockId, Int32 addFlags)     at Microsoft.SharePoint.ApplicationPages.NewContentDBPage.BtnSubmit_Click(Object
    sender, EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext context)     at
    System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)     at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception
    error)     at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)     at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)     at
    System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer,
    IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)     at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr
    pHandler, RequestNotificationStatus& notificationStatus)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr
    rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.47 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database tzku
    High ConnectionString: 'Data Source=SQLSERVER\DATABASE;Initial Catalog=WSS_Content_uitest;Integrated Security=True;Enlist=False;Pooling=False;Min Pool Size=0;Max Pool Size=100;Connect Timeout=400'    Partition:
    NULL ConnectionState: Closed ConnectionTimeout: 400
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.50 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database tzkv
    High SqlCommand: '--FixO15:3174405 create role SPReadOnly This line should not be changed or removed, otherwise upgrade would fail.  IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = N'SPReadOnly'
    AND type = 'R')  CREATE ROLE [SPReadOnly]  DECLARE @objname sysname, @objtype NVARCHAR(max), @datatype NVARCHAR(max), @query NVARCHAR(max)  -- Grant SELECT on all SharePoint stored procedures and functions  DECLARE c CURSOR LOCAL FAST_FORWARD
    FOR      SELECT ROUTINE_NAME, ROUTINE_TYPE, DATA_TYPE      FROM INFORMATION_SCHEMA.ROUTINES      WHERE ROUTINE_SCHEMA = 'DBO'  OPEN c  WHILE 1 = 1  BEGIN      FETCH NEXT FROM c INTO
    @objname, @objtype, @datatype      IF @@FETCH_STATUS = -1          BREAK      IF @@FETCH_STATUS = 0      BEGIN          -- Inline table-valued functions    
         IF (@objtype = 'FUNCTION' AND @datatype = 'TABLE')              SET @query = 'GRANT SELECT ON [dbo].' + quotename(@objname) + ' TO [SPReadOnly]'          EXEC sp_executesql
    @query      END  END  CLOSE c  DEALLOCATE c  -- Grant SELECT on all SharePoint tables  DECLARE c CURSOR LOCAL FAST_FORWARD FOR      SELECT TABLE_NAME      FROM INFORMATION_SCHEMA.TABLES
         WHERE TABLE_SCHEMA = 'DBO'  OPEN c  WHILE 1 = 1  BEGIN      FETCH NEXT FROM c INTO @objname      IF @@FETCH_STATUS = -1          BREAK      IF @@FETCH_STATUS
    = 0      BEGIN          SET @query = 'GRANT SELECT ON [dbo].' + quotename(@objname) + ' TO [SPReadOnly]'          EXEC sp_executesql @query      END  END  CLOSE
    c  DEALLOCATE c  -- Grant EXECUTE on User-defined type where schema is dbo  DECLARE c CURSOR LOCAL FAST_FORWARD FOR      SELECT NAME      FROM SYS.TYPES      WHERE IS_USER_DEFINED = 1    
     AND SCHEMA_ID = schema_id(N'dbo')  OPEN c  WHILE 1 = 1  BEGIN      FETCH NEXT FROM c INTO @objname      IF @@FETCH_STATUS = -1          BREAK      IF @@FETCH_STATUS
    = 0      BEGIN          SET @query = 'GRANT EXECUTE ON TYPE::[dbo].' + quotename(@objname) + ' TO [SPReadOnly]'          EXEC sp_executesql @query      END  END  CLOSE
    c  DEALLOCATE c  '     CommandType: Text CommandTimeout: 0
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.50 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database aek90
    High SecurityOnOperationCheck = False
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.50 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Monitoring b4ly
    High Leaving Monitored Scope (Database.Provision (WSS_Content_uitest on SQLSErver\database)). Execution Time=115148.4664
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.50 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Topology 8dyx
    High Deleting the SPPersistedObject, SPContentDatabase Name=WSS_Content_uitest.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.56 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Topology bw4w
    High [Forced due to logging gap, cached @ 12/18/2014 10:28:07.53, Original Level: Medium] {0}
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.56 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database 8acb
    High [Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.60 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Monitoring b4ly
    High Leaving Monitored Scope (Creating Content Database (WSS_Content_uitest on SQLServer\Database)). Execution Time=115311.5636
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.64 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Runtime tkau
    Unexpected System.Web.HttpException: Request timed out.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.64 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    General ajlz0
    High Getting Error Message for Exception System.Web.HttpException (0x80004005): Request timed out.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.69 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Micro Trace uls4
    High Micro Trace Tags: 0 b4ly,301 aj2jl,3 aj2jk,0 aj2jl,2423 84y4,35 84y5,4 84y4,11 84y5,181 7t6o,2714 ajy0d,112321 fa45,10 fa46,3 tzku,23 tzkv,0 aek90,0 b4ly,6 8dyx,91 b4ly,38 tkau,13 ajlz0
    4deed69c-2f53-a086-14bb-cbf40b020025
    The working content database creation from powershell looks like this
    12.18.2014 09:45:37.52 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade aj2jl
    High 12/18/2014 09:45:37.52 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade ServerSequence aj2jl DEBUG Search ServerSequence returns TargetBuildVersion '15.0.4675.1000' 43dae8a1-02e3-43f5-8a06-0417221e6385
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:37.52 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade aj2jk
    High 12/18/2014 09:45:37.52 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade ServerSequence aj2jk DEBUG Setting Search ServerSequence version (guid '53d65723-a256-48d7-a477-1d3466089eef') to BuildVersion '15.0.4675.1000'
    43dae8a1-02e3-43f5-8a06-0417221e6385 43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:37.52 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade aj2jl
    High 12/18/2014 09:45:37.52 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade ServerSequence aj2jl DEBUG Search ServerSequence returns TargetBuildVersion '15.0.4675.1000' 43dae8a1-02e3-43f5-8a06-0417221e6385
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:39.98 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Topology 84y4
    High Granting VIEW SERVER STATE permission for S-1-5-21-3747686279-3738247048-1854932723-1131.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:40.02 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Topology 84y5
    High VIEW SERVER STATE permission updated successfully.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:40.02 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Topology 84y4
    High Granting CONTROL SERVER permission for S-1-5-21-3747686279-3738247048-1854932723-1131.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:40.03 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Topology 84y5
    High CONTROL SERVER permission updated successfully.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:40.23 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Database 7t6o
    High The WSS_Content_powershelltest database does not exist.  It will now be created.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:43.03 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade ajy0d
    High 12/18/2014 09:45:43.03 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade SPUtility ajy0d DEBUG File C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\Template\sql\store.sql, Time
    out = 0 sec 43dae8a1-02e3-43f5-8a06-0417221e6385
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:52.70 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Database 944r
    High Adding S-1-5-21-3747686279-3738247048-1854932723-1131 to the role, db_owner, in the database, WSS_Content_powershelltest.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:52.81 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Monitoring b4ly
    High Leaving Monitored Scope (Database.Provision (WSS_Content_powershelltest on SQLSERVER\DATABASE)). Execution Time=192653,1989
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:57.90 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade al2ph
    High 12/18/2014 09:48:57.90 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade SPContentDatabaseSequence al2ph DEBUG Executing SQL DDL Script. 43dae8a1-02e3-43f5-8a06-0417221e6385
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:58.03 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade al2ph
    High 12/18/2014 09:48:58.03 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade SPContentDatabaseSequence al2ph DEBUG Executing SQL DDL Script. 43dae8a1-02e3-43f5-8a06-0417221e6385
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:58.04 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade al2ph
    High 12/18/2014 09:48:58.04 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade SPContentDatabaseSequence2 al2ph DEBUG Executing SQL DDL Script. 43dae8a1-02e3-43f5-8a06-0417221e6385
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:58.15 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade ajyw6
    High 12/18/2014 09:48:58.15 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade SPHierarchyManager ajyw6 DEBUG [SPTree Value=SPContentDatabase Name=WSS_Content_powershelltest] added to dependency cache by lookup
    43dae8a1-02e3-43f5-8a06-0417221e6385 43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:58.23 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Database 944r
    High Adding S-1-5-21-3747686279-3738247048-1854932723-1131 to the role, SPDataAccess, in the database, WSS_Content_powershelltest.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:58.59 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Database bx4r
    High All documents with forward links in content database [SPContentDatabase Name=WSS_Content_powershelltest] is being dirtied.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:58.97 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Database 944r
    High Adding S-1-5-21-3747686279-3738247048-1854932723-1131 to the role, SPDataAccess, in the database, WSS_Content_powershelltest.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:58.98 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Monitoring b4ly
    High Leaving Monitored Scope (Creating Content Database (WSS_Content_powershelltest on SQLSERVER\DATABASE)). Execution Time=198893,1578
    43dae8a1-02e3-43f5-8a06-0417221e6385
    The fact that i am able to create a content database through powershell sorts out permissions problems. I am certain of that because the w3wp.exe and the powershell.exe used for both creations were run under the same user.
    The timeout always happens aroud 120 seconds after i started the creation. The creation via powershell takes about 3,5 minutes.
    Here for the folks that ask me, why i haven't asked google or bing or some other search engine.
    I tried the solutions suggested here
    http://www.sharepointpals.com/post/Error-while-Creating-Web-Application-through-Central-Administration , here
    http://anthonyspiteri.net/sharepoint-2010-web-ui-timeout-creating-web-application-quick-fix/ and here
    http://blogs.ibs.com/Duane.Odum/Lists/Posts/Post.aspx?ID=33
    which i thought pointed me to the right solution.
    But those post unfortunatly didnt worked out.
    I also tried to alter the web.config files (i know that isn't recommended or supported, but it didn't change anything so those are back to normal as well)
    So here are my question:
    Can you guys help me solve this issue?
    Are there any other places where timeouts can be managed or defined?
    P.S.: I am new to using this forum. so pls don't crucify me for doing a mistake.
    P.S.S: My english is very poor also :D
    With best regards
    Simon

    Be careful with settings like these because there may be a much deeper issue at hand. I have had an issue with a customer that manifests itself as a timeout on a site collection. It was very hard to track since it didn't happen frequently. We engaged Microsoft
    Support to find out the root cause but all they could point at is a general network issue that pertains to authentication. After digging deeper, we found out that the network issue was caused by a saturated network connectivity to the domain controller that
    impacts a site collection when the database is making an authentication call. Keep this solution as more of a quick fix but be sure to conduct a deeper investigation of the real root cause
    Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
    Blog |
    Twitter | LinkedIn
    SQL Server High Availability and Disaster Recover Deep Dive Course

  • Time out error 1.6 million internal table fields are computed using FMs

    Hi , All ...
    The Report running fine in server with less 300 record but ...production server which has 1.6 million record it  gives error as time-out error and takes hell amount of time.
    Please suggest ugently ..
    I have tried few things
    Internal table having 1.6 lacs ... fields to compute .. i have token in a batch
    loop at i_cinfo into s_cinfo from 1 to  100000.
    and so on ...also applied all the performace related .. like indexs, work areas , deleting adjacent duplicates , for all entries ..wherever applicable.
    Please Suggest .
    Report is as below
    REPORT  ZUSOTCBD_CREDIT_REPORT .
    TABLES : KNA1,    " General Data Customer Master
             KNB1,    " Customer Master (Company Code)
             KNC1,    " Customer master (transaction figures)
             KNKK,    " Customer master credit management: Control area data
             T009,    " Fiscal Year Variants P
             T009Y,   " Shortened fiscal years in Asset Accounting P
             T001,    " Co. Codes
             T001CM,  " Permitted Credit Control Areas per Company Code
             RF42B,   " Structure to hold credit data.
             RF035,   " Structure to hold credit managment fields
             RF02L,   " Structure to hold credit data.
             TRAS,    " Interval for Days in Arrears P
             T000CM.  " Data for DSO calculation.
    Types
    TYPES:
      BEGIN OF type_final,
        string(50) TYPE c,                            " String Value for Title
      END OF type_final.
    data:wa_final     TYPE type_final.                " Work Area to hold Title Data
    DATA:    RASID    TYPE RF035-RASID value 'R03N'. " For Days in interval
    DATA:    MONAT(2) TYPE N.
    DATA:    GJAHR    TYPE  KNC1-GJAHR.
    DATA:    LD_PERIODS(32) TYPE N
                           VALUE '01020304050607080910111213141516'.
    DATA     sytabix type sy-tabix.
    DATA     LAND      TYPE KNA1-LAND1 VALUE 'US'.   " Country Key
    DATA:   LD_PERIOD    TYPE BSID-MONAT,            " Fiscal Year Variant
            LD_GJAHR   TYPE KNC1-GJAHR,
            LD_COUNTER TYPE SY-TABIX.
    Internal Tables
    Internal table to hold Title Data                                   *
    DATA:
      i_final    TYPE STANDARD TABLE OF type_final.
    **Internal Table Permitted Credit Control Areas per Company Code
    DATA:    BEGIN OF TCMTAB OCCURS 10.
            INCLUDE STRUCTURE T001CM.
    DATA:    END   OF TCMTAB.
    *Internal table to store Customer no.
    DATA :  BEGIN OF ICUST OCCURS 0,
               KUNNR             TYPE KNA1-KUNNR,    " Customer No.
            END   OF ICUST.
    DATA:    BEGIN OF BUKTAB OCCURS 20,
               KKBER             LIKE T001-KKBER,    " Credit Control Area
               BUKRS             LIKE T001-BUKRS,    " Co. Code
               WAERS             LIKE T001-WAERS,    " Currency
               PERIV             LIKE T001-PERIV,    " Fiscal Year Variant
               BUTXT             LIKE T001-BUTXT,
             END   OF BUKTAB.
    Internal Table to store Fiscal year Data .
    DATA:    BEGIN OF GJATAB OCCURS 5,
               PERIV             LIKE T001-PERIV,    " Fiscal Year Variant
               GJAHR             LIKE KNC1-GJAHR,    " Fiscal Year
               MONAT             LIKE T009-ANZBP,    "
               ANZBP             LIKE T009-ANZBP,    " Number of posting periods
             END   OF GJATAB.
    *Main Output internal table to be used to store credit history Information
    DATA : BEGIN OF I_CINFO occurs 0,
                 KUNNR TYPE   KNB1-KUNNR,     " Customer
                 KNKLI TYPE   KNKK-KNKLI,     " Customer's account number with credit limit reference
                 KKBER TYPE   KNKK-KKBER,     " Credit Control Area
                 CTLPC TYPE   KNKK-CTLPC,     " Risk Category
                 KLIMK TYPE   KNKK-KLIMK,     " Credit Limit
                 SBGRP TYPE   KNKK-SBGRP,     " Credit representative group for credit management
                 ERDAT TYPE   KNKK-ERDAT,     " Created On
                 DTREV TYPE   KNKK-DTREV,     " Last Internal Review
                 REVDB TYPE   KNKK-REVDB,     " Last External Review
                 SALDO TYPE   RF42B-SALDO,    " Balance
                 DSOIN TYPE   RF02L-DSOIN,    " DSO
                 H06SA TYPE   RF035-H06SA,    " Highest Balance at the end of 6 Months
                 H06JA TYPE   RF035-H06JA,    " Year highest Balance 6 Months
                 H06MO TYPE   RF035-H06MO,    " Month OF hihest Balance 6 Months
                 H12SA TYPE   RF035-H12SA,    " Highest Balance at the end of 12 Months
                 H12JA TYPE   RF035-H12JA,    " Year highest Balance 12 Months
                 H12MO TYPE   RF035-H12MO,    " Month OF hihest Balance 12 Months
                 UMP2U TYPE   RF42B-UMP2U,    " Sales from the current Year
                 UMP1U TYPE   RF42B-UMP1U,    " Sales from the Previous Year
                 SFAEL TYPE   RF035-SFAEL,    " Total Past Due Open Item
                 SFAE1 TYPE   RF035-SFAE1,    " Aging buckets 0-15
                 SFAE2 TYPE   RF035-SFAE2,    " Aging buckets 16-30
                 SFAE3 TYPE   RF035-SFAE3,    " Aging buckets 31-60
                 SFAE4 TYPE   RF035-SFAE4,    " Aging buckets 60-90
                 SFAE5 TYPE   RF035-SFAE5,    " Aging buckets Over 90
          END Of I_CINFO.
    DATA : BEGIN OF S_CINFO ,
                 KUNNR TYPE   KNB1-KUNNR,     " Customer
                 KNKLI TYPE   KNKK-KNKLI,     " Customer's account number with credit limit reference
                 KKBER TYPE   KNKK-KKBER,     " Credit Control Area
                 CTLPC TYPE   KNKK-CTLPC,     " Risk Category
                 KLIMK TYPE   KNKK-KLIMK,     " Credit Limit
                 SBGRP TYPE   KNKK-SBGRP,     " Credit representative group for credit management
                 ERDAT TYPE   KNKK-ERDAT,     " Created On
                 DTREV TYPE   KNKK-DTREV,     " Last Internal Review
                 REVDB TYPE   KNKK-REVDB,     " Last External Review
                 SALDO TYPE   RF42B-SALDO,    " Balance
                 DSOIN TYPE   RF02L-DSOIN,    " DSO
                 H06SA TYPE   RF035-H06SA,    " Highest Balance at the end of 6 Months
                 H06JA TYPE   RF035-H06JA,    " Year highest Balance 6 Months
                 H06MO TYPE   RF035-H06MO,    " Month OF hihest Balance 6 Months
                 H12SA TYPE   RF035-H12SA,    " Highest Balance at the end of 12 Months
                 H12JA TYPE   RF035-H12JA,    " Year highest Balance 12 Months
                 H12MO TYPE   RF035-H12MO,    " Month OF hihest Balance 12 Months
                 UMP2U TYPE   RF42B-UMP2U,    " Sales from the current Year
                 UMP1U TYPE   RF42B-UMP1U,    " Sales from the Previous Year
                 SFAEL TYPE   RF035-SFAEL,    " Total Past Due Open Item
                 SFAE1 TYPE   RF035-SFAE1,    " Aging buckets 0-15
                 SFAE2 TYPE   RF035-SFAE2,    " Aging buckets 16-30
                 SFAE3 TYPE   RF035-SFAE3,    " Aging buckets 31-60
                 SFAE4 TYPE   RF035-SFAE4,    " Aging buckets 60-90
                 SFAE5 TYPE   RF035-SFAE5,    " Aging buckets Over 90
          END Of s_cinfo.
    *Internal table to hold month-wise balance.
    DATA:    BEGIN OF SALTAB OCCURS 12,
               LNUMM(2)     TYPE N,             " Month
               SALDO        LIKE RF42B-SALDO,   " Balance
             END   OF SALTAB.
    *Internal table used for computing the Balance fields
    DATA:    BEGIN OF SALDO,
               UML01             LIKE KNC1-UM01S,
               UML02             LIKE KNC1-UM01S,
               UML03             LIKE KNC1-UM01S,
               UML04             LIKE KNC1-UM01S,
               UML05             LIKE KNC1-UM01S,
               UML06             LIKE KNC1-UM01S,
               UML07             LIKE KNC1-UM01S,
               UML08             LIKE KNC1-UM01S,
               UML09             LIKE KNC1-UM01S,
               UML10             LIKE KNC1-UM01S,
               UML11             LIKE KNC1-UM01S,
               UML12             LIKE KNC1-UM01S,
             END   OF SALDO.
    Structure to hold Bal fields ------ -------
    DATA:    BEGIN OF SKNKK,
               KUNNR             LIKE KNA1-KUNNR,  " Customer Number 1: Debitor
               KONTO             LIKE KNKK-KUNNR,
               SFAE1             LIKE RF035-SFAE1, " Aging buckets 0-15
               SFAE2             LIKE RF035-SFAE2, " Aging buckets 16-30
               SFAE3             LIKE RF035-SFAE3, " Aging buckets 30-60
               SFAE4             LIKE RF035-SFAE4, " Aging buckets 60-90
               SFAE5             LIKE RF035-SFAE5, " Aging buckets Over 90
               SFAEL             LIKE RF035-SFAEL, " Total Due of Items
               UML01             LIKE KNC1-UM01S,
               UML02             LIKE KNC1-UM01S,
               UML03             LIKE KNC1-UM01S,
               UML04             LIKE KNC1-UM01S,
               UML05             LIKE KNC1-UM01S,
               UML06             LIKE KNC1-UM01S,
               UML07             LIKE KNC1-UM01S,
               UML08             LIKE KNC1-UM01S,
               UML09             LIKE KNC1-UM01S,
               UML10             LIKE KNC1-UM01S,
               UML11             LIKE KNC1-UM01S,
               UML12             LIKE KNC1-UM01S,
               UMP1U             LIKE RF42B-UMP1U, " Sales from the Previous Year
               UMP2U             LIKE RF42B-UMP2U, " Sales from the current Year
               SALDO             LIKE RF42B-SALDO, " Balance
             END   OF SKNKK.
    DATA :  BEGIN OF ICUST1 OCCURS 0,
               KUNNR             TYPE KNA1-KUNNR,    "For Customer Filter.
            END   OF ICUST1.
    **Internal table to hold fiscal varriants
    DATA: BEGIN OF LT_PERIODS OCCURS 12,
             PERIOD LIKE BSID-MONAT,
             GJAHR  LIKE KNC1-GJAHR,
           END OF LT_PERIODS.
    **Constants
    constants :  BUKRS1 TYPE KNB1-BUKRS VALUE '1000',
                 BUKRS2 TYPE KNB1-BUKRS VALUE '1031',
                 Recs   Type i value '200',
                 B_count type i value '2'.
          INITIALIZATION
    INITIALIZATION.
      IF RASID IS INITIAL.
        SELECT * FROM TRAS.
          EXIT.
        ENDSELECT.
        IF SY-SUBRC = 0.
          RASID = TRAS-RASID.
        ENDIF.
      ENDIF.
    SELECTION-SCREEN
      parameters : p_path type rlgrap-filename default 'C:\Documents and Settings\C890971\Desktop\Credit_history.XLS'.
    Start of selection processing
    START-OF-SELECTION.
    **Get Customers for Co. Code 1000 & 1031.
      PERFORM GET_CUST.
    Get  / Compute Credit Information data for Company Codes 1000 & 1031.
      PERFORM GET_CREDIT_DATA.
    End of selection processing
    *END-OF-SELECTION.
    Listing Credit History Data
      PERFORM DOWNLOAD_CREDIT_DATA.
    S U B R O U T I N E S
    *&      Form  GET_CUST
          text
    -->  p1        text
    <--  p2        text
    FORM GET_CUST .
    Get US only Customers.
      Refresh icust.
      Select kunnr from kna1 appending table icust
                                   where Land1 = land.
    **Delete duplicate records
      Delete Adjacent duplicates from icust comparing kunnr.
      if icust[] is not initial.
       Limit the selection some more to Co. Code 1000 & 1031
      As join will cost overhead as compared.
      Select kunnr from knb1 into table icust1
                                  for all entries in icust
                                  where kunnr = icust-kunnr
                                  and   bukrs = bukrs1
                                  OR    bukrs = bukrs2.
    **Delete duplicate records
      Delete Adjacent duplicates from icust1 comparing kunnr.
       endif.
    **Free memory.
      Free icust.
    Credit Control Area
      select * from T001CM into table TCMTAB
                           where bukrs = bukrs1 OR
                                 bukrs = bukrs2.
    ENDFORM.                    " GET_CUST
    *&      Form  GET_CREDIT_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM GET_CREDIT_DATA .
      DATA : L_TEXT(60) TYPE C ,
             Ltext1(50) type C value 'Computing Credit-History Data For',
             Ltext2(10) type C value 'Customers',
             L_PCT type i value '10',
             L_recs type i,
             l_batch_recs type i,
             l_s_rec type i value 1,
             l_recs1(7) type N.
    ***Fetch data from KNKK table
      PERFORM GET_KNKK_DATA  .
    ***Computing Crredit Fields
    **Number of Customers For whom Deatils needed.
      Describe table I_CINFO lines l_recs.
      l_recs1 = l_recs.
      Concatenate Ltext1 l_recs1 Ltext2 into l_text separated by ' '.
      PERFORM GET_PGRESS_INDICATOR USING l_text l_pct.
    ***If records are more than 200000, should be processed  batch-wise
      If l_recs > recs.
        l_batch_recs = abs( l_recs / b_count ).
        Do b_count times.
          loop at i_cinfo INTO S_CINFO from l_S_REC to l_batch_recs.
    **Remember the row
            sytabix = sy-tabix.
    **Compute DSO
            PERFORM GET_DSO_FIELD .
    Compute rest credit history data.
            PERFORM COMPUTE_SFIELDS.
          endloop.
          l_S_REC = l_S_REC + l_batch_recs.
          l_batch_recs = l_batch_recs + l_batch_recs.
          IF l_batch_recs ge l_recs.
            l_batch_recs = l_recs.
          eNDIF.
    Commit up to here to release the DB locks.
          Commit work.
        enddo.
      else.
        loop at i_cinfo INTO S_CINFO.
    **Remember the row
          sytabix = sy-tabix.
    **Compute DSO
          PERFORM GET_DSO_FIELD .
    Compute rest credit history data.
          PERFORM COMPUTE_SFIELDS.
        endloop.
      Endif.
    ENDFORM.                    " GET_CREDIT_DATA
    *&      Form  GET_KNKK_DATA
          text
         -->P_ICUST_KUNNR  text
    FORM GET_KNKK_DATA .
      if icust1[] is not initial.
      SELECT   KUNNR KNKLI KKBER  CTLPC KLIMK
               SBGRP ERDAT DTREV REVDB
               from KNKK into corresponding fields of table I_Cinfo
               for all entries in icust1
               where kunnr = icust1-kunnr.
      Delete Adjacent duplicates from i_cinfo comparing kunnr.
      endif.
    **Free Memory for internal table icust1.
      Free icust1.
    ENDFORM.                    " GET_KNKK_DATA
    **&      Form  GET_DSO_FIELD
          text
    -->  p1        text
    <--  p2        text
    FORM GET_DSO_FIELD .
    ***Determine DSO Parameter
      PERFORM DSO_PARAMETER.
    ***Compute DSO
      CALL FUNCTION 'CUSTOMER_DSO_CALCULATION'
        EXPORTING
          I_KKBER       = s_cinfo-kkber
          I_KUNNR       = s_cinfo-kunnr
          I_ANZBUPER    = T000CM-DSOPP
          I_XCHILDS     = T000CM-DSOCH
          I_ACTBALANCE  = T000CM-DSOAB
        IMPORTING
          E_DSOIN       = RF02L-DSOIN
        EXCEPTIONS
          ERROR_MESSAGE = 1.
    ENDFORM.                    " GET_DSO_FIELD
    *&      Form  DSO_PARAMETER
          text
    -->  p1        text
    <--  p2        text
    FORM DSO_PARAMETER.
      IF T000CM-DSOPP IS INITIAL.
        SELECT SINGLE * FROM T000CM.
        IF SY-SUBRC     EQ 0.
          IF T000CM-DSOPP IS INITIAL.
            T000CM-DSOPP = '003'.
          ENDIF.
        ELSE.
          T000CM-DSOPP = '003'.
          T000CM-DSOCH = ' '.
          T000CM-DSOAB = 'X'.
        ENDIF.
      ENDIF.
    ENDFORM.                    " DSO_PARAMETER
    -->  p1        text
    <--  p2        text
    FORM PERIODE_ERMITTELN_EXC USING
                P03_BUDAT    LIKE SYST-DATUM
                P03_GJAHR    LIKE KNC1-GJAHR
                P03_MONAT    LIKE MONAT.
      CALL FUNCTION 'FI_PERIOD_DETERMINE'
           EXPORTING
                I_BUDAT = P03_BUDAT
                I_PERIV = T001-PERIV
              I_BUKRS = T001-BUKRS
                I_GJAHR = P03_GJAHR
                I_MONAT = P03_MONAT
           IMPORTING
                E_GJAHR = P03_GJAHR
                E_MONAT = P03_MONAT
           EXCEPTIONS
                ERROR_MESSAGE = 1.
    ENDFORM.                    "PERIODE_ERMITTELN_EXC
    *&      Form  COMPUTE_SFIELDS
          text
    -->  p1        text
    <--  p2        text
    FORM COMPUTE_SFIELDS .
    **Compute Balance
      PERFORM GET_SFIELDS .
      S_CINFO-DSOIN = RF02L-DSOIN.
      S_CINFO-SALDO = RF035-SALDO.
      S_CINFO-H06SA = RF035-H06SA.
      S_CINFO-H06JA = RF035-H06JA.
      S_CINFO-H06MO = RF035-H06MO.
      S_CINFO-H12SA = RF035-H12SA.
      S_CINFO-H12JA = RF035-H12JA.
      S_CINFO-H12MO = RF035-H12MO.
      S_CINFO-UMP2U = RF42B-UMP2U.
      S_CINFO-UMP1U = RF42B-UMP1U.
      S_CINFO-SFAEL = RF035-SFAEL.
      S_CINFO-SFAE1 = RF035-SFAE1.
      S_CINFO-SFAE2 = RF035-SFAE2.
      S_CINFO-SFAE3 = RF035-SFAE3.
      S_CINFO-SFAE4 = RF035-SFAE4.
      S_CINFO-SFAE5 = RF035-SFAE5.
    modify..
      MODIFY I_CINFO FROM S_CINFO INDEX sytabix.
      CLEAR: S_CINFO,RF035,RF02L, RF42B.
    ENDFORM.                    " COMPUTE_SFIELDS
          text
         -->P_C_INFO_KUNNR  text
    FORM GET_CUST_BAL_INFO.
      LOOP AT TCMTAB.
        CALL FUNCTION 'FI_COMPANY_CODE_DATA'
          EXPORTING
            I_BUKRS       = TCMTAB-BUKRS
          IMPORTING
            E_T001        = T001
          EXCEPTIONS
            ERROR_MESSAGE = 1.
        IF SY-SUBRC = 0.
          MOVE-CORRESPONDING T001 TO BUKTAB.
          BUKTAB-KKBER = TCMTAB-KKBER.
          COLLECT BUKTAB.
        ENDIF.
      ENDLOOP.
      LOOP AT BUKTAB WHERE PERIV NE SPACE.
        GJATAB-PERIV = BUKTAB-PERIV.
        COLLECT GJATAB.
      ENDLOOP.
      CLEAR: MONAT.
      LOOP AT GJATAB.
        T001-PERIV = GJATAB-PERIV.
        CLEAR: GJAHR, MONAT.
        PERFORM PERIODE_ERMITTELN_EXC USING SY-DATLO GJAHR MONAT.
        CHECK SY-SUBRC = 0.
        GJATAB-GJAHR = GJAHR.
        GJATAB-MONAT = MONAT.
        SELECT SINGLE * FROM T009 WHERE PERIV = GJATAB-PERIV.
        IF SY-SUBRC = 0.
          GJATAB-ANZBP = T009-ANZBP.
        ENDIF.
        MODIFY GJATAB.
      ENDLOOP.
      LOOP AT BUKTAB.
        CHECK NOT ( BUKTAB-PERIV IS INITIAL ).
        READ TABLE GJATAB WITH KEY BUKTAB-PERIV.
        CHECK SY-SUBRC = 0
          AND NOT ( GJATAB-GJAHR IS INITIAL ).
        CALL FUNCTION 'CUSTOMER_BALANCE'
          EXPORTING
            KUNNR      = S_cinfo-kunnr
            BUKRS      = BUKTAB-BUKRS
            GJAHR      = GJATAB-GJAHR
            MONAT      = GJATAB-MONAT
            PERIV      = GJATAB-PERIV
            ANZBP      = GJATAB-ANZBP
            XH6MON     = 'X'
            XH12MON    = 'X'
          IMPORTING
            UMP2U      = RF42B-UMP2U
            VMP2U      = RF42B-UMP1U
            SALDO      = RF035-SALDO
            UML01      = SALDO-UML01
            UML02      = SALDO-UML02
            UML03      = SALDO-UML03
            UML04      = SALDO-UML04
            UML05      = SALDO-UML05
            UML06      = SALDO-UML06
            UML07      = SALDO-UML07
            UML08      = SALDO-UML08
            UML09      = SALDO-UML09
            UML10      = SALDO-UML10
            UML11      = SALDO-UML11
            UML12      = SALDO-UML12
          EXCEPTIONS
            NO_BALANCE = 4.
        IF SY-SUBRC = 0.
          SKNKK-UMP1U = SKNKK-UMP1U + RF42B-UMP1U.
          SKNKK-UMP2U = SKNKK-UMP2U + RF42B-UMP2U.
          SKNKK-SALDO = SKNKK-SALDO + RF035-SALDO.
          SKNKK-UML01 = SKNKK-UML01 + SALDO-UML01.
          SKNKK-UML02 = SKNKK-UML02 + SALDO-UML02.
          SKNKK-UML03 = SKNKK-UML03 + SALDO-UML03.
          SKNKK-UML04 = SKNKK-UML04 + SALDO-UML04.
          SKNKK-UML05 = SKNKK-UML05 + SALDO-UML05.
          SKNKK-UML06 = SKNKK-UML06 + SALDO-UML06.
          SKNKK-UML07 = SKNKK-UML07 + SALDO-UML07.
          SKNKK-UML08 = SKNKK-UML08 + SALDO-UML08.
          SKNKK-UML09 = SKNKK-UML09 + SALDO-UML09.
          SKNKK-UML10 = SKNKK-UML10 + SALDO-UML10.
          SKNKK-UML11 = SKNKK-UML11 + SALDO-UML11.
          SKNKK-UML12 = SKNKK-UML12 + SALDO-UML12.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    "
    *&      Form  GET_SFIELDS
          text
    -->  p1        text
    <--  p2        text
    FORM GET_SFIELDS .
      sknkk-kunnr = S_CINFO-KUNNR.
    **Clear target to store computed values
      CLEAR: RF035.
    **Compute Balance fields
      PERFORM GET_CUST_BAL_INFO.
      REFRESH: SALTAB.
      SALTAB-LNUMM = '01'. SALTAB-SALDO = SKNKK-UML01. APPEND SALTAB.
      SALTAB-LNUMM = '02'. SALTAB-SALDO = SKNKK-UML02. APPEND SALTAB.
      SALTAB-LNUMM = '03'. SALTAB-SALDO = SKNKK-UML03. APPEND SALTAB.
      SALTAB-LNUMM = '04'. SALTAB-SALDO = SKNKK-UML04. APPEND SALTAB.
      SALTAB-LNUMM = '05'. SALTAB-SALDO = SKNKK-UML05. APPEND SALTAB.
      SALTAB-LNUMM = '06'. SALTAB-SALDO = SKNKK-UML06. APPEND SALTAB.
      SALTAB-LNUMM = '07'. SALTAB-SALDO = SKNKK-UML07. APPEND SALTAB.
      SALTAB-LNUMM = '08'. SALTAB-SALDO = SKNKK-UML08. APPEND SALTAB.
      SALTAB-LNUMM = '09'. SALTAB-SALDO = SKNKK-UML09. APPEND SALTAB.
      SALTAB-LNUMM = '10'. SALTAB-SALDO = SKNKK-UML10. APPEND SALTAB.
      SALTAB-LNUMM = '11'. SALTAB-SALDO = SKNKK-UML11. APPEND SALTAB.
      SALTAB-LNUMM = '12'. SALTAB-SALDO = SKNKK-UML12. APPEND SALTAB.
      READ TABLE SALTAB INDEX 1.
      RF035-H06SA = SALTAB-SALDO.
      RF035-H06MO = SALTAB-LNUMM.
      RF035-H12SA = SALTAB-SALDO.
      RF035-H12MO = SALTAB-LNUMM.
    ------ SALTAB ---------------------------------------------
      LOOP AT SALTAB.
        IF  SALTAB-SALDO > RF035-H06SA
        AND SY-TABIX     < 7.
          RF035-H06SA = SALTAB-SALDO.
          RF035-H06MO = SALTAB-LNUMM.
        ENDIF.
        IF  SALTAB-SALDO > RF035-H12SA
        AND SY-TABIX     < 13.
          RF035-H12SA = SALTAB-SALDO.
          RF035-H12MO = SALTAB-LNUMM.
        ENDIF.
      ENDLOOP.
    ------ Period--------------------
      REFRESH LT_PERIODS.
      CLEAR LD_COUNTER.
      READ TABLE BUKTAB INDEX 1.
      IF SY-SUBRC = 0.
        READ TABLE GJATAB WITH KEY BUKTAB-PERIV.
        DO GJATAB-MONAT TIMES
           VARYING LD_PERIOD FROM LD_PERIODS(2) NEXT LD_PERIODS+2(2)
                                                     RANGE LD_PERIODS.
          LT_PERIODS-GJAHR  = GJATAB-GJAHR.
          LT_PERIODS-PERIOD = LD_PERIOD.
          LD_COUNTER = LD_COUNTER + 1.
          APPEND LT_PERIODS.
        ENDDO.
        IF LD_COUNTER LT 12.
          LD_GJAHR = GJATAB-GJAHR - 1.
          CLEAR T009Y.
          SELECT SINGLE * FROM T009Y WHERE PERIV = GJATAB-PERIV
                                       AND GJAHR = LD_GJAHR.
          DO GJATAB-ANZBP TIMES
             VARYING LD_PERIOD FROM LD_PERIODS(2) NEXT LD_PERIODS+2(2)
                                                       RANGE LD_PERIODS.
            IF T009Y-ANZBP > 0.
              CHECK SY-INDEX <= T009Y-ANZBP.
            ENDIF.
            LD_COUNTER = LD_COUNTER + 1.
            LT_PERIODS-GJAHR  = LD_GJAHR.
            LT_PERIODS-PERIOD = LD_PERIOD.
            APPEND LT_PERIODS.
          ENDDO.
        ENDIF.
        IF LD_COUNTER LT 12.
          LD_GJAHR = LD_GJAHR - 1.
          DO GJATAB-ANZBP TIMES
             VARYING LD_PERIOD FROM LD_PERIODS(2) NEXT LD_PERIODS+2(2)
                                                       RANGE LD_PERIODS.
            LD_COUNTER = LD_COUNTER + 1.
            LT_PERIODS-GJAHR  = LD_GJAHR.
            LT_PERIODS-PERIOD = LD_PERIOD.
            APPEND LT_PERIODS.
          ENDDO.
        ENDIF.
        SORT LT_PERIODS BY GJAHR ASCENDING PERIOD ASCENDING.
        LD_COUNTER = LD_COUNTER - 12.
        DO LD_COUNTER TIMES.
          DELETE LT_PERIODS INDEX 1.
        ENDDO.
        SORT LT_PERIODS BY GJAHR DESCENDING PERIOD DESCENDING.
        READ TABLE LT_PERIODS INDEX RF035-H06MO.
        RF035-H06MO = LT_PERIODS-PERIOD.
        RF035-H06JA = LT_PERIODS-GJAHR.
        READ TABLE LT_PERIODS INDEX RF035-H12MO.
        RF035-H12MO = LT_PERIODS-PERIOD.
        RF035-H12JA = LT_PERIODS-GJAHR.
      ENDIF.
    **Compute Due Dates fields
      PERFORM GET_AGING_BUCKETS .
      RF035-SFAE1 = SKNKK-SFAE1.
      RF035-SFAE2 = SKNKK-SFAE2.
      RF035-SFAE3 = SKNKK-SFAE3.
      RF035-SFAE4 = SKNKK-SFAE4 .
      RF035-SFAE5 = SKNKK-SFAE5.
    ENDLOOP.
    ENDFORM.                    " GET_BALANCE_SFIELDS
    *&      Form  GET_AGING_BUCKETS
          text
    -->  p1        text
    <--  p2        text
    FORM GET_AGING_BUCKETS .
      DATA: BEGIN OF LT_BUKRS OCCURS 0,
              BUKRS LIKE T001-BUKRS,
            END OF LT_BUKRS.
      DATA: BEGIN OF LT_BUKTAB OCCURS 0,
              BUKRS LIKE T001-BUKRS,
              WAERS LIKE T001-WAERS,
              KKBER LIKE T014-KKBER,
            END OF LT_BUKTAB.
      DATA: LD_LINES LIKE SY-TABIX.
    *...performance optimization: for more than one company codes check....*
    *...if balances exist and avoid selection of open items, if they don't.*
    *...exist..............................................................*
      REFRESH LT_BUKRS.
      REFRESH LT_BUKTAB.
      DESCRIBE TABLE BUKTAB LINES LD_LINES.
      IF LD_LINES GT 1.
        SELECT DISTINCT BUKRS APPENDING CORRESPONDING FIELDS
                                        OF TABLE LT_BUKRS
                              FROM KNC1 FOR ALL ENTRIES IN BUKTAB
                        WHERE BUKRS = BUKTAB-BUKRS AND
                              KUNNR = Sknkk-KUNNR.
        SELECT DISTINCT BUKRS APPENDING CORRESPONDING FIELDS
                                        OF TABLE LT_BUKRS
                              FROM KNC3 FOR ALL ENTRIES IN BUKTAB
                        WHERE BUKRS = BUKTAB-BUKRS AND
                              KUNNR = Sknkk-KUNNR.
        SORT LT_BUKRS.
        DELETE ADJACENT DUPLICATES FROM LT_BUKRS.
        LOOP AT LT_BUKRS.
          LOOP AT BUKTAB WHERE BUKRS = LT_BUKRS-BUKRS.
            MOVE-CORRESPONDING BUKTAB TO LT_BUKTAB.
            APPEND LT_BUKTAB.
          ENDLOOP.
        ENDLOOP.
      ELSE.
        READ TABLE BUKTAB INDEX 1.
        MOVE-CORRESPONDING BUKTAB TO LT_BUKTAB.
        APPEND LT_BUKTAB.
      ENDIF.
    *...process company codes for customer given by interface..........*
      LOOP AT LT_BUKTAB WHERE KKBER = s_cinfo-KKBER.
        CALL FUNCTION  'CUSTOMER_DUE_DATE_ANALYSIS'
             EXPORTING  BUKRS   = LT_BUKTAB-BUKRS
                       KKBER   = ' '
                        KKBER   = s_cinfo-KKBER
                        KUNNR   = Sknkk-KUNNR
                        RASID   = RASID
             IMPORTING  SFAE1   = RF035-SFAE1
                        SFAE2   = RF035-SFAE2
                        SFAE3   = RF035-SFAE3
                        SFAE4   = RF035-SFAE4
                        SFAE5   = RF035-SFAE5
                        SFAEL   = RF035-SFAEL
             EXCEPTIONS NO_OPEN_ITEMS = 4.
        IF SY-SUBRC = 0.
    *--  RF035 -
          SKNKK-SFAE1 = SKNKK-SFAE1 + RF035-SFAE1.
          SKNKK-SFAE2 = SKNKK-SFAE2 + RF035-SFAE2.
          SKNKK-SFAE3 = SKNKK-SFAE3 + RF035-SFAE3.
          SKNKK-SFAE4 = SKNKK-SFAE4 + RF035-SFAE4.
          SKNKK-SFAE5 = SKNKK-SFAE5 + RF035-SFAE5.
          SKNKK-SFAE5 = SKNKK-SFAE5 + RF035-SFAE5.
          SKNKK-SFAEL = SKNKK-SFAEL + RF035-SFAEL.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " GET_AGING_BUCKETS
    *&      Form  header
    This Subroutine gets data for displaying title                     *
    There are no interface parameters to be passed to this subroutine. *
    FORM header .
      wa_final-string = text-000.  APPEND wa_final TO i_final.
      wa_final-string = text-001.  APPEND wa_final TO i_final.
      wa_final-string = text-002.  APPEND wa_final TO i_final.
      wa_final-string = text-003.  APPEND wa_final TO i_final.
      wa_final-string = text-004.  APPEND wa_final TO i_final.
      wa_final-string = text-005.  APPEND wa_final TO i_final.
      wa_final-string = text-006.  APPEND wa_final TO i_final.
      wa_final-string = text-007.  APPEND wa_final TO i_final.
      wa_final-string = text-008.  APPEND wa_final TO i_final.
      wa_final-string = text-009.  APPEND wa_final TO i_final.
      wa_final-string = text-010.  APPEND wa_final TO i_final.
      wa_final-string = text-011.  APPEND wa_final TO i_final.
      wa_final-string = text-012.  APPEND wa_final TO i_final.
      wa_final-string = text-013.  APPEND wa_final TO i_final.
      wa_final-string = text-014.  APPEND wa_final TO i_final.
      wa_final-string = text-015.  APPEND wa_final TO i_final.
      wa_final-string = text-016.  APPEND wa_final TO i_final.
      wa_final-string = text-017.  APPEND wa_final TO i_final.
      wa_final-string = text-018.  APPEND wa_final TO i_final.
      wa_final-string = text-019.  APPEND wa_final TO i_final.
      wa_final-string = text-020.  APPEND wa_final TO i_final.
      wa_final-string = text-021.  APPEND wa_final TO i_final.
      wa_final-string = text-022.  APPEND wa_final TO i_final.
      wa_final-string = text-023.  APPEND wa_final TO i_final.
      wa_final-string = text-024.  APPEND wa_final TO i_final.
    ENDFORM.                               " header
    *&      Form  DOWNLOADCREDITDATA
          text
         -->P_P_PATH  text
    FORM DOWNLOADCREDITDATA  USING P_PATH.
      DATA:
          lw_file2 TYPE string .           " File Path
      lw_file2 = p_PATH.
      CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
      BIN_FILESIZE                    = BIN_FILESIZE
           filename                        = lw_file2
           filetype                        = 'DBF'
      APPEND                          = ' '
       write_field_separator           = ' '
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = 'X'
      WRITE_LF                        = 'X'
       COL_SELECT                      = 'X'
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = 'X'
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = '0'
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
    IMPORTING
      FILELENGTH                      = FILELENGTH
         TABLES
           data_tab                        = I_CINFO
           fieldnames                      = i_final
         EXCEPTIONS
           file_write_error                = 1
           no_batch                        = 2
           gui_refuse_filetransfer         = 3
           invalid_type                    = 4
           no_authority                    = 5
           unknown_error                   = 6
           header_not_allowed              = 7
           separator_not_allowed           = 8
           filesize_not_allowed            = 9
           header_too_long                 = 10
           dp_error_create                 = 11
           dp_error_send                   = 12
           dp_error_write                  = 13
           unknown_dp_error                = 14
           access_denied                   = 15
           dp_out_of_memory                = 16
           disk_full                       = 17
           dp_timeout                      = 18
           file_not_found                  = 19
           dataprovider_exception          = 20
           control_flush_error             = 21
      IF sy-subrc <> 0.
    Messege
      ENDIF.                               " IF sy-subrc EQ 0
    ENDFORM.                    " DOWNLOADCREDITDATA
    *&      Form  DOWNLOAD_CREDIT_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM DOWNLOAD_CREDIT_DATA .
      PERFORM HEADER.
      PERFORM DOWNLOADCREDITDATA USING P_PATH.
    ENDFORM.                    " DOWNLOAD_CREDIT_DATA
    *&      Form  GET_PGRESS_INDICATOR
          text
         -->P_L_TEXT  text
         -->P_L_PCT  text
    FORM GET_PGRESS_INDICATOR  USING    L_TEXT
                                        L_PCT.
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          PERCENTAGE = l_pct
          TEXT       = l_TEXT.
    ENDFORM.                    " GET_PGRESS_INDICATOR

    If you are just Downloading to a Flat file then why dont you have logic in place for the program to dump the data read into  the file to that point depending on any criteria like accounts or customer then clear the internal table and run it in the back ground.
    try to use cursor to read the records from the table which will make it a bit more efficient than plain select stement.

  • Time out exception

    Hi, I have to modify a report because it takes a lot of time to get some records in a select sentence, and finally i always get a time out dump. I think i should use function SAPGUI_PROGRESS_INDICATOR when the program arrives to that select but i don't know hopw to use it...
    this is part of the code i have..
      SELECT aufnr
             werks
             budat ltxa1 rueck rmzhl ismnw ismne aufnr
             learr pernr
      FROM afru
      INTO TABLE it_afru FOR ALL ENTRIES IN it_csla
      WHERE learr = it_csla-lstar AND
            stokz <> gc_marca AND
            budat IN s_budat AND
            stzhl = gc_stzhl_cero AND
            pernr IN s_pernr.
    at this point, the program doesn't go on, so i tried the following but don't know if it's ok or not...
      data: lw_lineas type i.
      DESCRIBE TABLE it_csla LINES lw_lineas.
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          percentage = lw_lineas
          text       = 'Tratando datos AFRU'.
      SELECT aufnr
             werks
             budat ltxa1 rueck rmzhl ismnw ismne aufnr
             learr pernr
      FROM afru
      INTO TABLE it_afru FOR ALL ENTRIES IN it_csla
      WHERE learr = it_csla-lstar AND
            stokz <> gc_marca AND
            budat IN s_budat AND
            stzhl = gc_stzhl_cero AND
            pernr IN s_pernr.
    thanks in advance !!!

    try the following change..
    SELECT aufnr
    werks
    budat ltxa1 rueck rmzhl ismnw ismne aufnr
    learr pernr
    FROM afru
    INTO TABLE it_afru FOR ALL ENTRIES IN it_csla
    WHERE learr = it_csla-lstar AND
    budat IN s_budat AND
    stzhl = gc_stzhl_cero.
    delete it_afru  where stokz ne gc_marca.
    delete it_afru where not pernr in s_pernr.
    ~Suresh

  • SSAS Date Parameter times out

    Environment: We are running SQL Server 2012 Standard Edition with Analysis Services.  Reporting Services on a separate machine. Visual Studio 2010. 
    I have a Date dimension with a generated table named Time.  To the table I have added custom columns to show Week_Ending and Short_Date_Alpha that are used in Excel Reports from the Analysis Services Cubes.
    When I attempt to use this dimension in Reporting Services, it times out if I try to use it as a parameter.  The report will run for 30 minutes, never surface the parameter selection box and then eventually time-out with an unknown error related to
    the time dimension.  This is in Visual Studio. 
    If I pull the dimension directly from the SQL table I can produce a report on it.  If I run the full query for the measures with the default date selected it runs in seconds in the query builder.    Here are 10 rows of the relevant
    table structure:
    PK_Date Date_Name Reporting_Year Reporting_Year_Name Reporting_Month Reporting_Month_Name Reporting_Week Reporting_Week_Name Reporting_Day Reporting_Day_Name Short_Date_Alpha End_of_Week_Name Week_Ending WorkDay
    2008-01-01 00:00:00.000 Tuesday, January 01 2008 2007-01-07 00:00:00.000 2007 2007-12-02 00:00:00.000 Rpt Dec 2007 2007-12-30 00:00:00.000 Reporting Week 52, 2007 2008-01-01 00:00:00.000 Tuesday, January 01 2008 Jan 
    1 2008  WE 01/07/08 2008-01-07 00:00:00.000 1
    2008-01-02 00:00:00.000 Wednesday, January 02 2008 2007-01-07 00:00:00.000 2007 2007-12-02 00:00:00.000 Rpt Dec 2007 2007-12-30 00:00:00.000 Reporting Week 52, 2007 2008-01-02 00:00:00.000 Wednesday, January 02 2008 Jan 
    2 2008  WE 01/07/08 2008-01-07 00:00:00.000 1
    2008-01-03 00:00:00.000 Thursday, January 03 2008 2007-01-07 00:00:00.000 2007 2007-12-02 00:00:00.000 Rpt Dec 2007 2007-12-30 00:00:00.000 Reporting Week 52, 2007 2008-01-03 00:00:00.000 Thursday, January 03 2008 Jan 
    3 2008  WE 01/07/08 2008-01-07 00:00:00.000 1
    2008-01-04 00:00:00.000 Friday, January 04 2008 2007-01-07 00:00:00.000 2007 2007-12-02 00:00:00.000 Rpt Dec 2007 2007-12-30 00:00:00.000 Reporting Week 52, 2007 2008-01-04 00:00:00.000 Friday, January 04 2008 Jan 
    4 2008  WE 01/07/08 2008-01-07 00:00:00.000 1
    2008-01-10 00:00:00.000 Thursday, January 10 2008 2008-01-06 00:00:00.000 2008 2008-01-06 00:00:00.000 Rpt Jan 2008 2008-01-06 00:00:00.000 Reporting Week 1, 2008 2008-01-10 00:00:00.000 Thursday, January 10 2008 Jan
    10 2008  WE 01/12/08 2008-01-12 00:00:00.000 1
    2008-01-11 00:00:00.000 Friday, January 11 2008 2008-01-06 00:00:00.000 2008 2008-01-06 00:00:00.000 Rpt Jan 2008 2008-01-06 00:00:00.000 Reporting Week 1, 2008 2008-01-11 00:00:00.000 Friday, January 11 2008 Jan
    11 2008  WE 01/12/08 2008-01-12 00:00:00.000 1
    2008-01-12 00:00:00.000 Saturday, January 12 2008 2008-01-06 00:00:00.000 2008 2008-01-06 00:00:00.000 Rpt Jan 2008 2008-01-06 00:00:00.000 Reporting Week 1, 2008 2008-01-12 00:00:00.000 Saturday, January 12 2008 Jan
    12 2008  WE 01/12/08 2008-01-12 00:00:00.000 0
    2008-01-13 00:00:00.000 Sunday, January 13 2008 2008-01-06 00:00:00.000 2008 2008-01-06 00:00:00.000 Rpt Jan 2008 2008-01-13 00:00:00.000 Reporting Week 2, 2008 2008-01-13 00:00:00.000 Sunday, January 13 2008 Jan
    13 2008  WE 01/19/08 2008-01-19 00:00:00.000 0
    2008-01-19 00:00:00.000 Saturday, January 19 2008 2008-01-06 00:00:00.000 2008 2008-01-06 00:00:00.000 Rpt Jan 2008 2008-01-13 00:00:00.000 Reporting Week 2, 2008 2008-01-19 00:00:00.000 Saturday, January 19 2008 Jan
    19 2008  WE 01/19/08 2008-01-19 00:00:00.000 0
    2008-01-20 00:00:00.000 Sunday, January 20 2008 2008-01-06 00:00:00.000 2008 2008-01-06 00:00:00.000 Rpt Jan 2008 2008-01-20 00:00:00.000 Reporting Week 3, 2008 2008-01-20 00:00:00.000 Sunday, January 20 2008 Jan
    20 2008  WE 01/26/08 2008-01-26 00:00:00.000 0
    The dimension looks fine when I browse it.   It produces the correct information in the Excel Reports, but I cannot get it to work in Reporting Services.  
    I have deleted dates out of the cubes and processed, then added the Time dimension back in and processed and it still won't work.   I have a cube running off a table called Date and that seems to work. 
    Is the issue with the table name?  With the custom descriptions?   Something else? 

    How would you best suggest limiting the time frame?   Add a filter to the query so that the future dates are not part of the selection?   I'm doing some data refresh in the data mart so won't be able to try limiting the selection
    for a few hours. 
    Hi Diane,
    Could you please let us know how many available values for your date parameter(the quantity of date dimension in SSAS)? One workaround that we can try to add an additional text parameter which will prefilter the available values in the large parameter list.
    Here is similar thread about this topic for your reference, please see:
    http://dataqueen.unlimitedviz.com/2012/02/filter-a-parameter-with-long-list-of-values-using-type-ahead/
    Regards,
    Elvis Long
    TechNet Community Support

  • HTTP time out Error in BPM.....

    Hi
    Error Description:
    We have created a Sync-Async Bridge BPM scenario in XI.
    In the BPM scenario we are calling the web service, and if the response from the web service is an error message then we have retry in a loop up to 24 times after wait for every 1 min.
    We are sending the data to the web service using a proxy created in the R/3 system.
    We are getting the time out error in the R/3 system. 
    We have changed the following parameters in XI.
    In SXMB_ADM of XI we have set the value for the following parameter.
    Category                      parameter                                                                    current value
    SA_COMM                    CHECK_FOR_ASYNC_RESPONSE_TIMEOUT                120
    In SXMB_ADM of R/3 we have set the value for the following parameter.
    Category                      parameter                                                                    current value
    RUNTIME                      HTTP_TIMEOUT                                                            120
    When we put the value as 120 for the above parameters and we try for 2 times in the BPM process, then it is sending the response back to the R/3 system after completing the whole BPM process.
    But when we increase the no of retries in the BPM process then it is not sending the response back to the R/3 system in the same way, at that time we are getting the error in SXMB_MONI of R/3 system as given below.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    -   <!--
        Inbound Message
      -->
    - <SAP:ErrorHeader xmlns:SAP="http://sap.com/exchange/MessageFormat">
      <SAP:Context />
      <SAP:Code p1="500" p2="Timeout" p3="" p4="">HTTP.HTTP_STATUS_CODE_NEQ_OK</SAP:Code>
      <SAP:Text language="EN">HTTP status code 500 : Timeout</SAP:Text>
      </SAP:ErrorHeader>
    Please provide the solution for the same.
    Many Thanks
    Rinku Gangwani

    Hi Prateek,
    Thanks for your replay. I am able to open the URL from XI/PI.
    I tried by testing the same URL by using XI 3.0, its working fine and i am getting required data, but in PI 7.1 i am getting an error.
    Error is:
    In MONI:
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.net.ConnectException: Connection refused: connect
    In RWB:
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.net.ConnectException: Connection timed out: connect
    What could be the reason?
    Regards,
    Venu

  • Time out error in report - Urgent

    Hi Gurus,
       Am developing the report for GL Account summary from tables bkpf, bseg. Due to lot of records in production server it is coming time out error. Please help me regarding this here am attaching my code.
    REPORT ZFBLREPORT.
    *TABLES : zgltax.
    TYPE-POOLS : SLIS.
    TYPES : BEGIN OF TY_ZGLTAX,
            ZGL TYPE BSEG-HKONT,
            ZTAX1 TYPE P DECIMALS 2,
            ZTAX2 TYPE P DECIMALS 2,
            CAMOUNT TYPE RF42B-SALDO,
            PAMOUNT TYPE RF42B-SALDO,
            TCAMOUNT TYPE RF42B-SALDO,
            TPAMOUNT TYPE RF42B-SALDO,
            END OF TY_ZGLTAX.
    TYPES : BEGIN OF TY_BKPF,
            BELNR TYPE BKPF-BELNR,
            BUDAT TYPE BKPF-BUDAT,
            END OF TY_BKPF.
    TYPES : BEGIN OF TY_BSEG,
            BELNR TYPE BSIS-BELNR,
            DMBTR TYPE BSIS-DMBTR,
            SHKZG TYPE BSIS-SHKZG,
            HKONT TYPE BSIS-HKONT,
            BUDAT TYPE BSIS-BUDAT,
            BUZEI TYPE BSIS-BUZEI,
            END OF TY_BSEG.
    DATA : IT_FINAL TYPE STANDARD TABLE OF TY_ZGLTAX,
           WA_FINAL TYPE TY_ZGLTAX.
    DATA : IT_BKPF TYPE STANDARD TABLE OF TY_BKPF,
           WA_BKPF TYPE TY_BKPF.
    DATA : IT_BSEG TYPE STANDARD TABLE OF TY_BSEG,
           WA_BSEG TYPE TY_BSEG.
    DATA: CAMOUNT TYPE RF42B-SALDO,
          PAMOUNT TYPE RF42B-SALDO.
    DATA : INDEX TYPE SY-INDEX.
    DATA : ID TYPE SY-TABIX.
    DATA : START_DATE TYPE SY-DATUM.
    DATA : END_DATE TYPE SY-DATUM.
    DATA : START_QUATER TYPE SY-DATUM.
    DATA : YEAR1(4) TYPE C.
    DATA       : T_FIELDALV     TYPE SLIS_T_FIELDCAT_ALV.
    DATA       : IMPORT_VARIANT LIKE DISVARIANT.
    DATA       : XREPID         LIKE SY-REPID.
    DATA       : LAYOUT         TYPE SLIS_LAYOUT_ALV.
    SELECTION-SCREEN BEGIN OF BLOCK BK1 WITH FRAME TITLE TEXT-001.
    PARAMETER : P_PERIOD(1) TYPE C OBLIGATORY,
                P_YEAR(4) TYPE C OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK BK1.
    AT SELECTION-SCREEN ON P_PERIOD.
      IF P_PERIOD > '4' OR P_PERIOD < '1'.
        P_PERIOD = ''.
        MESSAGE 'Enter Correct Quater Period' TYPE 'E'.
      ENDIF.
    START-OF-SELECTION.
      PERFORM CALC_DATE.
      PERFORM BUILD_LOGIC.
      PERFORM INITIAL_ALV_FIELDCAT CHANGING T_FIELDALV[].
      PERFORM LAYOUT.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM     = SY-REPID
          I_GRID_TITLE           = 'FBT Report'
         i_callback_top_of_page = 'FORM_TOP_PAGE'
         it_sort                = p_sort
          IS_LAYOUT              = LAYOUT
          IT_FIELDCAT            = T_FIELDALV[]
          I_SAVE                 = 'A'
        TABLES
          T_OUTTAB               = IT_FINAL.
    *&      Form  calc_date
          text
    -->  p1        text
    <--  p2        text
    FORM CALC_DATE .
      IF P_PERIOD = '1'.
        CONCATENATE P_YEAR '04' '01' INTO START_DATE.
        CONCATENATE P_YEAR '04' '01' INTO START_QUATER.
        CONCATENATE P_YEAR '06' '30' INTO END_DATE.
      ELSEIF P_PERIOD = '2'.
        CONCATENATE P_YEAR '04' '01' INTO START_DATE.
        CONCATENATE P_YEAR '07' '01' INTO START_QUATER.
        CONCATENATE P_YEAR '09' '30' INTO END_DATE.
      ELSEIF P_PERIOD = '3'.
        CONCATENATE P_YEAR '04' '01' INTO START_DATE.
        CONCATENATE P_YEAR '10' '01' INTO START_QUATER.
        CONCATENATE P_YEAR '12' '31' INTO END_DATE.
      ELSEIF P_PERIOD = '4'.
        CONCATENATE P_YEAR '04' '01' INTO START_DATE.
        YEAR1 = P_YEAR + 1.
        CONCATENATE YEAR1 '01' '01' INTO START_QUATER.
        CONCATENATE YEAR1 '03' '31' INTO END_DATE.
      ENDIF.
    ENDFORM.                    " calc_date
    *&      Form  build_logic
          text
    -->  p1        text
    <--  p2        text
    FORM BUILD_LOGIC .
      SELECT * FROM ZGLTAX INTO CORRESPONDING FIELDS OF TABLE IT_FINAL.
      IF IT_FINAL[] IS NOT INITIAL.
        LOOP AT IT_FINAL INTO WA_FINAL.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              INPUT  = WA_FINAL-ZGL
            IMPORTING
              OUTPUT = WA_FINAL-ZGL.
          INDEX = SY-TABIX.
           SELECT belnr dmbtr shkzg hkont budat buzei
          SELECT *
          FROM BSIS
          INTO CORRESPONDING FIELDS OF TABLE IT_BSEG
          WHERE
          BUKRS = '3599' AND
             HKONT = WA_FINAL-ZGL
            AND GJAHR = P_YEAR.
    Uses primary index (4.7)
          SELECT *
          FROM BSAS
          APPENDING CORRESPONDING FIELDS OF TABLE IT_BSEG
          WHERE
          BUKRS = '3599' AND
            HKONT = WA_FINAL-ZGL
            AND GJAHR = P_YEAR.
          LOOP AT IT_BSEG INTO WA_BSEG .
            IF WA_BSEG-BUDAT >= START_DATE AND WA_BSEG-BUDAT <= END_DATE.
              IF WA_BSEG-SHKZG = 'S'.
                CAMOUNT = CAMOUNT - WA_BSEG-DMBTR.
              ELSEIF WA_BSEG-SHKZG = 'H'.
                CAMOUNT = CAMOUNT + WA_BSEG-DMBTR.
              ENDIF.
            ENDIF.
            IF WA_BSEG-BUDAT >= START_QUATER AND WA_BSEG-BUDAT <= END_DATE.
              IF WA_BSEG-SHKZG = 'S'.
                PAMOUNT = PAMOUNT - WA_BSEG-DMBTR.
              ELSEIF WA_BSEG-SHKZG = 'H'.
                PAMOUNT = PAMOUNT + WA_BSEG-DMBTR.
              ENDIF.
            ENDIF.
          ENDLOOP.
          WA_FINAL-CAMOUNT = CAMOUNT.
          WA_FINAL-PAMOUNT = PAMOUNT.
          WA_FINAL-TCAMOUNT = CAMOUNT * WA_FINAL-ZTAX1 * WA_FINAL-ZTAX2 / (
    100 * 100 ).
          WA_FINAL-TPAMOUNT = PAMOUNT * WA_FINAL-ZTAX1 * WA_FINAL-ZTAX2 / (
    100 * 100 ).
          MODIFY IT_FINAL FROM WA_FINAL INDEX INDEX.
          REFRESH IT_BSEG.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " build_logic
    *&      Form  layout
          text
    FORM LAYOUT .
      LAYOUT-NO_SUBTOTALS = ' '.
    ENDFORM.                    " LAYOUT
    *&      Form  initial_alv_fieldcat
          text
         -->FIELDCAT   text
    FORM INITIAL_ALV_FIELDCAT  CHANGING FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
      DATA  : LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
      DATA  : CNTR TYPE I VALUE 1.
      CLEAR LS_FIELDCAT.
      CNTR = CNTR + 1.
      LS_FIELDCAT-COL_POS = CNTR.
      LS_FIELDCAT-FIELDNAME = 'ZGL'.
      LS_FIELDCAT-SELTEXT_L = 'GL A/C NO'.
      LS_FIELDCAT-OUTPUTLEN = 15.
      APPEND LS_FIELDCAT TO FIELDCAT.
      CLEAR LS_FIELDCAT.
      CNTR = CNTR + 1.
      LS_FIELDCAT-COL_POS = CNTR.
      LS_FIELDCAT-FIELDNAME = 'ZTAX1'.
      LS_FIELDCAT-SELTEXT_L = 'BASE TAX  PERCENTAGE'.
      LS_FIELDCAT-OUTPUTLEN = 15.
      APPEND LS_FIELDCAT TO FIELDCAT.
      CLEAR LS_FIELDCAT.
      CNTR = CNTR + 1.
      LS_FIELDCAT-COL_POS = CNTR.
      LS_FIELDCAT-FIELDNAME = 'ZTAX2'.
      LS_FIELDCAT-SELTEXT_L = 'TAX PERCENTAGE'.
      LS_FIELDCAT-OUTPUTLEN = 15.
      APPEND LS_FIELDCAT TO FIELDCAT.
      CLEAR LS_FIELDCAT.
      CNTR = CNTR + 1.
      LS_FIELDCAT-COL_POS = CNTR.
      LS_FIELDCAT-FIELDNAME = 'CAMOUNT'.
      LS_FIELDCAT-SELTEXT_L = 'CUMULATIVE AMOUNT'.
      LS_FIELDCAT-OUTPUTLEN = 20.
      APPEND LS_FIELDCAT TO FIELDCAT.
      CLEAR LS_FIELDCAT.
      CNTR = CNTR + 1.
      LS_FIELDCAT-COL_POS = CNTR.
      LS_FIELDCAT-FIELDNAME = 'TCAMOUNT'.
      LS_FIELDCAT-SELTEXT_L = 'Cumulative Tax % Amount'.
      LS_FIELDCAT-OUTPUTLEN = 20.
      APPEND LS_FIELDCAT TO FIELDCAT.
      CLEAR LS_FIELDCAT.
      CNTR = CNTR + 1.
      LS_FIELDCAT-COL_POS = CNTR.
      LS_FIELDCAT-FIELDNAME = 'PAMOUNT'.
      LS_FIELDCAT-SELTEXT_L = 'AMOUNT FOR PERIOD'.
      LS_FIELDCAT-OUTPUTLEN = 20.
      APPEND LS_FIELDCAT TO FIELDCAT.
      CLEAR LS_FIELDCAT.
      CNTR = CNTR + 1.
      LS_FIELDCAT-COL_POS = CNTR.
      LS_FIELDCAT-FIELDNAME = 'TPAMOUNT'.
      LS_FIELDCAT-SELTEXT_L = 'Tax AMOUNT FOR PERIOD'.
      LS_FIELDCAT-OUTPUTLEN = 20.
      APPEND LS_FIELDCAT TO FIELDCAT.
    ENDFORM.                    "initial_alv_fieldcat
    Points will be awarded
    Regards
    Ravi

    Hi Ravi kanth,
    You are using select * statement which is very time consuming and low performance. Dont use select * instead use select field1 field2.... into table itab  where field1 = s_field.  Use corresponding field names in the select statement.
    Follow the below rules.
    1) Dont use nested select statements
    2) If possible use for all entries in addition
    3) In the where addition make sure you give all the primary key
    4) Use Index for the selection criteria.
    5) You can also use inner joins
    6) You can try to put the data from the first select statement into an Itab and then in order to select the data from the second table use for all entries in.
    7) Use the runtime analysis SE30 and SQL Trace (ST05) to identify the performance and also to identify where the load is heavy, so that you can change the code accordingly
    <b>reward if useful</b>.
    Regards,
    sunil kairam.

  • Time out error in BI portal.

    Hello All,
    When I am executing a report in BI portal, it is throwing time out error. Please find the below error.
    500 Connection timed out
    Error: -5
    Version: 7000
    Component: ICM
    Date/Time: Thu Apr 8 03:08:22 2010 
    Module: icxxthr_mt.c
    Line: 2698
    Server: sapb6pv-n2__00
    Error Tag: {-}
    Detail: Connection to partner timed out after 600s
    It is also throwing a Short dump in BI system.Please find the below message in ST22.
    Runtime Errors         TIME_OUT
    Date and Time          04/08/2010 03:04:54
    Short text
         Time limit exceeded.
    What happened?
         The program "CL_RSDR_AT_QUERY==============CP" has exceeded the maximum
          permitted runtime without
         interruption and has therefore been terminated.
    This issue is of High priority, can some body guide me what could be the reason

    There is only one reason for this...you have selected a huge volume of data.
    please try to run the report for fewer data sets. May be restrict your varaible. I\m sure yoiu wont be timed out.

  • Time Out - ODS to ODS

    Hi Experts,
    I am loading data from one ODs C1 to another ODs C2 with routines written in between these 2. loading of data works fine in dev but gives a dump : time out in quality ....
    Runtime Errors         TIME_OUT
    Date and Time          08.04.2008 09:41:12
    Short text
         Time limit exceeded.
    What happened?
         The program "GP4993111HUC1PPLV19LJVF0F7O" has exceeded the maximum permitted
          runtime without
         interruption and has therefore been terminated.
    What can you do?
         Note down which actions and inputs caused the error.
         To process the problem further, contact you SAP system
         administrator.
         Using Transaction ST22 for ABAP Dump Analysis, you can look
         at and manage termination messages, and you can also
         keep them for a long time.
    Error analysis
        After a specific time, the program is terminated to make the work area
        available to other users who may be waiting.
        This is to prevent a work area being blocked unnecessarily long by, for
        example:
        - Endless loops (DO, WHILE, ...),
        - Database accesses with a large result set
        - Database accesses without a suitable index (full table scan)
        The maximum runtime of a program is limited by the system profile
        parameter "rdisp/max_wprun_time". The current setting is 600 seconds. If this
         time limit is
        exceeded, the system attempts to cancel any running SQL statement or
        signals the ABAP processor to stop the running program. Then the system
        waits another 60 seconds maximum. If the program is then still active,
        the work process is restarted.
    How to correct the error
        Programs with long runtime should generally be started as background
        jobs. If this is not possible, you can increase the system profile
        parameter "rdisp/max_wprun_time".
        Depending on the cause of the error, you may have to take one of the
        following measures:
        - Endless loop: Correct program;
        - Dataset resulting from database access is too large:
          Instead of "SELECT * ... ENDSELECT", use "SELECT * INTO internal table
          (for example);
        - Database has unsuitable index: Check index generation.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "TIME_OUT" " "
        "GP4993111HUC1PPLV19LJVF0F7O" or "GP4993111HUC1PPLV19LJVF0F7O"
        "R0011_A_CLINVDT"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
         Display the system log by calling transaction SM21.
         Restrict the time interval to 10 minutes before and five minutes
      after the short dump. Then choose "System->List->Save->Local File
      (Unconverted)".
      3. If the problem occurs in a problem of your own or a modified SAP
      program: The source code of the program
         In the editor, choose "Utilities->More
      Utilities->Upload/Download->Download".
      4. Details about the conditions under which the error occurred or which
      actions and input led to the error.
    How to solve this error???
    Regards,
    Vaishnavi

    Hi Vaishnavi,
    The error itself provided u the required solutions to retify it.
    How to correct the error
    Programs with long runtime should generally be started as background
    jobs. If this is not possible, you can increase the system profile
    parameter "rdisp/max_wprun_time".
    Depending on the cause of the error, you may have to take one of the
    following measures:
    - Endless loop: Correct program;
    - Dataset resulting from database access is too large:
    *Instead of "SELECT * ... ENDSELECT", use "SELECT * INTO internal table*
    (for example);
    - Database has unsuitable index: Check index generation.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "TIME_OUT" " "
    "GP4993111HUC1PPLV19LJVF0F7O" or "GP4993111HUC1PPLV19LJVF0F7O"
    "R0011_A_CLINVDT"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    you can try any of these methods.
    Regards,
    Rajkandula

  • Shortdump "time out"

    Hi,
    Info package in process chain is failing frequently with short dump "time out" and in tRFC screen it is showing "time limit exceeded" in ECC side.In process monitor screen the status is in yellow color and except against update rule which is in yellow color the remaining logs are in green.
    we are able to resolve the issue by manually updating it from PSA to data target and the job is successfully completed
    But i want to know the root cause and permanent solution for the same as this request is pending for long time.
    I have gone thru the dump but unable to understand exactly what is wrong can anyone analyze the dump and if able to find something which will be helpful for further investigation.
    Runtime Errors         TIME_OUT
    Date and Time          03.01.2011 13:09:44
    Short text                                                                               
    Time limit exceeded.                                                                         
    What happened?                                                                               
    The program "GPD7FEBPRVETDI8T875G0E2QJ8U" has exceeded the maximum permitted                 
         runtime without                                                                               
    interruption and has therefore been terminated.                                              
        The maximum runtime of a program is limited by the system profile                            
        parameter "rdisp/max_wprun_time". The current setting is 600 seconds. If this                
         time limit is                                                                               
    exceeded, the system attempts to cancel any running SQL statement or                         
        signals the ABAP processor to stop the running program. Then the system                      
        waits another 60 seconds maximum. If the program is then still active,                       
        the work process is restarted.                                                                               
    Memory consumption                                                                               
    Roll.... 16192                                                                               
    EM...... 83796800                                                                               
    Heap.... 0                                                                               
    Page.... 1630208                                                                               
    MM Used. 36948064                                                                               
    MM Free. 756080

    continuation of the dump
    Source Code Extract                                                                               |
    Line
    SourceCde
    1621
    ENDIF.
    1622
    1623
    ENDFORM.  "ERROR_END
    1624
    1625
    1626
    1627
    1628
    1629
    *else.
    1630
    1631
    routine no.: 0001
    1632
    1633
    FORM routine_0001
    1634
    CHANGING
    1635
    result         TYPE g_s_hashed_cube-/BIC/ZCNOTCRTD
    1636
    returncode     LIKE sy-subrc
    1637
    c_t_idocstate  TYPE rsarr_t_idocstate
    1638
    c_subrc        LIKE sy-subrc
    1639
    c_abort        LIKE sy-subrc.                           "#EC *
    1640
    DATA:
    1641
    l_t_rsmondata LIKE rsmonview OCCURS 0 WITH HEADER LINE. "#EC *
    1642
    1643
    TRY.
    1644
    init variables
    1645
    MOVE-CORRESPONDING g_s_is TO comm_structure.
    1646
    1647
    fill the internal table "MONITOR", to make monitor entries
    1648
    1649
    result value of the routine
    1650
    >>>>>
    SELECT *
    1652
    FROM /BI0/PNOTIFICATN INTO WA_NOTIF
    1653
    WHERE /BIC/ZCWFMORD = COMM_STRUCTURE-CS_ORDER AND
    1654
    OBJVERS = 'A'.
    1655
    ENDSELECT.
    1656
    1657
    IF SY-SUBRC = 0.
    1658
    RESULT = WA_NOTIF-CREATEDON.
    1659
    ENDIF.
    1660
    1661
    if abort is not equal zero, the update process will be canceled
    1662
    ABORT = 0.
    1663
    1664
    CATCH cx_sy_arithmetic_error.
    1665
    sy-subrc = 10.
    1666
    CATCH cx_sy_conversion_error.
    1667
    sy-subrc = 9.
    1668
    catch cx_foev_error_in_function.
    1669
    perform error_message using 'RSAU' 'E' '510'
    1670
    'ROUTINE_0001' g_s_is-recno
    Contents of system fields
    Name
    Val.
    SY-SUBRC
    0
    SY-INDEX
    1
    SY-TABIX
    0
    SY-DBCNT
    1
    SY-FDPOS
    0
    SY-LSIND
    0
    SY-PAGNO
    0
    SY-LINNO
    1
    SY-COLNO
    1
    SY-PFKEY
    0400
    SY-UCOMM
    SY-TITLE
    Monitor - Administrator Workbench
    SY-MSGTY
    SY-MSGID
    SY-MSGNO
    000
    SY-MSGV1
    SY-MSGV2
    SY-MSGV3
    SY-MSGV4
    SY-MODNO
    1
    SY-DATUM
    20110103
    SY-UZEIT
    125946
    SY-XPROG
    SAPLSBAL_DB
    SY-XFORM
    XAB_READ
    Active Calls/Events
    No.   Ty.          Program                             Include                             Line
    Name
    24 FORM         GPD7FEBPRVETDI8T875G0E2QJ8U         GPD7FEBPRVETDI8T875G0E2QJ8U          1651
    ROUTINE_0001
    23 FORM         GPD7FEBPRVETDI8T875G0E2QJ8U         GPD7FEBPRVETDI8T875G0E2QJ8U          8769
    R0094_ZCNOTCRTD
    22 FORM         GPD7FEBPRVETDI8T875G0E2QJ8U         GPD7FEBPRVETDI8T875G0E2QJ8U          1112
    UPDATE_INFOCUBE
    21 FUNCTION     SAPLRSAU                            LRSAUU12                               17
    RSAU_INFOCUBE_UPDATE
    20 FUNCTION     SAPLRSAI                            LRSAIU07                              567
    RSAR_UPDATE_CONTROL
    19 FORM         GPD814AHI9WRM9C2D3SJ2TVMOYZ         GPD814AHI9WRM9C2D3SJ2TVMOYZ          2491
    WRITE_DATA
    18 FORM         GPD814AHI9WRM9C2D3SJ2TVMOYZ         GPD814AHI9WRM9C2D3SJ2TVMOYZ          2394
    CONVERT_E3_TO_DATABASE
    17 FUNCTION     SAPLRSAODS                          LRSAODSU07                             91
    RSAR_ODS_UPDATE_DATA
    16 FUNCTION     SAPLRSAODS                          LRSAODSU18                            568
    RSAR_REQUEST_INTERPRETER
    15 FUNCTION     SAPLRSM2                            LRSM2U20                              702
    RSAR_REQUEST_INTERPRETER_1
    14 FORM         SAPLRSM2                            LRSM2F16                              222
    ODS_EINBUCHEN
    13 FORM         SAPLRSM2                            LRSM2F02                             1130
    RSM2_IDOC_EINBUCHEN
    12 FORM         SAPLRSM3                            LRSM3F02                             1716
    CALL_FUNCTION
    11 METHOD       SAPLRSM3                            RSM3C01                               727
    LCL_DETAIL=>HANDLE_NODE_CONTEXT_MENU_SEL
    10 METHOD       CL_TREE_CONTROL_BASE==========CP    CL_TREE_CONTROL_BASE==========CM015    36
    CL_TREE_CONTROL_BASE=>HANDLE_BASE_EVENT
    9 METHOD       CL_TREE_CONTROL_BASE==========CP    CL_TREE_CONTROL_BASE==========CM017    25
    CL_TREE_CONTROL_BASE=>DISPATCH
    8 METHOD       CL_GUI_CFW====================CP    CL_GUI_CFW====================CM00K   173
    CL_GUI_CFW=>DISPATCH_SYSTEM_EVENTS
    7 FORM         SAPFGUICNTL_CFW                     SAPFGUICNTL_CFW                        23
    CONTROL_DISPATCH
    6 FORM         SAPFGUICNTL                         SAPFGUICNTL                            20
    CONTROL_DISPATCH
    5 FORM         SAPMSSYD                            SAPMSSYD                              288
    %_CTL_INPUT
    4 MODULE (PAI) SAPMSSYD                            SAPMSSYD                              236
    %_CTL_INPUT1
    3 FUNCTION     SAPLRSM3                            LRSM3U02                              104
    RSSM_MONITOR_TREE
    2 FORM         RSMO1_RSM2                          RSMO1_RSM2                            263
    MONITOR
    1 EVENT        RSMO1_RSM2                          RSMO1_RSM2                             58
    |      START-OF-SELECTION

  • \n is not working by the time writing text into file ...

    Hi,
    I am reading each line from file and writing into another file ...
    It is writing continously in the file even if i use \n for new line ...
    Why "\n" is not working by the time writing text into file ...
    Here is my code:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class Test11{
    private BufferedReader data;
    private String line=null;
    private StringBuffer buf= new StringBuffer();
    private BufferedWriter thewriter=null;
    private File file=null;
    private FileReader fr=null;
    private String inputLocation="c:\\test14.txt";
    public Test11(){ }
    public void disp(){
    try {   
    file=new File(inputLocation);
    fr = new FileReader(file);
    data = new BufferedReader(fr);
    while ((line = data.readLine()) != null) {
    buf.append(line + "\n");
    String text=buf.toString();
    thewriter = new BufferedWriter(new FileWriter("c:\\test15.txt"));
    thewriter.write(text);
    buf=null;
    thewriter.close();
    } catch(IOException e) { System.out.println("error ==="+e ); }
    public static void main(String[] args) {
    Test11 t=new Test11();
    t.disp();
    System.out.println("all files are converted...");
    I used "\n" after reading each line .. i want output file also same as input file ... how do i break each line by the time writing into text file .. "\n" is working in word pad but now working in notepad ... in note pad i am getting some thing like rectangle insted of "\n" ....
    Any help please .....
    thanks.

    \n works just fine, and every text editor in the world except Notepad understands that it is supposed to be a line-ending character. You don't have a problem, except in your choice of text editor. If somebody is forcing you to use Notepad then you'll have to output "\r\n" instead.

  • Xmlviewservice.executeSQLQuery  TIME OUT ERROR

    Hello OBIEE Experts,
    I got stucked with the command line xmlviewservice.executeSQLQuery(...) method of OBIEE as operation time out. Actuall i am writing dot net source code to retrive the xml result by passing the query created in Oracle BI Answer page. This method runs fine when running a very simple query returning only two rows. However when i set to use a query that takes around 10 min running in OBIEE answer section, the above method fails. It returns an error Operation Time out. I have even try setting sawservice & xmlviewservice timeout but no use.
    Is there any way to handle sql execution time using OBIEE SAW web service functionality ? Please find below code that i have used.
    Imports saw = Obiee_Services.web_Reference
    Dim sawservice As New saw.SAWSessionService
    Dim sessionid = sawservice.logon("xxx", "xxx")
    sawservice.Timeout = 60000
    'Dim curUser As String = sawservice.getCurUser(sessionid)
    'Dim repref As New saw.ReportRef()
    Dim xmlviewservice As New saw.XmlViewService
    Dim xmlQueryExecutionOption As New saw.XMLQueryExecutionOptions
    xmlQueryExecutionOption.maxRowsPerPage = 10
    xmlQueryExecutionOption.refresh = True
    Dim repid As String = "Report1"
    Dim repParams As New saw.ReportParams
    Dim repHtmlOP As New saw.ReportHTMLOptions
    Dim QueryResult As New saw.QueryResults
    xmlviewservice.Timeout = 60000
    QueryResult = xmlviewservice.executeSQLQuery(qry, Obiee_Services.web_Reference.XMLQueryOutputFormat.SAWRowsetData, xmlQueryExecutionOption, sessionid)
    Dim rstring As String = QueryResult.rowset
    Dim i = WriteToFile("text.xml", rstring)
    Regards,
    Rajen Singh

    Thank you for the reply.
    I do agree that i have omitted logging out command line and WriteToFile() definition. The below executesqlquery command is a syncronous call. I do not think it will be a problem with the next two or three lines. Below mentioned command line will not be released by the compiler until and unless it is completed. MOreover i am sure that the two mentioned command line does not have to do much on the issue becouse the error message is associated with below line and also works fine on simple query.
    QueryResult = xmlviewservice.executeSQLQuery(qry, Obiee_Services.web_Reference.XMLQueryOutputFormat.SAWRowsetData, xmlQueryExecutionOption, sessionid)
    I have tested other work around to resolve the current error i.e "Operation Time Out" error atleast(applying other configuration setup and increasing timeout properties). Having resolved sucessfully the next issue is on the below line. Blank rowset is returned each time. I can get an ID on QueryResult.QueryId and QueryResult.Finished=false.
    Dim rstring As String = QueryResult.rowset
    Finally, in OBI Presentation Services, the query runs fine in a specific time.

  • Disabling the 10 second time out

    Hello there,
    I use Ichat often and have had it time out several times when there was no video but audio was present (speaker left the camera view) this is typical and I would like to be able to disable it.
    any help is appreciated.
    marc

    Hi,
    I can tell you how iChat gets to Peer-to-Peer Video or Audio Only chat and that may help. AT the end of the day it is a data stream of Video and Audio Data.
    Process.
    One Buddy sends the Invite to another Buddy and Pop up saying there is an invite appears on the second Buddy's screen. I tend to refer to this as the Visible Invite.
    This Visible invite happens on port 5678 using the UDP Protocol (essentially that is just another Internet Protocol like HTML for Web Pages or SMTP for Outgoing mail).
    At this point iChat also contacts a server set up by Apple to Help Negotiate the connection with the Buddy.
    This Server is called SNATMAP.mac.com and is an SIP server.
    SIP = Session Initiation Protocol
    This server acts like an old fashioned Telephone Operator at both ends of the connection.
    Once that link is made an SIP Invite is sent as well.
    It goes from Buddy One to SNATMAP then internally to SNATMAP which then contacts the Buddy (2) and the Buddy's end send a response.
    This is on Port 16402 as first choice (in iChat 4 and 5) using the UDP Protocol.
    This process continues passing bits back and forth. Like a telephone call but text Based it sends "Trying" then "Ringing" and finally "ACK" (You can sometimes see this in failed Connection Logs).
    (Much the same as you would phone he operator and ask them to Connect you, then that Operator contacts one near your Buddy who then ask the Buddy is they will accept)
    Then there is further negotiation on what sort of Connection is going to be involved.
    (The logs will note a CSeq (Call sequence) change from INVITE to MESSAGE)
    AT this point Buddy One's iChat sends a PING to Buddy two's iChat.
    This is again on port 16042
    This is direct and the return is direct.
    This is confirm where the Visible Invite Went to is the same place that is returning the SIP data.
    The SNATMAP Server is at the same time confirming with both ends which ports are about to be used for the Video Chat or Audio only chat.
    Mac to Mac the first choice is still port 16402 (To PC using AIM the ports can be different but SNAPMAP sorts this).
    Following this the SNAPMAP server drops out and the two Buddies are Peer-to-Peer.
    If I was trying to place where it in security terms with other Internet Activities I would say it on par with dealing with a Web Browser logging into a Secure site like a Bank, PayPal or the Discussions Login page and similar.
    Probably more secure than you email is (Data is not lying about on some server waiting for you to collect it).
    Probably more secure than a regular phone call.
    If both Buddies have MobileMe accounts and are on Macs then iChat to iChat Chats of any sort can be Encrypted.
    Unlike a Chatroom a Buddy cannot join it by knowing that the Chat is taking place (Although the Buddy List does indicate they are busy)
    8:08 PM Monday; January 31, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Changing the cmc session time out

    Post Author: Sujitha
    CA Forum: Administration
    HI
    whenver i log into cmc my session times out pretty soon..is der any way i can increse this time out??
    i read that the wca maintains a session variable based on which d tmie out occurs?is it so?
    can any one plz explain?
    thanks
    suji

    Post Author: vreddy
    CA Forum: Administration
    To change the default session timeout value  for the CMC perform the following steps:
    To modify the default session timeout value in the CMC, search for web.config in the
    C:\Program Files\Business Objects\BusinessObjects Enterprise 11\Web Content folder.
    Open web.config in a text editor like Notepad and search for the following 'sessionState' section.
    <sessionState
    mode="InProc"
    stateConnectionString="tcpip=127.0.0.1:42424"
    sqlConnectionString="data source=127.0.0.1;user id=sa;password="
    cookieless="false"
    timeout="20"
    />
    3. Change the 'timeout' attribute to set a new default session timeout value (in minutes).
    Upon completing these steps, the default session timeout value in the CMC  is updated.
    thanks,
    vreddy

Maybe you are looking for

  • Image requests from flash gallery are not caching

    The image requests that happen from a flash gallery are not getting cached in Safari browser, they get cached properly in IE, Firefox & Chrome. For Example - Load the following gallery (http://www.monoslideshow.com/demo/) in Safari browser, and monit

  • Spry Vert Menu - Submenu position in IE

    Hi - I've waited for a week for an answer from the Spry Framework discussion forum and no answer, so hope to get one here. I've searched through numerous posts, but none of the solutions seemed to work. The problem: Spry vertical menu, when a seconda

  • Middle select button not working correctly?

    I have a nano second generation and the select button in the middle is not working correctly. I have to keep pushing it and pushing it to get it to work and now it's not working at all. Any ideas?

  • My iMac (2011) wont shut down properly!!

    I have contacted apple's phone support 3 times but it still won't shut down properly. 1. they asked me to do a pram reset 2. they asked me to go into the safe boot mode (and it does shut down properly) 3. they asked me to clear my cache (it shuts dow

  • Whats the best free video converter ?

    I am sending out a small mov (DV)  file to a a few dozen people (not clients as this is a free thing). These people want to be able to convert this avi file down to a MP4 or other formats that will work fine on: Mobile phones Video frames small porta