Delete row menu on sales line item matrix

Can anyone tell me how I can tell which row is being deleting by the menu event for this delete row ( MENU ID 1293)
I want to access the record on the menu event and check some fields but the user does not always have to have a row selected to use this menu. If I put the cursor in the item code field on the first line item even though the row is not selected and hit delete row it will delete the 1st row.
Any ideas?

Thanks for the posting John. I guess I can also use the right click event to get the row?
Would this work the same?
currently i am using
int selRow = myMat.GetNextSelectedRow(0,SAPbouiCOM.BoOrderType.ot_RowOrder);
but of course there isn't always a row selected when the user selects delete

Similar Messages

  • How to highlight the whole row of a particular line item of sale

    How to highlight the whole row of a particular line item of sales order depending on condition?
    Please help its urgent..
    Looking forward your reply.
    Moderator message: please do more research before asking, show what you have done yourself when asking, do not flag posts as "urgent".
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Aug 9, 2011 9:30 AM

    Any ideas on what would cause this NOT to work? I added this row right after the table is created and populated and it is still not highlighted when I enter the form. The snippet of code that does this is:
    MyTableModel modelS = (MyTableModel)dataModel.get("S");
    jTable1 = new JTable(modelS);
    jTable1.setRowSelectionInterval(0,0);MyTableModel is this:
    class MyTableModel extends DefaultTableModel {
      public MyTableModel(Object[] columnNames, int numRows) {
        super(columnNames, numRows);
      public boolean isCellEditable(int row, int column) {
        if (TableKey == 'S') {
          if (column == 6) {
            return false;
        if (TableKey == 'O') {
          if (column == 0 || column == 4 || column == 5) {
            return false;
        if (TableKey == 'P') {
          return false;
      return true;
    }Can anyone help? Thanks.
    Allyson

  • Delete SO after deleing PO line item in Individual Purchase order

    "Individual Purchase order"
    if i create SO with individual PO then PR is created automatically and i convert this PR to PO if i want to delete So line item i can't because it's linked to PO.
    I deleted this PO line item and i tried again to delete SO line item the same information message comes u can't delete SO because it's linked to PO however PO is deleted.

    You can reject the line item in Sales Order rather than deleting the sales order.
    Thanks,
    Ramesh
    PS: please award points if you find my information useful.

  • Direct sales line items not appearing in VF04 even if MIRO document created

    Hi,
    Some of the direct sales line item are mysteriously not appearing in VF04, even though the MIRO for the PO related to it is done. In some cases all the items of sales orders are not appearing in VF04 , in some cases it is happening randomly. Such items can be process manually through VF01 . Also if report SDVBUK00 is run , these line items are seen in VF04.
    Kinldy reply .
    Mamta

    Dear Uday Kumar Narayanappa ,
    I think as a consultant you have the say in deciding how the things should be mapped in SAP than the USER.
    I dont find any  reason other than having the same user id being shared between multiple users (and hence variant cannot be used).
    Anyways try this.
    Make a Z program copying VF04 .
    Give the Tcode which is agreeable for the users.
    In that Z program , write a code NOT TO CONSIDER documents of type ZNEW.
    Now limit the authorisation of this new program only to those users who doesnt not want to deal with ZNEW.
    Hope it helps.
    Thanks & Regards,
    Hegal K Charles

  • Sales Order Items Matrix and RDR1 table

    Hi,
    I have to change values of some columns in SO item matrix.
    For e.g, I need to change the 'order quantity' of a particular SO row.
    Is there any mapping between RDR1 table, and the matrix row#?
    i.e, if I want to change linenum= 3 and Vis_Row = 3 of a RDR1 row, how can I find out which row# in matrix I have to change?
    Generally matrix row# is RDR1.Vis_Row+1, but not always.
    The exceptions will be: If there is a text comment in SO, or the lines are deleted,...
    Please let me know how I can achieve the mapping.
    (I dont want to search in all of the matrix lines for a RDR1 match.)
    Thanks in advance.
    Regards,
    Geetha

    try this select
    select row_number() over(order by t.visorder, t.itemcode desc), * from
    select r.itemcode, r.dscription, r.visorder, r.linenum from ordr o, rdr1 r where o.docentry = r.docentry and o.docentry = 83
    union all
    select '', linetext, aftlinenum, lineseq from rdr10 where docentry = 83
    ) t order by t.visorder, t.itemcode desc

  • Sales line items

    Hi All,
    we are posting sales invoice. for FI document 1800 line items are there.  It is giving message" Maximum number of line items reached for FI document.
    please tell me what is process. while posting more than 999 line items?
    Thanks

    you need to look at summarization.
    I.e. changing the 1800 lines in to say 120 unique entries.
    I.e by date, material or Profit Center.
    Speak to an ABAP'er about defining this.

  • Remove Billing Block on a Sales line item with Billing Plan

    Hi All,
    I need to remove/clear “<b>Billing Block</b>” on a sales order line item which as been attached to billing plan. Sales order line item can have more then one “<b>Billing Plan</b>” line item. Based on <b>billing date</b> I want to remove Billing block. Any hints or direction much appreciated. Thanks in advance.
    Kind Regards,
    Tim

    Hi,
    Use the BAPI BAPI_SALESORDER_CHANGE to remove the billing block in the sales order line item..
    Pass the item number ORDER_ITEM_IN parameter
    Pass the item number, UPDATEFLAG = 'U', BILL_BLOCK = 'X' in the ORDER_ITEM_INX parameter..
    Thanks,
    Naren

  • 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 &lt;&gt; 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

  • FM/Transaction/BAPI to delete sales order line item in APO

    Hi,
    Could you please share the details of FM / Transaction / BAPI to delete sales order line item in APO?
    Tcode - SDORDER_DEL / FM - BAPI_SLSRVAPS_SAVEMULTI2 delete the complete order with all its order items.
    Even the OM function modulesdelete the complete order. We could not locate a BAPI/FM for deleting only specific line items of a Sales order...
    Thanks,
    Arvind.S

    Hi Arvind,
    Can you try the below:-
    Function module : BAPI_SLSRVAPS_REMOVEITEMS
    Bapi object type: BUS10501
    Using this, one can delete One or More Sales Order Items / Schedule Lines.
    Please confirm
    Regards
    R. Senthil Mareeswaran.

  • Delete Row (1293) always disabled with matrix

    I have a maxtrix whose menu-item 'Delete Row' (menu uid 1293) is always
    disabled, even though its 'AllowRowDelete'-property is set to 'true'.
    What could be the problem here ?
    (I have several other matrixes on which it just works fine,
    only on this one matrix, I cannot get it to work. Very strange).

    ok,
    than enable the menuUID with
    oForm.EnableMenu "1293", True
    but you have to program the remove line function by yourself
    regards
    David

  • Delete Row In Matrix

    Hello All,
    I have a UDO and a form for it. The UDO has a child table, which is binded to a matrix in the form. Everything works well except Delete Row in the matrix.
    If I don't do anything when Delete Row menu is clicked, the row is deleted. But as soon as Update button is clicked, a new empty row gets added to the matrix and the underlying table.
    The same happens even if I catch the delete row event, do the delete myself and then set the bubbleevent to false.
    Is this the default behaviour. What is the workaround to avoid this addition of new empty row.
    Following is the code I am using for deleting the row. I've used various combinations of this code to the same affect.
            Dim oMatrix As SAPbouiCOM.Matrix
            Dim RowIndex As Integer
            Try
                If oForm.Mode <> SAPbouiCOM.BoFormMode.fm_FIND_MODE Then
                    oMatrix = oForm.Items.Item("AC_MX01").Specific
                    RowIndex = oMatrix.GetNextSelectedRow
                    If RowIndex <= 0 Then
                        Exit Sub
                    End If
                    oForm.DataSources.DBDataSources.Item("@AC_SMP1").RemoveRecord(RowIndex - 1)
                    oMatrix.DeleteRow(RowIndex)
                    'oMatrix.FlushToDataSource()
                    'oMatrix.LoadFromDataSource()
                Else
                    Exit Sub
                End If

    Hi Rahul
    Try this code
            Dim oMatrix As SAPbouiCOM.Matrix
            Dim RowIndex As Integer
            oMatrix = oForm.Items.Item("AC_MX01").Specific
            For RowIndex = 1 To oMatrix.RowCount
                 If oMatrix.IsRowSelected(RowIndex) = True Then
                     oMatrix.DeleteRow(RowIndex)
                     oMatrix.FlushToDataSource()
                     If form.Mode = 1 Then form.Mode = BoFormMode.fm_UPDATE_MODE
                     Exit For
                 End If
           Next
    Hope this helps....
    Kind Regards
    Arun TB

  • Sales Order line item issue

    Hi sap Gurus,
    Is there any way i can delete one of the  the line items in a  sales order once it is been saved other than putting reason for rejection.
    Thanks
    Edward

    Hi Ramesh This is the details
    Message no. V4140
    Diagnosis
    You have tried to delete a sales document item that is assigned to a project but this is not possible.
    Procedure
    Please enter a reason for rejection in the item.
    In general if you would like it to be possible to delete items that have been assigned to a project, but which still do not have a WBS element, go to Customizing -->  'Define variable messages' and change the message category to blank.
    Thanks
    Edie

  • Can't catch the matrix row for Deleting Rows

    Hi,
    I've already read related topics but couldn't solve the problem.
    I catch the Delete Row menu event 1293, but then I can't save the deleted row in an array since it's no longer listed as a selected row.
    All the matrix rows return
    oMatrix.IsRowSelected(i) = False after catching that 1293 event.  
    Trying BeforeAction True or false didn't solve that problem.
    What am I missing ?

    it sounds like a bug.
    here is workaround: in oMatrix-itempress event try to store selected rowIndex in your variable - so, when you catch 1293-menuEvent you'll know which row you should save - it'll be value of your variable.

  • Not able to delete line items using BAPI_OUTB_DELIVERY_CHANGE

    Hi,
        Not able to delete line items of a delivery using BAPI 'BAPI_OUTB_DELIVERY_CHANGE', with thte below code and even return parameter has zero messages.
    I have even checked existing below posting.
    https://www.sdn.sap.com/irj/scn/logon?redirect=http%3a%2f%2fforums.sdn.sap.com%2fthread.jspa%3fthreadid%3d782509
    Below is the code that i am using.........
    *wa1-deliv_numb = wa_lips-vbeln.
    wa1-deliv_item = wa_lips-posnr.
    APPEND wa1 to item_data.
    wa-deliv_numb = vbeln_so .
    wa-deliv_item = l_item.
    wa-del_item = 'X'.
    APPEND wa TO item_control.
    w_header_data-deliv_numb = vbeln_so .
    w_header_control-deliv_numb = vbeln_so .
    w_delivery = vbeln_so .
    *w_header_control-dlv_del = 'X'. "Delete whole Delivery
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
      EXPORTING
        header_data    = w_header_data
        header_control = w_header_control
        delivery       = w_delivery
      TABLES
       item_data      = item_data
        item_control   = item_control
        return         = return.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = 'X'.
    I have even  tried uncommenting item_data parameter but not able to delete line item.....i am able to delete whole delivery but not line items .........can any one of u help me in resolving this issiue plz ???
    Regards,
    M, Manohar

    Kindly use WS_DELIVERY_UPDATE to delete the items
    Sample code:
    L_VBKOK-VBELN_VL = vbeln_so.
    clear l_vbpok.
             refresh l_vbpok.
             l_vbpok-vbeln_vl = vbeln_so
             l_vbpok-posnr_vl = wa_deliv_item.
             l_vbpok-lips_del = c_x.
             append l_vbpok.
             set update task local.
             call function 'WS_DELIVERY_UPDATE'
               exporting
                 vbkok_wa = l_vbkok
                 commit   = ' '
                 delivery = lv_delivery
               tables
                 vbpok_tab = l_vbpok
               exceptions
                 others   = 0.
             commit work and wait.

  • Deleted Service PO line items are appering in ME28

    Dear SAP Experts,
    I have created one service po with 2 line items. One line item has plant 'X' and that line item has been deleted by me, in second line item has different plant 'Y' . While releasing the PO using ME28 transaction deleted po lintem also appearing in that?
    Kindly suggest what will be the reason for that?
    Thanks & Regatrds,
    Amruth.

    Hi
    For purchase order release strategy is triggered at Header level i.e for total document  not  for individual line items.
    When you try to release at ME28 also it will release total document and I could not able note where you are getting line numbers in ME28.
    Please let me know if you have any further query.

Maybe you are looking for

  • Open iView in new window in fullscreen

    Hi, I would like to open an (URL) iView in new window and maximize it size to expand on all the screen. Something like: width=100% height=100%. Unfortunatly, the window feature properties does not allow this, it only allows passing width and height i

  • Cancel (reverse) Return Order, PGR not possible due to storage bin in 904

    Hi gurus hope someone can explain in detail with transaction what am I missing since I'm MM guy and dont know very well SD transactions but here's my scenario, There is a return order with a delivery (1110500002), then PGI (651), this drive me to pro

  • Setting connect timeout and read timeout on a Web service Client

    How can I set timeout values for a SOAP Web service client? I don't want to set timeout values for the complete JVM, but on a call-by-call basis. I was looking for something like:   SOAPConnection c = ....   c.setTimeout(...);Anyone?

  • My Windows 8 is asking for mediaaccessibility.dll file.

    I have installed and repaired the latest version of iTunes 5 times now. But I cannot launch it without an error message that the mediaaccessibility.dll file is missing. I get this error message: Error 7 (windows error 126)

  • MIAW issue in windows not starting movies over

    I have created a simple application that has a play and stop button in one window that activate another MIAW that plays a quicktime movie file. On a MAC when I click play it starts the video from the beginning and when I click the stop button its sto