Deleting line item in scheduling agreement

Hi ,
The scheduling agreement has 2 line items which are of same material. The first line item needs to deleted as it had the wrong price in it.
We are able to block it but have not been able to set the deletion flag. There were a few GR and IR done but all of them had been reversed.
Kindly suggest a way toset the deletion flag.
Thanks in advance

Hi Vinayak,
  If you have reversed all the documents of that material, then you can delete the material by selecting that in scheduling agreement ME32L.
Regards,
Prasath

Similar Messages

  • Printing of changed line item in scheduling agreement  smart form.

    Hi experts,
    I am facing problem in printing of changed line item in schedule agreement.
    can any body tell me how to find the line item has been changed through programming?what is the procedure to fetch the data for new line item.its
    very urgent for me.
    Please help me in this regard.
    Priti Shrivastava

    Hi
    with the help of  T180-TRTYP field you know if that doc has been changed or created.
    If it is not equal to H it is changed. H means created.
    pass the TCODE of Sched Agreement and check this field.
    You can use the CDHDR and CDPOS table s to get the changed values of new item.
    Reward points if useful
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Corrupted line items in Scheduling Agreement

    I have encountered an issue about Scheduling Agreements. Some items inside the SA's  are corrupted and shows Gross price conditions which should not be the case since this is a ZLP-type SA (SA for Planners).
    As consequence, when we GR for this material, the idocs cannot be posted.The Idoc message indicates that there was an error in the price determination process.
    For workaround, we recreate the items inside the SA and block the existing one. But this is occuring more often so I need to find out it's cause.
    Please help! Thanks!

    I got this message from them:
    "If the issue is concerned with the price determination, please ensure
    you are using the standard pricing calculation schema RM0000 and retest
    the issue."
    How will I know if this schema is the one the system is using?
    Thank you very much. I am a newbie in MM..

  • Function Module to add Delivery Schedule item in Schedule Agreement

    Hi,
    I have a requirement where I have to add Delivery Schedule line items to Schedule Agreement (ME38 transaction code). Well I have try to use Function Module (ME_CONFIRMATION_MAINTAIN) looks like its not working, but when I debug ME38 it is using same FM.
    when I use ME_CONFIRMATION_MAINTAIN separately I am filling up below values
    I_BSTAE  - ASN 
    I_EBELN  - 550000122
    I_EBELP  - 0010
    I_FUNKT - DV
    I_KDATB - 05/03/2000
    I_KDATE - 12/31/2006
    I_MEINS - PC
    I_MENGE -  30,259.000
    I_TRTYP - V
    I_VORGA - LE
    I_WERKS - DD22
    and I am filling up XEKET and not filling up YEKET (I don't know if I have to fill this)
    Please suggest me ?
    Note : mine is SAP 4.7 system
    Thanks
    Sarath

    I resolved the problem myself. Thanks.

  • BAPI_SALESORDER_CHANGE [delete line item and update ]

    LOOP AT itab_ch .
      *IF itab_ch-itm_number = selpos1 AND  delflag = 'X'.*
    *     Delete Line items
        s_order_header_inx-updateflag = 'U'.
        i_order_item_in-itm_number = itab_ch-itm_number.
       schedule_lines-itm_number = itab_ch-itm_number.
        schedule_lines-sched_line = zsd_tab_z-etenr.
        schedule_lines-req_qty = itab_ch-target_qty.
        i_order_item_inx-updateflag = 'D'.
        i_order_item_inx-itm_number = itab_ch-itm_number.
      schedule_linesX-itm_number = itab_ch-itm_number.
      schedule_linesx-sched_line = zsd_tab_z-etenr.
      schedule_linesx-req_qty = 'X'.
      APPEND schedule_lines.
      APPEND schedule_linesx.
        APPEND: i_order_item_in, i_order_item_inx.
    ELSE.
        if itab_ch-item_categ = 'ZFRS'.
    s_order_header_inx-updateflag = 'U'.
        i_order_item_in-itm_number = itab_ch-itm_number.
        i_order_item_in-target_qty =  itab_ch-target_qty.
    schedule_lines-itm_number = itab_ch-itm_number.
    schedule_lines-sched_line = zsd_tab_z-etenr.
        schedule_lines-req_qty = itab_ch-target_qty.
        i_order_item_inx-updateflag = 'U'.
        i_order_item_inx-itm_number = itab_ch-itm_number.
         i_order_item_inx-target_qty =  itab_ch-target_qty.
    schedule_linesX-itm_number = itab_ch-itm_number.
    schedule_linesx-sched_line = zsd_tab_z-etenr.
      schedule_linesx-req_qty = 'X'.
      APPEND schedule_lines.
      APPEND schedule_linesx.
        APPEND: i_order_item_in, i_order_item_inx.
        ENDIF.
        ENDIF.
          ENDLOOP.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument     = vbap-vbeln
        order_header_in   = s_order_header_in
        order_header_inx  = s_order_header_inx
        behave_when_error = 'P'
      TABLES
        return            = it_return
        order_item_in     = i_order_item_in
        order_item_inx    = i_order_item_inx
       schedule_lines     = schedule_lines
       schedule_linesx    = schedule_linesx.
    here line item is delete perfect but when i use  updateflag = 'U'  for other line itme then
    quantity is not modify
    Code Formatted by: Alvaro Tejada Galindo on Dec 26, 2008 10:26 AM

    DATA: s_order_header_in LIKE bapisdh1.
      DATA: s_order_header_inx LIKE bapisdh1x.
      DATA: BEGIN OF i_order_item_in OCCURS 0.
              INCLUDE STRUCTURE bapisditm.
      DATA: END   OF i_order_item_in.
      DATA: BEGIN OF i_order_item_inx OCCURS 0.
              INCLUDE STRUCTURE bapisditmx.
      DATA: END   OF i_order_item_inx.
      DATA: BEGIN OF it_return OCCURS 0.
              INCLUDE STRUCTURE bapiret2.
      DATA: END OF it_return.
      DATA: BEGIN OF i_sched OCCURS 10.
      INCLUDE STRUCTURE bapischdl.
      DATA: END OF i_sched.
      DATA: BEGIN OF i_schedx OCCURS 10.
      INCLUDE STRUCTURE bapischdlx.
      DATA: END OF i_schedx.
    LOOP AT itab_ch .
    s_order_header_inx-updateflag = 'U'.
    IF itab_ch-itm_number = selpos1 AND  delflag = 'X'.
    Delete Line items
        i_order_item_in-itm_number = itab_ch-itm_number.
        i_order_item_in-TARGET_QTY = itab_ch-target_qty.
        i_order_item_inx-updateflag = 'D'.
        i_order_item_inx-itm_number = itab_ch-itm_number.
        i_order_item_inx-TARGET_QTY  = 'X'.
        APPEND: i_order_item_in, i_order_item_inx.
      Fill schedule line flags
      i_sched-itm_number = itab_ch-itm_number.
      i_sched-sched_line = '0001'.
      APPEND i_sched.
      i_schedx-itm_number  = itab_ch-itm_number.
      i_schedx-sched_line  = '0001'.
      i_schedx-updateflag  = 'D'.
      APPEND i_schedx.
    ELSE.
    *****UPDATE TIEM.
      if itab_ch-item_categ = 'ZFRS' .
      Fill schedule lines
      i_sched-itm_number = itab_ch-itm_number.
      i_sched-sched_line = '0001'.
      i_sched-req_qty    = itemdiv.
      APPEND i_sched.
      Fill schedule line flags
      i_schedx-itm_number  = itab_ch-itm_number.
      i_schedx-sched_line  = '0001'.
      i_schedx-updateflag  = 'U'.
      i_schedx-req_qty     = 'X'.
      APPEND i_schedx.
    ENDIF.
    ENDIF.
    ENDLOOP.
    IF errorflag IS INITIAL.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument     = vbap-vbeln
        order_header_in   = s_order_header_in
        order_header_inx  = s_order_header_inx
        behave_when_error = 'P'
      TABLES
        return            = it_return
        order_item_in     = i_order_item_in
        order_item_inx    = i_order_item_inx
       schedule_lines     = i_sched
       schedule_linesx    = i_schedx.
      ENDIF.
      LOOP AT it_return.
    READ TABLE it_return WITH KEY NUMBER = '233'.
          IF sy-subrc = 0.
         CONCATENATE it_return-message  INTO zmsg.
          MESSAGE i000(38) WITH it_return-message .
          EXIT.
           ENDIF.
    ENDLOOP.

  • Text in the scheduling lines of a scheduling agreement.

    hi,
    is it possible to add text some where in the scheduling lines of a scheduling agreement (like how we can insert header text in the line item)??

    yes.I agree with you that in all good processes schedules lines are automatically generated by MRP run.
    On the other hand,some times due to incontigencies we are forced to manually add the schedule.At that time,my client wants to capture those incontigency reasons which he wants along with the schedule lines.
    Please let me know whether SAP has got some way out for this issue.
    Thanks.
    Edited by: r.jeethendiran on May 12, 2011 5:46 AM

  • Copy line items from Master Agreement to SubAgreement

    Dear all,
    As a requirement, we need to create a dummy line item at master agreement and subagreement level to be able to publish them to ERP without need
    to complete line items (they are completed in ERP via a development).
    We have created master agreement templates with a dummy line item but at subagreement level, templates are not available.
    What we are trying to develop is a script on post_create at agreement level to copy line items from Master Agreement to SubAgreement. We are able to get Master Agreement line items and copy them to the SubAgreement, but the subagreement is not created. This is the code we are using:
    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeIfc;
    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanIfc;
    import com.sap.odp.api.doccommon.masterdata.ValueListTypeIBeanHomeIfc;
    import com.sap.odp.api.doccommon.masterdata.ValueListTypeIBeanIfc;
    import com.sap.eso.api.contracts.ContractIBeanHomeIfc;
    Mst_agreementBean = doc.getParentIBean();
    lineItemCollectionSub = doc.getLineItems();
    lineItemCollection = Mst_agreementBean.getLineItems();
    collectionsize = lineItemCollection.size();
    colln = Mst_agreementBean.getCollectionMetadata("MA_LINEITEMS").get(Mst_agreementBean);
    colln2 = doc.getCollectionMetadata("MA_LINEITEMS").get(doc)
    newProject = Mst_agreementBean.getIBeanHomeIfc().createFromAnother(Mst_agreementBean);
    newMember = colln.get(1);
    //  Get Values Line Item
    assCat = newMember.getAcctAssignCategory();
    actLimP         = newMember.getActualLimitPercent();
    delAdCity       = newMember.getDeliveryAddressCity();
    delAdCount    = newMember.getDeliveryAddressCountryRef();
    delAdDist       = newMember.getDeliveryAddressDistrict();
    //... (all fields included in the script)
    // Create Line
    newMember2 = newMember;
    AgreementHome = IBeanHomeLocator.lookup(session, doc.getObjectReference());
    AgreementHome.upgradeToEdit(doc);
    // Set Values
    newMember2.setAcctAssignCategory(assCat);
    newMember2.setActualLimitPercent(actLimP);
    newMember2.setDeliveryAddressCity(delAdCity);
    newMember2.setDeliveryAddressCountryRef(delAdCount);
    newMember2.setDeliveryAddressDistrict(delAdDist);
    //... (all fields included in the script)
    try{
    colln2.add(newMember2);
    AgreementHome.save(doc);
    AgreementHome.downgradeToView(doc);
    collectionbean = colln2.get(0);
    logInfo("Value of  collectionbeanSub " + collectionbean );
    }catch (ApplicationException e){
    logInfo("Error " + e.getClass() + ". " + e.getMessage());
    When we try to create an Agreement under a Master Agreement (clicking Add on Agreement tab), following error message is shown related to the line in blue:
    Facility=local4;sessionid=4e73bb8e73304d6284816f93f4e04522a7c387b; tenantid=#tenant.ecb#;username=LUGUELL; exception=Sourced file: inline evaluation of: ``// **   import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : Method Invocation AgreementHome.save : at Line: 164 : in file: inline evaluation of: ``// **    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : AgreementHome .save ( doc )
    Target exception: java.lang.NullPointerException: while trying to invoke the method com.sap.eso.contracts.ContractTypeBo.getVendorVisible()
    of a null object returned from com.sap.eso.contracts.ContractCommonBo.getTypeBo()
    ;stacktrace=Sourced file: inline evaluation of: ``// *JLA*    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : Method Invocation AgreementHome.save : at Line: 164 : in file: inline evaluation of: ``// *JLA*    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : AgreementHome .save ( doc )
    Target exception: java.lang.NullPointerException: while trying to invoke the method com.sap.eso.contracts.ContractTypeBo.getVendorVisible()
    of a null object returned from com.sap.eso.contracts.ContractCommonBo.getTypeBo()
    Any ideas what is causing the error? What are we missing on our code to copy line items?
    Many thanks,
    Marc Romagosa
    Message was edited by: Marc Romagosa de Riba

    We managed to create a line item at VALIDATE script, but not at POST_CREATE. Either it is a bug or it is not possible at POST_CREATE script.

  • 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

  • Report for deleted line-items in Transfer Orders

    Dear All,
    Please help me in writing the code for "Report for deleted line-items in Transfer Orders".
    regards,
    nishu

    Thanks. Repor completed.

  • How to release Stock blocked against deleted line items from  Sales order.

    We have Scenario as follows.
    Sales order made for  items available in stock.  Deleted few lineitems from sales order balance items delivered and invoiced. Sales cycle is complete in all sense.
    What we have noticed is when we are creating new sales order / Delivery for deleted items from above Sales order it shows deleted quantity is blocked against old sales order. These line items are no longer
    available in old sales order since it is deleted also it is not appearing in open sales order report (VA05).
    Overall stock available is same as quantity mentioned in deleted line item.
    In MD04 - Sales requirenment transaction it shows sales order / line item against which it is blocked.
                    i.e deleted line item.
    How to release these stock and make available for sales. Any standard process available ? or any other solutions
    Thanks & Regards,

    I got a solution for my question from other forum. for info
    Go to SE38 and enter program SDRQCR21 then execute...
    Enter line item which is blocked for sales order in MD04 and enter plant then check Data
    transfer box and uncheck other boxes... It will pop up information and click yes...
    You will get one report and Stock inconsistency will go off and then check it in MD04....
    regards

  • Delivery before the schedule line date in scheduling agreement.

    Hi All,
    I have a situation where in I am using JIT delivery schedule for processing the delivery requirement from customer. In this, lets say, I have a schedule as 08/05/2009 for material A to deliver 1000 qty and the material is made available to me after production as of 07/05/2009 and I want to despatch the material on 7th only and not on 8th. The system does not allow me to do this.It allows me to make a delivery only on 08/05/2009.
    Is there any alternative to this and is this SAP standard behaviour.

    I think you can change the schedule line date in scheduling agreement itself and do the delivery.
    regards,
    Sudhir

  • 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

  • Deleted line item in Purchase Order?

    Dear forumers,
    I need to display data for PO history from the SAP MM module, but I will also need to exclude deleted line item.
    Is it right to check for this deleted line item condition in the EKPO-LOEKZ field? But, what do the values ' ' and 'L' mean here?
    Please help. Thanks!

    L - Deleted..
    space - Not Deleted..
    Thanks
    Amol Lohade

  • 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

  • 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

Maybe you are looking for

  • Windows update error code 80070005

    I am getting an error code 80070005 when I try to update windows. This question was solved. View Solution.

  • HT4718 I recently upgrade my OS and now my MacBook Pro will not boot up

    I recently upgrade my OS and now my MacBook Pro will not boot up

  • Document renewal notification?

    Anyone doe this type of workflow? I need to upload documents and set a renewal date. As that date approaches send an email notification. I was thinking about using BPEL for the process unless there is an easier approach. Thanks

  • Problem in Sending Fax output in Adobe form

    Hi All, I am creating RFQ / Purchase order with output type : NEU, Medium : 2 (Fax). While creating output for the purchase order in transaction ME9F (adobe form), a popup window appears prompting for Output device.(NAST-DEST). For Fax as output medi

  • JSP   Vs  JSPX  in detail

    What really is a jspx ????(i know its JSP Document,but whats its use) .How can it become or is better than my present jsp pages. Give me some light on this issue please. regards, SCOTT.