Update Production Order Form if Sales Order Form has been updated

Hi Experts, how can you update the "Due Date" in the Production Order form if the "Delivery Date" in the Sales Order form has been updated?  I am having problem catching the actual event if the Date was modified.  I'm not sure if I'm coding this correctly, but this is what I have so far:
            If ((pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE) And (pVal.Before_Action = True)) Then
                strSQL = "SELECT DueDate FROM OWOR WHERE DueDate = '" & strDueDate & "'"
                orecordset = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                orecordset.DoQuery(strSQL)
            End If
Please share your examples.

All, thank you for your help.  I understand why it is not working now.  I was able to accomplish what I was lookin for with the following code (for anyone who was having the same problem as me:
            If pVal.FormTypeEx = "139" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE Then                     
                If pVal.ItemUID = "12" And pVal.BeforeAction = False And pVal.ActionSuccess = True Then  
                    oEditText = oForm.Items.Item("12").Specific
                    myNewDate = ConvertDateString(oEditText.Value, "test")                              
                    SODocEntry = oForm.Items.Item("8").Specific.Value                                     
                    oPdo = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders)          '
                    oRecordSet = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                    oRecordSet.DoQuery("SELECT DocEntry from OWOR where OriginABS = '" & SODocEntry & "'")
                    If Not oRecordSet.EoF Then
                        oPdo.GetByKey(oRecordSet.Fields.Item(0).Value)
                        oPdo.DueDate = myNewDate
                        intResult = oPdo.Update                                    
                        If intResult <> 0 Then                                                                               
oCompany.GetLastError(errInt, errString)
                            oApplication.MessageBox("oApplication_ItemEvent: " & errString)
                        End If
                        oRecordSet.MoveNext()                                                                               
End If
                End If
            End If

