Excel close refnum order

Hello,
I'm trying to use read/write to an Excel file and I'm rather new to activex.  Based on an example program, I can read the contents of the sheet.  However, afterwards I can not open the file.
From what I can find on the forums, this is a known problem with the order you close the refnums.  However, after alot of trial and error, I still can't seem to get it right.  Here's what I have at the moment..
open applicaton
open workbooks
open workbook
open sheets
open sheet
activate sheet
get range refnum
get value
close range refnum
close sheet refnum
close sheets refnum
close workbook refnum
close workbooks refnum
close application refnum.
Any help would be greatly appreciated.  After I read the current data, I want to use another vi to write values.  Unfortunately, I can't do this when a refnum from the read VI is still open.
Solved!
Go to Solution.
Attachments:
Get Data from EXCEL.vi ‏30 KB

Hi Pjr1121,
nyc is right. use Quit Application, it will solve your issue.
When you close Excel the way you are doing it, it will be still running. Check it in Task Manager>>Processes
When you quit application then Excel is completely closed.
All the best.
Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.

Similar Messages

  • How do i close excel.exe in order to install Acrobat XI Pro? Thanks!

    I dont have any application opened, even though the Adobe Application Manager still asks to close excel.exe in order to continue installing the Acrobat XI Pro trial version. How do i solve this? Thanks in advance!

    It appears that Excel did not close properly. You will have to kill the process using the Task Manager.

  • Short Close Sales Orders

    Hi All,
    I have a sales order for say 1000 qty and i have delivered 900 qty. There are no further deliveries going to be posted against these Order. Now I want to close this Order. Usually I go to Sales Order---- Item details--Schedule Lines--change the order qty equal to Confirmed qty. This way the order gets closed and does not come in Open Sales Order report.
    Now I have many such sales orders where i have posted deliveries and no further deliveries are to be posted.
    How do I close these Sales Orders in Mass.
    Thanks in Advance.
    Regards,
    SSK

    Dear Sarvesh,
    The solution is provided by Mr.Lakshmipathi..
    I think we can make the order qty as 900 in va02, and then also it has the same effect as 'CLOSED'.
    Please check that too.
    Thanks & Regards,
    Hegal K Charles

  • Unable to close the order

    I  am unable to close the order ...system hown this error messgae please any one guide me in this issue
    Unprocessed future change recs for order 1002655 prevent del. flag/completion
    Message no. CO688
    Diagnosis
    There are still future change records or error records to be processed from the confirmation for the confirmation processes in order 1002655. Possible confirmation processes are:
    Automatic goods receipt
    Backflushing
    Calculation of actual costs
    Data transfer to HR
    System Response
    You are not meant to set the deletion flag/'completed' status for orders with future change records that have not been processed.
    Procedure
    You should process the open future change records using
    Predefined confimration process or
    The CORUPROC program, by dispatching it in Customizing in a background job (dispatch background jobs: dispatching processes).
    Check if incorrect goods movements or incorrect actual cost calculations exist for the order, and reprocess these if necessary:
    Reprocessing incorrect goods movements
    Reprocessing incorrect actual cost calculations
    Regards
    GSD

    Sesidhar gollu,
    Well try to reprocess your order by using T-code COFC which will reprocess the future records. Try this and then ping me any questions if u have.
    Regards,
    Madhu.G

  • Close Sale Orders via DTW

    Hi,
    I want to close Sales Orders using DTW but I got an error:
    Document rows Cannot be closed concurrently.
    I read some threads:
    Link: [Document rows Cannot be closed concurrently - Purchase Orders;
    Link: [How to close a row in a Sales Order?;
    Link: [Closing Order rows;
    Link: [Documents rows cannot be closed concurrently with the other document modify;
    and many more but couldn't solve problem.
    I work on 8.8 version and try to close Sale Order that has few rows. I can close line via UI ( right mouse button and choose close line) but when I try to do it via DTW I have an error.
    I disabled all formatted searches and it didn't help.
    Need help.
    Reagrds
    Szymon

    Hi,
    the problem now is not the error message. The problem is: what about the sales order which should be lost after we regenerate the program RSM13000?
    We installed the following support packages:
    1.     SPAM and SAINT      from 26 to 38
    2.     SAP Basis:           From SAPKB62047 to SAPKB62068
    3.     SAP_ABA:          SAPKA62047 to SAPKA62068
    a.     And 2 CRT
    4.     SAP_APPL          SAPKH47022 to SAPKH47033
    5.     SAP_HR:          SAPKE47024 to SAPKE47099
    6.     SAP_IPPE:          SAPKGPIA06 to SAPKGPIA28
    7.     PI:               SAPKIPZI55 to SAPKIPZI59  
    8.     PI_Basis:          SAPKIPYI57 to  SAPKIPYI59 
    9.     ST_PI:               SAPKITLQG7 to SAPKITLQG8 
    10.     EA_APPL:          SAPKGPAA06 to SAPKGPAA29
    11.     EA_FINSERV:          SAPKGPFA06 to SAPKGPFA29
    12.     EA_GL TRADE          SAPKGPGA06 to SAPKGPGA29
    13.     EA_HR               SAPKGPHA10 to u2026u2026  SAPKGPHA99
    14.     EA_PS               SAPKGPPA06 to SAPKGPPA29     
    15.     EA_RETAIL:          SAPKGPRA06 to  SAPKGPRA29
    Thanks in advance
    Hanseatik

  • Finance cannot close production order due to some PO# error message

    When user is trying to close production order(using tcode CO02) getting error "..Production order #: Purchse order still exists..".
    I would like to know what is the reson for this error and how user can close this production order.
    Appreciate your quick response.
    Thanks,
    Aritra

    status of production order: TECO PRT  CNF  DLV  PRC  BASC BCRQ GMPS*.
    Vijay actually basic problem  is user is getting error "You cannot select assembly order 16600192 for deletion" when he is trying to delete one line item from sales order using tcode VA02...
    -i said to close the production order
    -but they said not able to close as they are getting error "purchase order still exists"
    -said to close all purchase order
    -they replied "We cannot close the open orders as some we are waiting for the materials to be arrived and some order are blanket orders. Why we don't have such problem all this while and now ? This is our common practise.
    Is there any way of force closed for Finance since the SF material has been GR in 23/03/2006.We only need
    to closed the order, that's all."
    pls tell me what to do, can we close production order in such scenario?
    thanks
    Aritra

  • Cannot close Production Order due to cost

    Hi experts,
    I have a problem with a production order that I cannot close. I have confirmed the order, however instead of cancelling the confirmation, I used MIGO inorder to reverse the goods movement. In closing the order, I encountered an error due to the balance cost for production (labor, power, water, overhead). I cannot cancel the confirmation since it is returning an error which is a deficit in the quantity. This is maybe due to the reversals I have already made for the finished good and components using MIGO. I cannot already repost or cancel the goods movement since the period is already closed.
    I really am hoping for your help regarding this so I may already close the order.
    Many many thanks.
    Sincerely,
    Ria

    Since periods are already closed in MM, it is not
    possible to post into these periods any more. There're two workarounds.
    1. If you can close the orders with the balance, change the indicator
       in the settlement profile from 'To be settled in full' to 'Can be
       settled' or 'Not for settlement' temporarily. After you close the
       orders, change it back immediately.
    2. Settle the order in KO88 twice with the following parameters:
       1) Settlement period    04
          Fiscal year          2009
          Posting period       06
       2) Settlement period    05
          Fiscal year          2005
          Posting period       06
    You can check whether there's cost for the order in table COEP.
    For more information, please review attached note 140672.
    I hope this will be useful,
    best regards
    Maria

  • SO created is Open or Close Sales Order

    <b>Hi
    I hav ot write a report for SD , In this for sales order I hav to check that - Is this Sales order is Open or Close order ,
    Select-optoins are SALES ORDER , DATE , PLANT , St location .
    if it is a close sales order , Then this report should pass a message to The MM consultant  abt the stock ...
    Regards ,
    Narender .</b>

    Hi,
         Just to add, a sales order is open till such time all the line items are delivered completely with respect to the quantity ordered. This you can find in the VBUK ( Header status ) where the GBSTK field value is " C ".
         Even if the goods are shipped or not, it does not influence the sales order completeness. Its only a delivery that happened or not influences the sales order status. Also you can take help from VA05 t.code which shows all the open sales orders by checking the " Open sales orders " button.
    Hope it helps. Pl reward if useful.
    Thanks & Regards
    Sadhu Kishore

  • How to collectively close internal orders?

    Hi,
    Need your advise on how to collectively close internal orders. I'm trying to use tcode KOK4 but I can't seem to get the Close function in the function selection list. Appreciate your advise on the steps/tcodes to use to collectively process internal orders. Also, what is the proper order of closing internal orders? I need to run CO88 first before setting the internal order to status Close?
    Thanks!

    Hi,
    There are some pre conditons for closing the order like the order balance should be zero, there should not be any purchase order open against the order etc. So, please run the settlment to close the order. If there is any Purchase order open, then that also should be closed.
    Please check the status management configuration in SPRO>Controlling>Internal Orders, for getting the complete function in T.Code KOK4
    Regards,
    Rijo Paul

  • Prerequisites for transaction COHV to close settled orders automately

    Dear friends,
         What are prerequisites for transaction COHV to close settled orders automately?
         I really want to know these prerequisites because I came accross a problem: After finacial dept. settles production orders, it is usually for them to close production orders by using Transction COHV. But, Last month, They closed several orders that should be closed this month by using COHV.
         Preliminary reason: I found that these orders' variances were 0 and the stutus was DLV because these orders are produced completely at beginning of this month. And,  the time to close orders after settled is behind these activities. So, I have a question before. Is there any settings to restrict the period? I think restrict to the period can solve this problem.
    best regards

    Close the question. thanks.

  • (Application) Automatically close manufacturing orders

    Hello Esperts
    I pose the following situation to be analyzed and included in future versions of SAP BO.
    In companies that handle a high volume of manufacturing orders and how to make the consumption of materials and receipt of production is the production order option, but deproduccion bill, requires the user to manually have to close one by a manufacturing orders.
      The application is a parameter that SAP incubated for the closing process orders en masse, that it meets the condition that the planned amount is equal to or lower than received.
      This process automatically close the orders completed.
    Please discuss this request to include the functionality of SAP, is highly requested by our clients.
    Thanks
    Liliana Villegas
    Consulting SAP BusinessOne

    Hi Janice,
    I don't think you can to close a number of open purchase orders automatically. However, you may try by DTW to close them. Otherwise, you need to use SDK.
    Thanks,
    Gordon

  • Close Sales Order

    Oracle Apps 11.0.3
    Does anyone have sql script to close the sales order manually?
    Thanks,
    Prasad.

    Hi,
    You can consider to set the 'Reason for Rejection' to close the order.
    You can also press the F1 key to display the explaination/documentation for the 'Complete delivery' flag. It's Indicates whether a sales order must be delivered completely in a single delivery or whether the order can be partially delivered and completed over a number of deliveries.
    Hope this is helpful to you.
    Best regards,
    HC

  • WHAT IS SALES ORDER -OENSALES ORDER AND CLOSE SALES ORDER

    HI....
    WHAT IS SALES ORDER -OENSALES ORDER AND CLOSE SALES ORDER
    WHAT IS MB1C AND  MB1B TCODES

    Hi
    If the sales order is made with a Qty of 10 items in it , if the all 10 items are delivered to customer then that is called as Closed Sales order
    Means if Sales order Qty (vbap-kwmeng) = Delivery qty (lips-lfimg) then that is losed other wise out of 10 qty 5 are supllied and 5 are yet to be supplied then that is open sales order
    MB1C = Goods receipt for others
    MB1B = Transfer Posting for Material Moving
    Regards
    Anji

  • Query of technical close pm order

    Hi experts
    when technical close pm order,system will prompt a window and ask me if I want to close the
    notification, I found the indicator "complete notification' is flged defaultly. I want know if we can
    make that indicator not flaged defaultly by some configuration?
    thanks in advance!

    Hi Mark
    Normally is tick is very useful in industries. Thats why in default you cannot change it.
    Notification is created by the production department and the order is created my maintenance department. while closing the order, u have to close the notification to make the cycle complete.
    Even though it is the intimation to the production department , that the work is completed...
    In SAP some things we should not remove or edit...
    But , if u can tel us.. why u need to remove it in default ?
    - Pithan

  • Cannot close sales order for third party sales

    Hello Gurus,
    I cant seem to close a third party sales order even after it has been delivered and the incoming reciept match the sales order as well as purchase requisition or purchase order. at first I thought it was the difference in the unit of measure b/w the delivered products and the ordered products, but that is not the case because even when they are still the same and the quantities match I still have an issue and when I run VA05 (list of sales order) the sales order for the third party sales still shows up. An example is sales order XXX / PO XYZ/ Inv XYY u2013 ordered 45,000, shipped 39,980), we resolve it with the following steps below
    1. change the PO quantity to match the invoice quantity
    2. the requisition then re-opened itself automatically.
    3. I then changed the requisition and marked it closed.
    4. I then could go to the sales order and change the order quantity to match the billed and invoiced quantity. The rejection code 52 did not work u2013 I received a hard error:  PO XYZ must be deleted before the line item could be rejected.
    This is a whole lot of steps to perform just to correct 1 backorder. The reason that it had to be corrected is that the sales order  mfg line stays on the Billing Due list and does not clear it self out unless you perform the steps above.
    Also like I said even when all the quantities are the same I still have this issue so is ther any thing I can do to resolve this issue in configuration or otherwise and also we are using the satndard item category "TAS" for third party sales.
    I will appreciate you contribution and help to resolve this matter
    Thanks

    Unfortunately, all the steps need to be performed to close the status. I think even giving tolerances will not close the status. If it is a regular sale order, a small BDC program may be written to change the sale order quantity to match the invoice quantity. Since its a third party and there are too many documents which are involved in the process using ABAP programs is not a convenient option.
    Regards,
    GSL.

Maybe you are looking for

  • I can't change font size. It goes only from 1 to 9 and can't enter an especific number.

    I use Mac and for the first time I face this problem... I used to be able to enter the font size lik 32, 48, 96... any number in flash CC I can't. Is there any way I can change this? I looked in preferences and found nothing!

  • Budget Update

    Hi All, We are trying to update the budget for the year 2008-09. I am trying to give it through FR51 for Fund Center..Commitment Item...Amount. But I am getting error "The annual values in commitment budget 2008 for one or more funds centers/commitme

  • Supporting full-motion swf files

    Hello, Is there a way to create only one swf file even though the project contains partial full motion recordings? Thank you in adavance for your time and response. Özlem

  • Who is Who iView: Problem with sorting

    Hi out there, I have the following problem: I would like to have the Search result generated by the Who is Who iView sorted by two properties, that is first by ume:lastname and second by ume:firstname. The search result will be sorted if I add ume:la

  • Excel 14.1.0 (110310) on OSX 10.7.5 doesn't have Full Screen function

    I have OSX 10.7.5 on 2009 MacBook with Excel 14.1.0 but I don't have Full Screen function. I Googled and am sure that this version of Excel and OSX should have Full Screen, but I just can't find it. If you can help I would greatly appreciate it. Than