Creating a counter in excel, not using prompt

Hi,
I am running a script with lots of calcs... these ones are hard coded (not using a prompt at all), therefore whenever I run the script it takes at least 1 min  to finish.
I'd like to know if there is a way to use a time counter (macro) or something in order to display the amount of time left to update the results in Excel.
Thanx in advance.
Velázquez

When you are speaking about script logic doing calculations you can not know how long it will take the generate queryies
It can be 1 second doing a selection for 1000 records and it can be 1 minutes for 1 000 000 records.
So you can not have a counter saying the time left because you don't know how long it will take.
Something can be created if it is really necessary but it will take quite a lot of effort for an information which doesn't provide any help because it is not reliable.(are too many factors having impact for calculation time to do a good estimation).
Regards
Sorin Radulescu

Similar Messages

  • Order types, why do we need to create our order types and not use the stand

    HI
    Order types, why do we need to create our order types and not use the standard ones during implementation.

    Hi Raj,
    Well there is no hard and fast rule that you have to copy nad create a new order type. Its just to meet our own requirements that we copy the standard and make the changes if required to meet our business needs.
    And by this way we keep unchanged the standard order type for further use.
    If you are sure that the standard order type satisfies your need you can directly use that only.
    I hope this clarifies the issue.
    Do reward if find useful
    Regards,
    Abhi

  • Create timer function that does not use start-sleep

    Hey all I would like to create a timer function that does not use the start-sleep command because this freezes my GUI. I've wrote the start of a function but it seems to move on before the specified time has finished.
    Here's what I have:
    $Global:timerCounter=0
    $Global:timer = new-object System.Windows.Threading.DispatcherTimer
    Function Timer{
    param(
    [parameter(Mandatory=$true)]
    [int]$time
    $timer.Interval = [TimeSpan]"0:0:$($time)"
    $timer.Add_Tick({
    $Global:timerCounter++
    if($Global:timerCounter -ge 1) {
    $Global:timer.Stop()
    $timer.Start()
    Then in my script i would like to call Timer -time #of seconds. It seems that when I call it the add_tick is registered and then started but it continues on with the rest of my script. Is there a better way of doing this without using start-sleep?
    Thanks!

    Okay the issue I'm having is that I have code after the $timer.start that I don't wan't to run till a powershell job is done. In all the examples I've seen it has to come to the end of the code then it starts the tick. So in your example it comes to the
    end of of your code and showsDialog() then starts ticking.
    So:
    add-type -AssemblyName system.windows.forms
    $form=New-Object System.Windows.Forms.Form
    $btn=New-Object System.Windows.Forms.Button
    $form.Controls.Add($btn)
    $btn.add_Click({$form.Close()})
    $btn.Dock='Fill'
    $btn.Font='Lucida Console, 20.25pt, style=Bold'
    $btn.Text=[DateTime]::Now
    $timer=New-Object System.Windows.Forms.Timer
    $timer.Interval=1000
    $timer.add_Tick({$btn.Text=[DateTime]::Now})
    $timer.Start()
    $form.ShowDialog()
    #I want to do other things here but only after the ps job has finished
    Thanks I really am trying to figure this out. 
    Here is the code I'm working with I guess I'm unclear on how to order the timer and the rest of my code:
    if($syncHash.mainCopy){
    $syncHash.mainJobDone = $false
    $syncHash.writeHost = $false
    while(-not $syncHash.mainJobDone){
    [System.Windows.Forms.Application]::DoEvents()
    if($syncHash.writeHost -eq $false){
    Write-OutputBox -Message "Copying"
    $syncHash.writeHost = $true
    $syncHash.inProgress = $syncHash.mainCopy | Where-Object {$_.State -match 'running'}
    $syncHash.currentCopyTime++
    }elseif($syncHash.currentCopyTime -ge ($syncHash.averageCopyTime * 2) -and $syncHash.collectionCopyTime.Count -ne 0){
    $syncHash.Unusable += $syncHash.currentMainCopyMachine
    $syncHash.computersNotForInstall += $syncHash.currentMainCopyMachine
    $syncHash.inProgress = $null
    $syncHash.mainCopyTimedOut = $True
    Write-OutputBox -Type WARNING: -Message "$($syncHash.currentMainCopyMachine) is taking too long. Removing Job.."
    Add-Content -Path $log_path -Value "$($syncHash.currentMainCopyMachine) taking to long to copy to"
    Stop-Job $syncHash.mainCopy
    }else{
    $syncHash.inProgress = $syncHash.mainCopy | Where-Object {$_.State -match 'running'}
    Write-OutputBox -Message "." -NoNewLine
    ############################# ############# So I need it to wait right here I have other code other than in this block ############# that needs to run $syncHash.currentCopyTime++
    if(-not $syncHash.inProgress){
    $syncHash.mainJobDone = $true

  • Create heck box in excel cell using sap

    Dear Sap Master's,
    Please give me some idea on how to create a check box in excel cell using abap program..
    (OLE concept).
    Thanks,
    Naveen.
    Moderator message: please do some research before posting, show what you have done yourself when posting.
    Edited by: Thomas Zloch on Jan 17, 2012

    Not resolved

  • Creating Links to Object but not using the record id field in the web add

    Hello,
    Im trying to create a link between OnDemand an another system but the other system is the source system so it will be creating the HTML Link based on values the user selectes.
    What i am trying to do is create a link link the following:
    https://secure-ausomxdsa.crmondemand.com/OnDemand/user/ServiceRequestDetail?ServiceRequestDetailForm.Id=ADSA-73J818&ocTitle=484426-429198955&OMTGT=ServiceRequestDetailForm&OMTHD=ServiceRequestDetailNav&ocEdit=Y&OCTYPE=&ocTitleField=SR+Number
    but without "ServiceRequestDetailForm.Id=ADSA-73J818" at the end i want something like
    https://secure-ausomxdsa.crmondemand.com/OnDemand/user/ServiceRequestDetail?ServiceRequestDetailForm.SRNumber=484426-429198955&ocTitle=484426-429198955&OMTGT=ServiceRequestDetailForm&OMTHD=ServiceRequestDetailNav&ocEdit=Y&OCTYPE=&ocTitleField=SR+Number
    As this is not using the ID field, Is this possible can someone point me in the right direction on how i should start?

    Hi Jonno,
    It is not possible to use links to object without Id field. U can pass other values but Id is important- based on that only OnDemand identifies the record.
    So what i would suggest is
    1) Either use Id along with SR Number in ur source system.
    Since what i understood is u are not creating new SR so u have the Id of the SR. Along with SRNumber save Id also in the external system
    2) Or use Webservices to query with SR Number for the Id then use it in the link.
    Hope this helps.
    Regards,
    Lemu

  • Creating Invoice from a Delivery Note using SDK

    Hi,
    I am working on SAP 2005 A Patch 4 with SQL 2000 SP 4. I am using VB.NET (VS2005). I am trying to create a Invoice from a Delivery note which is created based on a Sales order.
    I am getting the following error
    Error occured while saving Invoice: 0 - '15' is not a valid value for field 'BaseType'. The valid values are: '-1' - '',  '0' - '',  '23' - 'Sales Quotation',  '17' - 'Sales Order',  '16' - 'A/R Returns'
    The Code that i used to create the invoice is as follows
    Dim oInvoice As SAPbobsCOM.Documents
            oInvoice = pcompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
            oDelivery = pcompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes)
            Try
                If oDelivery.GetByKey(iDlvNo) = True Then
                    sTaxCodes = sTaxCode
                    oInvoice = pcompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
                    oInvoice.CardCode = oDelivery.CardCode
                    oInvoice.SalesPersonCode = oDelivery.SalesPersonCode
                    oInvoice.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
                    oInvoice.DocumentSubType = SAPbobsCOM.BoDocumentSubType.bod_None
                    oInvoice.Address = oDelivery.Address
                    oInvoice.ShipToCode = oDelivery.ShipToCode
                    oInvoice.Address2 = oDelivery.Address2
                    oInvoice.JournalMemo = "Invoice - " & oDelivery.CardCode
                    oInvoice.Comments = "Based on Delivery  " & oDelivery.DocNum
                    oInvoice.PaymentGroupCode = oDelivery.PaymentGroupCode
                    oInvoice.DocDueDate = Now.Month & "/" & Now.Day & "/" & Now.Year
                    For iRowNo = 0 To oDelivery.Lines.Count - 1
                        If iRowNo > 0 Then
                            oInvoice.Lines.Add()
                        End If
                        oDelivery.Lines.SetCurrentLine(iRowNo)
                        oInvoice.Lines.ItemCode = oDelivery.Lines.ItemCode
                        oInvoice.Lines.Quantity = oDelivery.Lines.Quantity
                        oInvoice.Lines.Rate = oDelivery.Lines.Rate
                        oInvoice.Lines.BaseType = SAPbobsCOM.BoAPARDocumentTypes.bodt_DeliveryNote
                        oInvoice.Lines.BaseEntry = iDlvNo 'DocEntry of Delivery Note
                        oInvoice.Lines.BaseLine = iRowNo
                        oInvoice.Lines.TaxCode = sTaxCodes
                    Next
                    iReturnValue = oInvoice.Add()
                    If iReturnValue <> 0 Then
                        pcompany.GetLastError(iReturnValue, sErrorDescription)
                        Throw New Exception("Error occured while saving Invoice: " + _
                                           iErrorNo.ToString() + " - " + sErrorDescription)
                    Else
                        MessageBox.Show("Invoice created succesfully")
                    End If
                End If
    Since in the error message it has specified that i have given the BaseType as Delivery which has a value of 15 i changed that from bodt_DeliveryNote to bodt_Order which has a value as 17.
    When i tried creating the invoice again it gave the error
    Error occured while saving Invoice: 0 - Target item number does not match base item number.  [RDR1.TargetType][line: 2]
    I am not able to proceed further ... can any one help me
    thanks in advance
    Ganesh

    Greetings,
    I am having a similar problem, only I'm doing it as suggested in Louis' reply.  In fact I copied that code and tried it.  It's giving me a 2028 error with no description.
    I had been doing it slightly differently and the error I was getting was 5002 "Item no. is missing [INV1.ItemCode][line 2]"  I don't have 2 lines and I'm certain I have an item code.  The numbers I'm putting in for baseentry & baseline are absolutely in the table and the order is open.
    Here is that code:
            oDNUpd = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
            oDNUpd.CardCode = CardCode.Text
            oDNUpd.Lines.BaseEntry = CInt(SalesOrder.Text)
            oDNUpd.Lines.BaseLine = CInt(baseline.Text)
            oDNUpd.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oOrders
            oDNUpd.Lines.Add()
            lretcode = oDNUpd.Add
    I'm using SBO 2005 patch 7 (and the new dll).  I have similar code doing a stock transfer and it's working fine.
    Thanks for any suggestions you can offer
    John

  • HT204088 I can't create an apple ID for not using credit card. How can i create an apple ID with no credit cards ? Thank you.

    I read the supporting article. But those pictures were old. Also the format had changed. I can't create an Apple ID with no credit cards? I got no credit cards. I am just a secondary student and how can I have a credit card?

    Follow the instructions on this page exactly : http://support.apple.com/kb/HT2534 i.e. select a free app and click on 'create Apple ID' when 'buying' it (it worked for me yesterday).

  • To create an x.509 certificate not using any tools

    I'm having a project, is to generate an x.509 certificate without using any other tools, did anyone know the bytes structure of an x.509 v1 certificate, please kindly help! thanks!

    x509 certificates are described using ASN.1 notation; see http://www.ietf.org/rfc/rfc2459.txt for all the gory options. The ASN.1 structures are encoded into bytes by following the Distinguished Encoding Rules (DER) for ASN.1. See "A Layman's Guide ..." at http://luca.ntop.org/Teaching/Appunti/asn1.html.

  • Webi Intelligence - Linking Reports but not using prompts

    Hi, I am trying to link Report 1 to Report 2 but rather than passing the selection to run a query to Report 2, it simply filters for the selection from Report 1 on Report 2.
    Step1: Report 1 - Select salesman Name
    Step2: Goes to Report 2 and filters for the selected Salesman name from step above
    In order words, I don't want Report 2 to refresh or run, I just want what was selected from Report 1 and find it on Report 2. Is this possible?
    Thanks!!

    Hi socheathly,
    You can have a dummy prompt (something like @prompt A = @prompt A) in Report 2 just to capture the parameter from Report 1. But this is will still lead to refreshing the report 2.
    I think the only way to capture a parameter from another report is through a prompt. Correct me if I am wrong.
    Cheers!
    Aris.

  • Can we create Multi Tabbed excel Sheet using Crystal Reports 2008

    Hi,
      We want to create a Crystal Report which will export the output as multiple Tab's ( we can use sub reports).  Can we create a Multi Tabbed excel Sheet using Crystal Reports 2008 ( not  Crystal reports Basic 2008). Please share any information/links on how to do that.
    Also if it is not supported please let us know which version supports it.
    Thanks,
    Vasu

    At least one of the 3rd-party Crystal Reports Desktop Scheduling tools listed at: http://www.kenhamady.com/bookmarks.html provides that functionality.  It allows you to burst a single report so that each Group at level 1 becomes a separate tab.  You can control the tab names (and tab colors) via fields/formulas inside the report.
    You can also automate the process of exporting to (and also replacing or appending to) specified tabs inside existing workbooks.

  • Creating multi counter plan using LSMW

    Hi,
    I am trying to create multi counter plan (transaction IP43) using LSMW. I am using direct input object 0460 for creating it. Object has IBIPMPLA structure as header. How can i pass multi counter data in it ? Problem is line item level values like 'Maintenance cycle' (ZYKL1) are at header level structure IBIPMPLA.
    Anyone has cretaed multi counter using this object, please help me with it.
    Thanks,

    Hi,
    creating multi counter plan using LSMW
    Try this link,
    http://www.sapfans.com/forums/viewtopic.php?f=7&t=217834&p=1059434
    It will helps to you.
    Regards,
    Sekhar

  • Excel Reporting using Custom Field as parameter from PWA 2013

    Hi,
    Iam trying to create a report in Excel 2013 ,using ODATA feed.  I am connecting to the Project Web App instance and I am able to get datas from various entities like Project ,Resource etc.
    Worklocation is a custom attribute belonging to Resource Entity in PWA.If I want to create a report which shows a list of resources in a particular work location  by providing work location as parameter/filter , how  can I do that ?
     I tried creating a pivot table with all required entities but when I am adding Work Location as filter , the drop down does not show all the locations available as Work location in PWA. Instead, it just shows the corresponding worklocation belonging
    to the resources avaialble in the data section.
    Is there any way to filter say,resources based on all the available worklocations?
    Can someone help me please?
    Thanks,
    Mridhula

    Hi,
    Iam trying to create a report in Excel 2013 ,using ODATA feed.  I am connecting to the Project Web App instance and I am able to get datas from various entities like Project ,Resource etc.
    Worklocation is a custom attribute belonging to Resource Entity in PWA.If I want to create a report which shows a list of resources in a particular work location  by providing work location as parameter/filter , how  can I do that ?
     I tried creating a pivot table with all required entities but when I am adding Work Location as filter , the drop down does not show all the locations available as Work location in PWA. Instead, it just shows the corresponding worklocation belonging
    to the resources avaialble in the data section.
    Is there any way to filter say,resources based on all the available worklocations?
    Can someone help me please?
    Thanks,
    Mridhula

  • Create a password protected excel file

    Hi everyone,
    I need to create a password-protect excel sheet using plsql.
    Please if some one could help me with this ??
    Regards,
    Riddhisha Khamesra

    there is no way directly from PL/SQL to make ExcelStarting with Office 2007, Excel's default file format uses the Open XML standard (ie basically a zip archive of XML and other media files).
    You can generate such files with pure PL/SQL, but adding password security is another story...
    - Using a protection at the workbook level requires the creation of an encrypted archive.
    - Using a protection at the worksheet level is easier because the password itself is embedded (in an encrypted form) into the sheet definition.
    Prior to Office 2007, there's the "XML Spreadsheet 2003" format. It opens the way to easy XML generation but it's limited (in particular, no password support, no macro etc.).
    Edited by: odie_63 on 2 mai 2011 15:57

  • How to create a new excel file using Excel Destination when Destination file not exists.

    how to create a new excel file using Excel Destination when Destination file not exists.

    Just need to set an expression for excel connectionstring and set delay validation to true and it will create it on the fly.
    The expression should return the full path with dynamic filename in each case.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Create a check box in excel cell  using sap abap

    Dear Sap Master's,
    Please give me some idea on  how to create a check box in excel cell using abap program..
    (OLE concept).
    Thanks
    Moderator message: please search for available information first.
    Edited by: Thomas Zloch on Jan 12, 2012

    select the cell then open the cell formatter:
    process should be similar in the iOS version.  I do not have any iOS devices with Numbers so I cannot check.  I did find this link that may help:
    http://support.apple.com/kb/PH3374?viewlocale=en_US

Maybe you are looking for

  • No longer able to add songs from computer

    On Friday I was able to successfully import songs from another location on my computer. Yesterday I went to import some more - after updating iTunes to the latest version. NO go - nothing happened. I've tried using the add folder option, the add file

  • Selected boot image did not authentica​te. Press enter to continue

    I just removed the stock HDD that came with my M4-1015x and now I'm trying to install windows 7 to the SSD that I replaced it with. However, upon boot up I get the message "Selected boot image did not authenticate. Press <enter> to continue" when the

  • Very Strange Bug! Help me plz!

    When i downloaded and installed iTunes 10.5, it looked like this: I've already reïnstalled all my apple stuff enz. That didn't work. Now i got 10.5.1 and that didn't solve anything either. I have windows 7. Does anyone have a solution?

  • New version of iBooks Author

    Does anybody know what bugs the new version fixed?

  • Flatten transparency Fill colour feathering?

    Basically the way I normally filled colours was either make live paint, OR flatten stransparency on my strokes, and to use the paint bucket.  I have mostly used teh flatten transparency way to paint, but this tiem when I try to change the colour of m