Similar Messages

  • In pages I have the new logo and when I try to open a document it says I need an update to open.  My computer says pages has been updated.  Any suggestions?

    I am unable to open certain documents in Pages.  A number of documents in Pages have the new logo and when I try to open it, I am prompted to update, yet my computer says Pages update is installed.  Not sure how to get around this?  Thanks

    You are not on OSX 10.7.4, you are on OSX 10.9.
    You have 2 versions of Pages on your Mac.
    The newer Pages 5 in your Applications folder which can open the older Pages '09 but frequently alters/damages the file.
    The older Pages '09 in your Applications/iWork folder which can not open the newer Pages 5 files.
    You appear to be alternately opening one or the other.
    Apple has removed over 90 features from Pages 5.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Best is to archive/trash Pages 5, after exporting its files back to Pages '09 versions, then rate/review it in the App Store, and get back to work.
    Peter

  • FRM-40654 Record has been updated by another user.Re-query to see change.

    Hi All:
    While Updating a record in form its updating fine at first time
    if i updating the record second time its not allowing me to update its showing following error
    FRM-40654 Record has been updated by another user.Re-query to see change.
    After Re-querying its allowing me to update the record .... so anyone can give a good idea to update the record without Re-query.
    i am using following versions
    Apps 11.5.10.2
    Forms 6i
    Database 10g

    @814950,
    Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>Announcement: Forums Etiquette / Reward Points
    </ul>
    It is not good to use someone else's post to ask a new question; this is commonly refered to as "Post Hi-jacking." It is always best to create a new post and add a reference link to a similar post. Please create a new post for your question!
    Also,
    >
    BEFORE I NSERT OR U PDATE
    OF quantity, price_override
    ON po.po_line_locations_all
    >
    If I recall correctly from when I worked with the Oracle Enterprise Business Suite (EBS), the PO_LINE_LOCATIONS_ALL is an EBS ta ble. Oracle does not recommend you modify EBS tables directly. There are recommended methods for performing DML on EBS tables. I suggest you review the Oracle Applications Documentation library. Select your EBS version and then scroll to the Standards section and review the following documents:
    <ul>
    <li>Oracle Applications Developer's Guide
    <li>Oracle Applications User Interface Standards for Forms-Based Products
    <li>Oracle Application Framework Personalization Guide
    </ul>
    Again, please ask your question in a new post.
    Craig...
    Edited by: CraigB on Dec 1, 2010 9:29 AM

  • How to Update multiple line Items in Sales order Interactive form

    Hi,
            I have created one online interactive form for sales order. In that I incorporated dynamic table logic .i.e. we can add row and delete row using buttons. Interactive form is working fine with one line item. But if I give multiple lines in table (line item) its creating sales order with single line item. So please help me how to pass multiple lines.
    Thanks & Regards,
    Krishna.

    Hi,
    Check out this link, this deals with the problem you are facing.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/802f0ed1-a17a-2c10-7db4-d515a5b047ed
    Regards,
    Runal

  • Standard print program & smart form for SALES ORDER

    Hi,
    I need
    1. Print program &
    2. SMART FORM
    for "Sales Order".
    and also please let me know how to migrate and do the required changes in smartform & print program.

    Hi Sameer,
    Goto NACE tcode-> choose the application u want( like billing for invoice, PO)->output type->output type->processing routineon left side
    Here u will find the standard program name and smartform .
    Thanks,
    Reward If Helpful.

  • Update error in  RV_SALES_DOCUMENT_ADD during Sales order creation

    I get an Update/ ABAP runtime error during Sales order creation. The error occurs during processing of the update module -RV_SALES_DOCUMENT_ADD.
    This error does not occuring always, as I am sometimes able to create a Sales order without getting update error. I am getting the error of all types of Sales orders and even contracts.
    Am I missing any configuration parameters?
    Thanks,
    Chitra

    Yes , I can see the error in ST22.
    While exceuting VA01 (Oder type OR, Entering Sold-to-party, Purchase order NO, Material, Qty, Plant),
    - I get run-time error "Run-time error "GETWA_NOT_ASSIGNED" occurred".
        Analysis of error shows:
         Update terminated in "Update module: RV_SALES_DOCUMENT_ADD"
          Fails in the Read table in one of the form
            Termination occurred in the ABAP program "SAPLV45U" - in "VBAP_BEARBEITEN"
    The main program was "RSM13000 ". In the source code you have the termination point in
    line 147 (READ TABLE FYVBAP WITH KEY VBAP_KEY.)
    of the (Include) program "LV45UF0V".
    The ABAP's say the functional module is trying to do an 'UPDATE' instead of 'INSERT" in the internal table FYVBAP.
    Thanks,
    Csuman

  • How to find out the list of Production orders created for sales orders

    Dear All,
    Our company wants to generate a report for a List of Materials sold out in a particular Product Hierarchy. Along with that we want to know the list of Production orders created for the sales orders.
    How to identify the production orders which are created based on Sales orders.
    Kindly suggest.
    Regards,
    Mullairaja

    Check these threads
    [Sale Order & Production Order|Sale Order & Production Order;
    [Re: Linking Production Order against a Sale Order MRP run|Linking Production Order against a Sale Order MRP run;
    thanks
    G. Lakshmipathi

  • How to update the condition price in sales order while creating the invoice

    Hi,
    How to update the condition price in the sales order to carry out the new price while creating the invoice?
    While creating the invoice it should update the condition price in sales order.
    Thanks,
    Balaram

    No, pricing is not there in delivery.
    I found an exit for VF01transaction where we can update the price in order.
    Can you please tell me how to update the price if I have the order, material numbers and conditions number?
    Thanks,
    Balaram

  • Duplicate production order due to sales order on credit block

    Dear Experts !
    Need feedback on the following scenario:
    - Sales order is entered for material which is produced in-house specific to the sales order (ie customer's logo is on product).
    - Schedule line in sales order creates a production order specific to the sales order.
    - Customer runs into credit check a few days later and consequently the schedule line in the sales order is removed due to credit block, however the linked production order still remains and is produced by factory.
    - Sales order is released from credit check and a new schedule line is created resulting in another production order being released.
    Any ideas on how to prevent duplication of production order?
    Thanks in advance!
       -Alvin

    Hello,
    Apologies for the confusion, let me explain it a bit more.
    - Sales order is entered for material with planning strategy group of make-to-order, the schedule line initiates new production order for make-to-order material.
    - A few days later - the customer goes over credit limit or has overdue invoices, etc..
    - During background rescheduling (or any sales order change) the sales order gets a credit block due to static check.
    - Sales order block deleted schedule line in sales order, however the production order remains active.
    - Once the sales order is released from credit block, a new schedule line is created which initiates a new production order.
    - Duplicate production order is now being made in shop floor.
    I hope the above explains my scnario a little clearer.
    Thanks and regards,
    Alvin

  • This field cannot be updated as there are open sales order lines

    When trying to enable Item Attributes then I am getting a message "This field cannot be updated as there are open sales order lines". I cancelled the Sales Order ( which was having only 1 sales order line and that is also cancelled) but still I am getting the same message.
    How to overcome this problem.
    Khan

    Thanks Karthik & Sandeep........
    Issue got fixed. There was an open Sales order Line because of that line the issue was coming. After cancelling that SO Line, Users were able to update the Item field.
    Regards,
    Khan.
    http://moreapps4u.blogspot.com/

  • Error while creating a production order from a sales order

    Hi
       Even though the product has BOM when i try to create order with a sales order reference it is showing a warning message " NO BOM FOUND" . How to correct this error .
    regards,
    PradeepM.

    Dear ,
    Goto -CS02-Enter FG -Goto Header -Staus Long Text -Check wether BOM status is set to 1 -Active .
    Check the usage of the BOM -Should  be 1-Production .
    Check wether BOM is locked and Deltion Flag set -Header Status Long txt tab
    Check the valididty of the BOM and Sales Order Schedule delivery date
    Try and come back
    Regards
    JH
    Edited by: Jiaul Haque on Jul 6, 2010 9:03 AM
    Edited by: Jiaul Haque on Jul 6, 2010 9:04 AM
    Edited by: Jiaul Haque on Jul 6, 2010 9:04 AM

  • Issues to Production Orders created from Sales Order

    We have multiline Sales Orders that create a Production order for each sales order line (can be up to 70 or 80 per SO). We normally backflush these via multiple MB1A transactions after the SO has been completed. It is a lot of work doing the required issues to reduce stock levels and consequently they are always "late" being done and the stock is always out of date until the movements (type 261) are processed - generally monthly!!
    As a result, an Access Database has been created that reduces stock in that by entering the SO number and this is used for Stock enquiries. I would like to get rid of this Access database so as I'm sure other people have hit this same problem, is there a way of doing the same in SAP i.e. enter SO number and then relevant stocks are reduced accordingly.
    Any help would be appreciated.
    Thanks in advance
    Jim

    Hi,
    I am not clear why you are manually doing the process? When the production order is confirmed for each operation (CO11) the goods movement should be posted then, backflush selected in work centre or in the production order.
    Any failures can be processed via COGI rather than a database.
    Thanks.

  • Product cost by sales order with Valuated Sales order stock

    Hi Gurus,
    I am working on Poduct cost by Sales Order with Valuated stock. but i have doubt ragarding to Cost estimation.
    1.In sales order scenario also Standard Cost estiamtion (CK11n and CK24) and Marking, Releasing is Mandatory? if not how can we estimate the cost?
    2. If we are estimating the cost by using Standard Cost estimate, when can we estimate the cost?
                can anybody please give me the steps which we are following in Poduct cost by Sales Order with Valuated stock from starting to end Settlement
    Thanks&Regards
    Prasad

    Hi,
    there are 3 types of scenarios in MTO.
    In Two scenarios Sale Order would be cost object - (Non-Valuated Sale orders stock and Valuated Sale Order stock with Sale order being Cost Object)
    In third scenario (Valuated Sale Order Stock without Sale Order controlling), Only Production Order is the Cost Object.
    In all the cases wherever the Sale Order is the cost object, Sale Order is the final Receiver.  Only the difference is that in valuated sale order stock, stock entries would be passed to FI and in non-valuated sale order, no goods movement for FG will be there.
    Please let me know if you need further details in this regard
    Surya

  • FM for Updating Installation date in Contracts + sales orders Item level

    Hi
    Plesae give any FM for Updating Installation date in Contracts + sales orders Item level for contracts tab.
    Thanks and Regards,
    Vishnuvardhan....

    Have used the billing transaction to set a Default Billing date at time of blling.

  • MRP Generated production orders greys out Sales Order and Customer fields

    Hi there,
    The MRP generated production orders greys out the Sales Order and Customer fields for some reasons. These fields are really important as they link the production order to the sales order and the customer's purchase order. Could the SAP team please fix this or advise alternative way of getting the sales order and customer info on production order? Thanks.

    Hello
    MRP only poulated this fields in case the material master has been set up with a strategy group hich is make to order (normally 20). Otherwise MRP summarizes all the requirements from different Customer orders and creates a production order
    Stephan

Maybe you are looking for

  • How to get my macbook to connect to the Apple TV?

    How to get my macbook to connect to the Apple TV in a strange apartment? I am housesitting for someone for a few months. They mentioned that i would be able to use their Apple TV to play stuff from my macbook. I am using their basic wifi in the apt,

  • Apex 3.0 installation instructions – unclear

    Hello All, I am trying to follow installation instructions (http://download-east.oracle.com/docs/cd/B32472_01/doc/install.300/b32468/install.htm#CHDHIJGE) to install Apex 3.0. This is the part that confuses me: 3.2 Installing the Oracle Application E

  • My outlook calendar will no longer synch with my iphone. how is this fixed?

    my calendar was synching fine until recently and now nothing is updating on it. All itunes and iphone updates are up to date.

  • Help Debugging a JavaScript in Adobe Acrobat

    Thanks in advance for your help. Below is a script that should hide the mailing contact fields. If the "WorkerMailingAddressChoice" check box is selected, the "WorkerMailingAddress", "WorkerMailingCity", "WorkerMailingState", and "WorkerMailingZipCod

  • Copy/Paste stopped working

    Hi there, I've been using RD for quite a while at home to control 2 more macs from my imac, and one of the features i use the most is Copy/Paste between the computers, but a couple days ago, i noticed that this features stopped working. I have no ide