Urgent : Issue with deleting Line Item in ME22N

Hi all,
I have an issue with deleting line item in ME22N for some Purchase Orders.
When I try to delete the line item, a warning message comes up saying that " Quantity invoiced or delivered is less than the quantity ordered". And I am unable to proceed further and save the PO. Could anyone let me know as why this is happening?
Thanks in advance.
Regards,
Adapala.

Hi
there is no need of group key.
if any of these 3 are done, payment will be done in total.
1.In setup all company codes for payment transactions , DESELECT seperate payment per business area check box
2.In setup paying company codes for payment transactions , DESELECT seperate payment for each reference check box.
3.In the Vendor Master got to payment transactions tab and below the payment method , there will be individual payment checkbox. DESELECT that check box.
try again with first two with DESELECT options , i will check out with DME.
Cheers

Similar Messages

  • URGENT: Delivery with multiple line items for a STO

    Hi Gurus,
    We ar ecreating deliveries using VL10b for a STO. Teh TSO has 40 - 50 line items. But the delivery is created with one line item only an dit creates a delivery for each line item. How cna we allow the inclusion of multiple line items in delivery?
    We are using delivery type NL an ditem categor is NLN.
    Geratly appreciate any help in that.
    Thanks,
    KHAN

    The problem you face is called 'Delivery split'.
    For the STO scenario, one common cause is different delivery dates (in the past) in the STO line items. If so, then you should refer to SAP Note 377501 (from where I quote below):
    You can implement the source code specified in the correction instructions in copy routine 301 (or a copy of this routine in the customer namespace). This correction ensures that when you transfer data form the preceding document, backlogged delivery dates or goods issue dates are set to the current date. This prevents the system form performing a delivery split.
    Then a rescheduling of the delivery occurs. Since forward scheduling occurs for backlogged delivery items (that is, the picking date or the transportation planning date is set to the current date), the manipulation of the delivery date or goods issue date in the copy routine does not affect the result of the scheduling.
    If the dates are not the problem, then this Note refers to other Notes which deal with this problem, and should definitely solve your problem.
    Regards
    Nikhilesh

  • PO Total value Unchaged With Deleted Lines Items

    Hello;
    I have a question about total value of purchase orders where lines have been deleted. the PO was created, saved and deleted four of the line items (not locked), yet the total value for release is still includes the deleted lines. I tried to replicate the same problem but I couldn't, can someone help me. Thanks
    Ibou

    Dear Ibou,
    External purchasing documents (i.e. purchasing documents other than requisitions) are released at header level. Item-by-item release is not possible.
    Hence, it will take total value when you release.
    Hope this will resolve your query.
    Regards,
    Naveen.

  • Smartforms issue with displaying line items

    Hi All,
    I had a requirement where in which in the main window Five line items and then the corresponding values of line items below in the same main window.
    Example :
      01      item1_description       value1    value2
      02      item2_description       value1    value2
      03      item3_description       value1    value2
      04      item4_description       value1    value2
      05      item4_description       value1    value2
      01      Jass                            value1    value2
      02      Jass                            value1    value2
      03      Jass                            value1    value2
      04      Jass                            value1    value2
      05      Jass                            value1    value2
    if the value increases they go to next page the number of line items displayed will have the corresponding values to
    be printed in the same page and in the main window.
    Please help me how to do this.
    Thanks & Regards,
    Durga Naresh
    Edited by: NareshBD on May 12, 2011 10:58 AM

    I sense this will be either impossible or quite hard to accomplish.
    What i dont understand is: why dont you go for the approach to print all you info regarding one line item into ONE line like:
    01 item1_description value1 value2 01 Jass value1 value2
    02 item2_description value1 value2 02 Jass value1 value2
    03 item3_description value1 value2 03 Jass value1 value2
    04 item4_description value1 value2 04 Jass value1 value2
    05 item4_description value1 value2 05 Jass value1 value2
    that again would make things very easy.

  • In ME22N deleted line item should not be Re-activate

    Dear Sap Guru's
                         For Purchase order in T.code ME22N deleted line item should not be reactivate.
    If i create some line items in this t.code and i delete these items then ince again someone wants to views these they he should not be able to view the deleted line items.
                        plz give me reply as soon as possible.Urgent

    hi
    version management
    SPRO –> Material Management –> Purchasing -> Version Management .
    After activating version management you can see the Version tab in ME53N near to source of supply tab in PR.
    http://help.sap.com/saphelp_srm30/helpdata/en/46/882fdd8bfc1743bd5ef8b532f94402/content.htm
    SAP Enterprise Buyer provides you with version management for purchasing documents. As a first step, you can display versions of purchase orders and contracts.
    The system creates a version in the background if you, as a purchaser, carry out one of the following actions:
    · You change a posted purchase order
    · You order a posted purchase order again
    · You change a contract that has already been released
    · You release an already released contract again
    In contrast to the change documents that retain a change history, a version displays the status of a document at a specific point in time.
    Version management provides a check for you as a purchaser, for example, if you wish to display a purchase order in the form in which you transferred it to the vendor on day X. A version provides clarity, for example, in negotiations on a contract.
    Features
    You can use versions as follows:
    · Display
    · Compare and list differences in tabular form. The comparison result has separate areas that can be displayed:
    Header data (including organizational data, tax and payment data; partner data and documents)
    Item data (including taxes and limits if they exist; partner data, documents; account assignment and conditions)
    · Archive, if it relates to transaction data (you can archive versions of purchase orders, but not contract versions)
    You cannot change or output versions. This is only possible for the active document.
    Also, visit the following thread:
    regards
    kunal

  • Certificate of Origin with multiple line items in sapscript - Urgent Please

    Hi Everyone,
    Can you please help me with this issue in SAPSCRIPT.
    This is for billing document with multiple items with each line item with different country of origin.Right now the form is printing only one country of origin even if it has 3 line items each with different country.It's getting first line item's country and printing......but it should diplay each country with comma separated... But in debug it is showing all 3 different countries but in print it is printing only first country of origin.
       I have given text element as &VBDKR-TEXT& in form.
    In ABAP program I am getting country of origin like this,
    CLEAR : V_T005,VBRP , MARC  .
      LOOP AT TVBDPR.
      SELECT SINGLE * FROM VBRP
        WHERE VBELN = VBDKR-VBELN AND POSNR = TVBDPR-POSNR .
    begin of addiiton for ppr 13661
      CLEAR MCH1.
    SELECT SINGLE HERKL FROM MCH1 INTO MCH1-HERKL WHERE MATNR = VBRP-MATNR
                                           AND CHARG = VBdpR-CHARG.
      IF MCH1-HERKL NE ' '.
        CLEAR MARC-HERKL.
        MARC-HERKL = MCH1-HERKL.
      ELSE.
        NAME = VBDKR-VBELN.
          PERFORM HEADER_TEXT1 USING 'VBBK' 'Z065' NAME SY-LANGU.
        IF SY-SUBRC EQ 0.
          READ TABLE TEXT_LINES INDEX 1 .
          IF SY-SUBRC EQ 0.
            VBDKR-TEXT = TEXT_LINES-TDLINE.
          ENDIF.
        ELSE.
          SELECT SINGLE * FROM MARC WHERE MATNR = VBRP-MATNR
                                    AND   WERKS = VBRP-WERKS.
        ENDIF.                                                  "ppr 13661
      ENDIF.                               "PPR 13661 ADD
      CLEAR *T005T.
    data:SEP(3) VALUE ' , '.
    DATA: BEGIN OF ITAB OCCURS 100,
           LANDX LIKE VBDKR-TEXT,
          END OF ITAB.
    clear ITAB.
      SELECT  LANDX FROM T005T INTO table itab WHERE SPRAS = SY-LANGU  AND
    LAND1 = MARC-HERKL.
    LOOP AT itab.
    VBDKR-TEXT = ITAB-LANDX.
    *MOVE VBDKR-TEXT TO ZLAND.
    AT NEW LANDX.
       concatenate ITAB-LANDX sep into VBDKR-TEXT.
    ENDAT.
    modify ITAB.
    VBDKR-TEXT = ITAB-LANDX.
    ENDLOOP.
    endloop.
    Thanks in advance.

    Hi
    It depends on the size of the main in the page, you can set the high of main in order to print max a certain number of rows (so items).
    In this way you don't need the abap control, but the system automatically will print the first page with 15 row and the next with 25

  • Undeletion of line item through ME22N

    Hi all,
    In PO i have a line item for which GR and invoice reciept is done. Deletion indicator is set for this line item. Now when I am trying to undelete the line item it is giving error as " Order unit cannot be changed"
    But when I am Undeleting it through ME22 it is allowing to undelete it . Why so?
    How can I undelete the line item through ME22N.
    Thanks and Regards
    Chetan

    what changes are made to the PO before this message comes up.
    What changes do you you have in the PO at all?
    the message is triggert in SAP include  MM06EF0M_MASSEINHEITEN
    And SAP compares and old unit with a new unit.
    And in case your PO has already been quantity  or invoice received then it will not allow the cahnge.
    Debug the include wenn the message is triggert and compare the 2 unit fields.
    See OSS note 662054 and 655365. They explain some circumstance when the message is issued.

  • Cannot delete line item from sales order

    Hi Gurus,
    Need your expert helo for the following issue :
    A sales order was created in CRM with 3 line items, the first and 3rd line item being the same.The order was successfully replicated to ECC.Now on the CRM side the 3 rd line item was deleted and another item was entered which doesnot exist in the system.The system gave 2 errors indicating that the item doesnt exist in the system which is valid.Now when we are tryng to delete the line item(3rd item which doesnt exist in the system) the system doesnt allow it .If there were any subsequent docs for this order it would make sense that order doesnt allow any changes on the CRM side but there is no delivery doc created yet.
    Seems like the order is in some confused state.Can you please suggest what can be done to make sure that line item 3 can be deleted and changes on CRM side reflect to ECC.
    your suggestions will be greatly appreciated.
    Will reward with points.Thanks in advance.

    Hi Venkat,
    I think once you create order..system will not allow you to delete the line Item completely. Now do one thing open a sales order and try to delete the line item..it will not delete it. But if you go to status column of same line item...it will show the status as 'rejected'. This means that order is not placed for that material. And the requirement will not be shown in APO. This is as good as deleting the line item completely.
    thanks
    Kushal
    reward points if help

  • FS10N balance not tie with FBl3N line item totals

    Hi
    I searched the forum for posting on FS10N and FBL3N incorrect balances and I did not any post appropriate for my issue. Hence I am posting my issue here.
    For a particular month, say 072010, FS10N GL balance does not tie with FBL3N line item totals. I am not sure why. In our case, we did not archive any line items and this is not related to year end carry forward. Year beginning GL balances look fine. We dont have any negative postings. Only few GL balances are off. We are using 4.7 version.
    Do you know why this inconsistency and how to rectify it? Is there any program which I run apart from Yead End carry forward?
    any ideas really appreciated.
    Thanks

    Hello
    We have already this trouble.
    To correct it you need to proceed like this (when NewGL is not activate, with new Gl there is one new programm)
    Without newGL
    - Block account to be posted (transaction FS00 Block for posting in the company view)
    - Delete open item, by using the programm RFSEPA03 (you need to adapt it by a copy because if you don't you can't run it), also this programm will unflag your account in the company view
    - Delete line item by the standrd program RFSEPA04
    - Create the line item by the standard program RFSEPA01
    - if this account is managed by open item, run the programm RFSEPA02 (you need to do the same adjustement of the RFSEPA03)
    With NewGL, there is something new. the program RFSEPA02 is linked with a new transaction and you don't have to adjust it FAGL_ACTIVATE_OP. The difference is when you create the open item, you have to define the default profit center and default value depending of the customizing of the leading ledger.
    BBest regards
    Philippe,
    Thanks for the rewards.

  • 2LIS_11_VAITM - Deleted Line Items

    I am having an issue with sales order line items that have been deleted.
    I load my data using 2LIS_11_VAITM into a DSO EDW Layer. I then pass this up to another DSO layer. I noticed that users were deleting line items from Orders and this was causing me an issue in my data. To remove the problem I have linked ROCANCEL to 0RECORDMODE in the Technical rule up to my EDW layer and now in my EDW layer the line item goes completely when it is deleted out of the ERP system ad the deletion is passed into BW.
    I got the idea for this from here Deleted line item appears in BI report
    My problem lies in the layer above where I am still left with a line in the DSO relating to the deleted line. But the KF are zero. Is there anyway to also get this line to be deleted out as per my EDW layer?
    Thanks,
    Joel

    Hi Joel,
    What is not completely clear to me is what happens in the first DSO. Are the deleted records removed from the active table or are the key figures set to 0?
    Furthermore, what is update rule for key figures: overwrite or addition (in the transformation to both DSOs)?
    The record mode is indeed the crucial factor. It must become clear which one is delivered by the DataSource: 'R' for a reversed record or a 'D' for an entire deletion? And what is the record mode in the update to second DSO?
    Best regards,
    Sander

  • BADI: ME_PROCESS_REQ_CUST  Detecting a Deleted Line Item?

    I have implemented this BADI for mapping and for defaulting GL Account Numbers that we read in a custom ZMAPPING_Table. All of my gl account mapping logic is in the 'PROCESS_ACCOUNT' method in this BADI. Just an FYI, there is some code in the 'PROCESS_ITEM' method in this BADI, for another process, as well.
    It is important that I keep track of the line items and their related GL Account Numbers, Material Groups, and all other line item data entered data during the create and change of a Purchase Requisition in a global internal table during runtime. It is working well.
    The issue is that I need to identify when a line item is being deleted in the P.R. during runtime Then,  I can delete the entry in the internal table as well.  When I delete a line item in the P.R. the logic always seems to break in the 'PROCESS_ITEM' method, and never the 'PROCESS_ACCOUNT' method.
    Is there a delete line item indicator, variable, flag, or field, that I can check during runtime in the 'PROCESS_ITEM' method in my ABAP code to see if a line item is in the process of being deleted in the P.R.? it would probably be easiest to validate this in the 'PROCESS_ITEM' method during runtime since we have some code in this method, and it always enters that logic when a line item is deleted. Below are the objects that are being read. If someone has the answer, I'd sure be happy to get the OO code for it as well, since I am still getting my feet wet with OO.
      Thank-You, Tom M.
    INCLUDE mm_messages_mac. "useful macros for message handling
      DATA: ls_mereqitem   TYPE mereq_item,
            l_matkl        TYPE t023-matkl.
      CLEAR: ls_mereqitem.
      ls_mereqitem   = im_item->get_data( ).
      l_matkl = ls_mereqitem-matkl.
      CONDENSE l_matkl.
    * Check if user is using an OLD material group
      DATA: ls_t023  TYPE t023.
      CLEAR: ls_t023.
      SELECT SINGLE begru
        FROM t023
        INTO ls_t023-begru
        WHERE matkl = l_matkl.
      CASE ls_t023-begru.
        WHEN 'OLD'.
    * PRJ0010029 Begin of Change
          IF sy-tcode = 'ME52N'  OR
             sy-tcode = 'ME52'.
            mmpur_message_forced 'W' 'ME' '303' text-002 text-003 '' ''.
          ELSE.
            mmpur_message_forced 'E' 'ME' '303' text-002 text-003 '' ''.
          ENDIF.
    * PRJ0010029 End   of Change
        WHEN OTHERS.
      ENDCASE.
    * PRJ0010029 - End
    Edited by: Tom Matys on Oct 6, 2011 4:55 PM
    Edited by: Tom Matys on Oct 6, 2011 4:55 PM

    You can check the value of the field LOEKZ of the PR item MEREQ_ITEM.
    DATA: ls_mereqitem   TYPE mereq_item.
    ls_mereqitem   = im_item->get_data( ).
    if ls_mereqitem-LOKEZ = 'X'.  " Item deleted
    endif.
    Regards,
    [Naimesh Patel|http://help-abap.zevolving.com/]

  • 2LIS_02_ITM deleted line items are not reflected in BW

    Hi,
    Our current Data flow 2LIS_02_ITM-->DSO-->CUBE.
    I am analyzing a Invoice, When it is created 01.04.2014 it has got 10 Line Items and all the data is load to BW,Invoice with 10 Line items.
    In ECC I can now see the same Invoice only got 5 line items and from change log I can see 5 line items are deleted on 15.04.2014.These changes are not reflected in BW.In BW invoice data still shows 10 line items.
    If I perform setup table job and ECC RSA3 for that invoice I am getting only 5.
    I believe it’s something to do with 0RECORDMODE,Can you please let me know how to fix this in BW.
    Thanks

    Yes this is a known behavior in case of deltas.
    For Deleted line items Rocancel field will have an entry with R.
    To handle this you need to map ROCANCEL field in Technical group of transformation (Between Datasource to DSO) with 0Recordmode.
    Once you will do that then after activating the data in DSO it will nullify the records and deleted order or item will not appear.
    Regards,
    AL

  • Deleting line items in sales order.

    Hi All,
    I got as issue while creating the order.
    issue:
    I try creatin an order by deleting some of the line items and the customer got the credit check. when i tried chek in the debug mode the deleted line items are not reflecting in the internal table.
    Is there any user exit availble thru which i can delete the line items from internal table on the basis of UPDKZ ffield?.
    Regards,
    Neslin.
    Edited by: neslin on Jan 16, 2008 8:21 AM

    Hi,
    This is the standard SAP behaviour.
    ...Seems development inside a relevant include is the only fix to achieve this.
    Regards,
    Anubhav

  • Add or Delete Line Item in Billing Creation (VF01)

    Hi,
    During the billing document creation (VF01) for Order-Related Billing (example: Doc Type F5 - Pro Forma for Order), can you
    manually add or delete line items?
    Let's say if Sales Order was created with 3 line items and only 2 line items should be included in Billing Doc F5.  During the
    billing document creation (VF01), it automatically copies all 3 line items.  How can I delete the line item that I don't want
    to be included in Billing Doc F5?  Only way that I know is to put a billing block on Sales Order item so it won't automatically
    copied into a billing document.  But this process is inconvenient.  After F5 document is created, my user will then need to
    remember to go back to Sales order and remove a billing block from that line item.
    Also vice verse, can an item be manually added to a billing document during the creation mode (VF01)?  Is there somewhere
    in the configuration that I can change to allow this?  Or is it a standart SAP practice all items on a billind document have to
    be Order or Delivery-Related?
    Thanks,
    Michelle

    Hi,
    While creating the invoice via VF01. Please go to selection list icon. this will take to you another screen. here you can select the line item you want to copy/bill.
    Please try and let us know.
    Thanks,
    Vishal

  • Create ecatt script for one sales order creation with multiple line items

    Hi ,
    I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
    This selection of data will be from an external file/ variants which will have only one row of data in it.
    Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
    Second: I have to create sales order for those many line items having same PO Number.
    Best Regard
    Taranum

    Hi Micky
    Firstl you should upload the Line items for a particular sales Order in an Internal table
    and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
    In case of any issues pls revert back
    Reward points if helpful
    Regards
    Hitesh

Maybe you are looking for