How to detect a line delete (order)

When the user delete's a line in the order form I have to do a delete in a usertable.
The usertable contains the linenum and docentry of the line.
But I can't seem to find an event that gets triggerd when the user delete's this line.
When I look at the FormDataEvent a form_update is triggerd but with no way of telling what happened.
Is there a way to know if there has been a line delete?

Hi Marc,
Other option is after user click update, Before action = false,
You check this order against the ADOC & DOC1 tables (Audit tables). A simple SQL select statement can give you the line num of the deleted lines.
Regards
Edy
Edited by: Edy Simon on May 20, 2009 2:20 PM

Similar Messages

  • How to detect the line wrap event of JTextPane?

    Hi all,
    I'd like to detect the line wrapping event of JTextPane, so as to adjust the visible rows of JTextPane. How could I do this? Thanks!
    Yi Bing

    there is no wrap event.
    Wrap happens during relayout. The event which invokes relayout could be different. E.g. change size or chane model (document).
    Just add document listener and componnet listener.
    Regards,
    Stas

  • Oe_order_pub.process_Order - how to add a line to order

    Hi,
    I have an existing order that I need to add a line to. How do I do this? Does anyone have some example code?
    Is it an update or a create?
    Currently, I'm receiving the return code of: U and the message: FND
    Any ideas are greatly appreciated.
    Thanks
    andy

    Process Order API needs the environment variables initialized. Use FND_GLOBAL.apps_initialize before calling the api.
    Also u need to initialize the parameters variables using G_MISS.... atleast those that u r using.
    Provide the header id in the header_rec parameter
    and provide the line details in the line_tbl parameter with action as create.
    Hopefully it should succeed. Also there are several other queries where sample code for process order is given in this forum. Try searching for them and compare your code.
    Regards,
    Nitin S. Darji

  • How to get back the deleted order in EBP in to SRM-for which R/3 ord.exists

    Hi Sap gurus,
    We have implemented extended classic scenario in SRM 5.5. The issue is one of the local EBP order is deleted from our SRM system. As a general rule the backend order is also to be deleted from the system. But to our strange the backend order is not deleted in the R/3 system. Now we want to get back the local EBP order in to our system. Is there a way we get this again in our EBP system?
    In BBP_PD tcode we have one entry as below. By using the GUID of this order can we get the order back in to EBP?
    HEADER    I1040               DELETED                                 X
    Thanks & Regards
    Satish

    Hello psamp,
    If your PO has status 'Deleted' in SRM, at header level, field DOC_CLOSED from BBP_PDHGP table should be set.
    For PO status change, you can use CRM_STATUS_UPDATE function module with two rows in table JEST_UPD:
    - one to inactive deleted status :
    MANDT = your client,
    OBJNR = PO Guid,
    STAT = 'I1040',
    INACT = 'X',
    CHGNR = existing value + 1
    - one to active ordered status:
    MANDT = your client,
    OBJNR = PO Guid,
    STAT = 'I1043',
    INACT = ' ',
    CHGNR = existing value + 1
    For header level, see BBP_HDRPROC_SET_STATUS_FLAGS function module.
    Regards.
    Laurent.

  • How to use COPA to delete Order status "ORRQ"

    Dear Gurus
    When I use Tcode: COPA to store a process order, the system returns "0 order stores", why was that?
    Prequisition:
    1, The order status with ORRQ, TECO
    2, The customizing of Order-dependent parameter have selected "order record required"
    Please kindly tell me what should I to do?
    Thanks in advance.
    BRGs
    Sivan

    Sivan,
    Check in OAC3 transaction whether for Object type BUS0001 content server link is maintained.
    Check whether the inspection lots for the inspection during production and for the incoming inspection have statuses Inspection close completed and Usage decision has been made.
    Regards,
    Prasobh

  • How to add new line to order already inserted

    Hi people
    I'm trying to insert a row in an application already exists, but I get the error "Attempted to write protected memory."
    I have done the following steps:
    1 - Reinstall the DIAP
    2 - I cleared the folder SMB_OBS_DLL
    Below is my code:
    oOrder.GetByKey(1000);
    oOrder.Lines.Add();
    oOrder.Lines.ItemCode = ItemCode;
    oOrder.Lines.Quantity = Quant;
    oOrder.Lines.WarehouseCode = WhsCode;
    oOrder.Lines.UnitPrice = UnitPrice;
    oOrder.Lines.DiscountPercent = Discount;
    oOrder.Lines.Usage = Usage;
    oOrder.Lines.TaxCode = TaxCode;
    oOrder.Lines.CFOPCode = CFOPCode;
    oOrder.Lines.CSTCode = CSTCode;
    The error occurs when I try to insert two or more items
    SAP 2007B

    Hi Francisco,
    You need to call the SetCurrentLine method of the Lines object so that you set focus to the new line you've created.
    if (oOrder.GetByKey(1000))
         oOrder.Lines.Add();
         oOrder.Lines.SetCurrentLine(oOrder.Lines.Count - 1);
         oOrder.Lines.ItemCode = ItemCode;
         oOrder.Lines.Quantity = Quant;
         oOrder.Lines.WarehouseCode = WhsCode;
         oOrder.Lines.UnitPrice = UnitPrice;
         oOrder.Lines.DiscountPercent = Discount;
         oOrder.Lines.Usage = Usage;
         oOrder.Lines.TaxCode = TaxCode;
         oOrder.Lines.CFOPCode = CFOPCode;
        oOrder.Lines.CSTCode = CSTCode;
    Kind Regards,
    Owen

  • 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

  • How to change the line item storage location during the sales order creatio

    How to change the line item storage location during the sales order creatio

    Hi Kumar,
    I think you can just delete it in the sales order directly, if you are using make-to-order scenario, then there will be special stock left for the sales order as the production has been goods receipt, you need to use MM transaction move the stock to unrestricted use stock. If you are using make-to-stock scenario, there should be no further problem. If you are using assembly order, please try to reject the sales order item to see if it could fullfill your requirement.
    Regards,
    Rachel

  • Sales order line delete fails for treetype=S line items

    SBO v8.8 PL17
    In a Windows Console DI application, I need to delete lines that have TreeType=S from a Sales Order.
    I get an error message that the Delete Line Failed and no other details for the error.
    I have no trouble deleting the line in the SBO client sales order screen.
    Often, the Sales Bill of Materials (SBOM) for the item on the SO line has changed after the line was created. 
    Could the DI be validating the child item rows (treetype=I) for the father item against the current lines in the SBOM and blocking the deletion because they no longer match? 
    In any case, how can I get around it or at least find out the actual reason the the line deletion fails?

    Is the error description the same when you use old-school error checking?
                         If FixSO.GetByKey(DocEntry) Then
                             FixSO.Lines.SetCurrentLine(LineNum)
                             Try
                                 FixSO.Lines.Delete()
                                 tst = FixSO.Update
                                 If tst <> 0 Then
                                     Dim errCode As Integer = 0
                                     Dim errMsg As String = String.Empty
                                     oCompany.GetLastError(errCode, errMsg)
                                     Console.WriteLine(errCode & " " & errMsg)
                                 End If                   
                             Catch ex As Exception
                                 Status = ex.Message & vbCrLf & oCompany.GetLastErrorDescription
                                 Console.WriteLine(Status)
                             End Try
                         End If

  • How to combine the line items of 2 Sales orders into 1 delivry

    how to combine the line items of 2 Sales orders into 1 delivry
    and their process, pre-requisites and tcode

    The prerequisites are:
    1) In the customer master sales area data, shipping tab, there is a field called Order combination. u must tick that.
    2) for the two orders, the sold to party & ship to party must be same
    3) both orders must have created from same plant & shipping points
    4) the line items must have same loading grp.
    5) the both orders sheduline line date must be same.
    transaction code for the same is VL04.
    enter the required data and select the order nos to be processed.
    Do reward points if it is useful

  • How to check, when the Maintenance Order was deleted

    Hello Experts,
                          Can you please tell me of how to check for the maintenance order that when it was deleted and who has deleted that.
    If any T-Code is there or at the Table level also to check the requirement.
    Regards,
    Yawar Khan

    If you want to track when you have put deletion flag, you can track it using above mentioned techniques.
    If you archived (deleted) permanently, then using archival history only, you can check I guess.
    Check these links. While deleting maintenance order, we can hisorical order with same number. Using that creation date, you can track.
    http://help.sap.com/saphelp_nw04/helpdata/en/8d/3e6552462a11d189000000e8323d3a/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/8d/3e4d2f462a11d189000000e8323d3a/frameset.htm

  • How to delete order created against notification

    hi gurus,
    Someone tell me how to delete order created against notification. & also PR created against it.
    Regards,
    Radhika

    Hello
    You can set the deletion flag only when the order is business completed - CLSD status (no open costs remaining on the order). Deletion flag is set to the order when you want to archive the order. Till the order has a CLSD status, the del flag setting in the menu will remain inactive.
    Any open PR created against the order is automatically set to deletion when the order is set to TECO - tech completed status.
    For your scenario:
    If you dont want to use the order and the order is with CRTD status - you can set the 'Do not Execute' flag. It will set the order to CLSD and NCMP (Not completed) status. this will also delete your PR
    In case your order is already released - you will have to set the CLSD status for your purpose
    Regards
    Kartik

  • Deleting line from Order

    I had an order in SBO. It was synchronized do NP. Then i made an shipment for just 3 lines (5 lines in order). i deleted one line from order (this line was not on the delivery document, it will not be delivered).
    In next synchronization i have conflict:
    <b>
    DELETE statement conflicted with COLUMN REFERENCE constraint 'FK_ShipmentDetail_OrderDetail'. The conflict occurred in database 'np', table 'ShipmentDetail', column 'OrderDetailID'.
    The statement has been terminated.</b>
    Is there possibility to synchronize order with deleted line (after shipment)

    Hi Lukasz,
    This is a known bug.
    During synchronization, all line items are deleted and readded if the order is updated.  If there is a delivery document already in place prior to the update, the delete of the line items will cause this error.
    This is fixed in 2007 sp0 p3.
    There is currently no fix for 5.9.
    At the moment, the only way around this is to delete the shipment and shipment detail for this order in NetPoint.
    You can then edit the delivery document in B1 to get the shipment to synch back to NetPoint.

  • How to setup to change status line sale order via shipping transaction

    Hi all,
    When create sale order Qty = 10 and Lot_xx = 10 but i want to reserve qty = 7 and . In this business will be reservation Qty order for jot and lot only
    acction plan below 2 case :
    Case (1)
    Via Release sale order form :
    Enter sale order number and check box prior reservation only.
    Via Shipping Transaction form :
    Line sale order will be slip 2 line
    Line 1 status is stage/Pick Confirm Qty = 7
    Line 2 status id Redy to Release Qty = 3
    Go to ship confirm
    ---> Line 1 status is Interface
    Line 2status is cancle
    ***** I dont want Line 2 is cancle i want this line backorder. I believe oracle will be can setup option to choose backorder or cancle line sale order after release sale order. But i don't know to setup this.
    Case (2)
    Via Release sale order form :
    Enter sale order number and dont dont check box prior reservation only.
    Via Shipping Transaction form :
    Line sale order will be slip 2 line
    Line 1 status is stage/Pick Confirm Qty = 7 Lot_xx
    Line 2 status id stage/Pick Confirm Qty = 3 Lot_yy Automatic select Lot other
    ******* In face I think when reserve spacific and release sale order will be release Qty = 7 only and Qty = 3 is get backorder. But in face Line Qty = 3 status is stage/pick confirm and seletc Lot_yy, i don't want this and how to best solution.
    Best Regards,
    Prathana.

    You can write a simple pl/sql logic to get the correct org id. I am assuming that you have two responsibilities in the same operating unit and one should default with A and one should default with C. Both use the same order type.
    When the resp that is responsible for org A, will have org A from order type.
    For resp that is responsible for org C, you can create a pl/sql logic where you read the current responsibility using fnd_profile.value('RESP_ID'). If the resp_id is responsible for C then return organization_id of C.
    You can find example code for order line entity for attribute tax code.
    Let me know if you need anymore info.
    Thanks
    Nagamohan

  • How to view the cancelled/deleted sales order?

    Hi SAP Gurus
    I there any T.code/Table to view the cancelled or deleted sales order.
    I am not able to view the order even in VA03.
    Regards
    Giridhar

    Dear Sushmitha,
    T. Code: SE16
    Key-in -
    Table: CDHDR - Change Document Header.
    Table: CDPOS - Change Document Items.
    and "Enter". On to next page, Key-in
    Field: Change doc. object (OBJECTCLAS) as VERKBELEG
    Field: Transaction Code as VA02
    Field: Appl.obj.change, as D - Delete, and execute (F8).
    Then you will get object values (sales orders) and document numbers. Pass these two values along with objectclas: VERKBELEG) to table CDPOS to get more details about these deleted orders.
    Also, Go to -
    T. Code: SE38,
    and execute Report: RVSCD100.
    Enter Sales Document Number and Execute. This will provide information, who deleted the order.
    Best Regards,
    Amit

Maybe you are looking for

  • Signature in Apple Mail

    I've added a signature to Apple Mail preferences that has a .jpeg and the option to add it at the bottom of an outgoing mail. The signature works OK with a text email, but when the email itself contains graphics, or an attachment, the signature rever

  • Songs Not Copying to the IPhone

    I get the message, "A song was not copied to my IPhone because I am not autorized to play it on my computer." In all cases, these are songs that I've purchassed through Itunes. How do I correct this?

  • How to eliminate an instance of "entering a sequence call" from the teststand report

    I am using TestStand 4.2 and I am using a long sequence with several sub-sequences.  In these subsequences I am getting test results that I would like to place in the TestStand report.  Currently, in order to do this I have to check the "Record Resul

  • I have 50$ put I can't use because I forget my answer question

    Please help me I have 48$ put I can't use because I forget my I count answer of question can help me please thank you

  • After effects cc keeps disappearing once opened.

    Just installed After effects cc on PC, no issues during installation but the program now opens for 2 seconds before disappearing. No error message is shown, it just closes itself down. Anyone else have this issue? Any suggestions? I have tried signin