Deletion of Scheduling Agreement and Delivery Schedule using BAPI

Hi SAP MM Gurus,
Please assist in inquiry below:
My scenario is that I am trying to delete delivery schedules and scheduling lines using BAPIs. I have no issues when there is no GR made yet for the delivery schedules. The error arises when there are already existing Goods Receipts and Invoices for the schedule line that I wish to delete
When using the BAPIs (either BAPI_SAG_CHANGE or BAPI_SCHEDULE_MAINTAIN), I set the deletion indicator to "L" and set to X all change relevant fields (i.e. DELETION_INDX). However, whenever I execute it, I get the error message 06088. The funny thing is both the Quantities and the delivered quantities that are normally populated are left blank.
For example:
Normal error for 06088:
Quantity 100.0 smaller than quantity delivered 179.0
Error using BAPI with deletion indicator:
Quantity  smaller than quantity delivered
Is this a bug of the BAPI? or am I just missing some settings?
Your immediate response is appreciated
Regards,
DeLo

Hi,
Please find the below link check the setting are correct or not
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02cb00a-bfb4-2c10-98aa-e33e7f64ba28?quicklink=index&overridelayout=true
Reagrds,
Pramod

Similar Messages

  • Change Scheduling Agreement and Info Record using Bapi

    Hi Experts,
    Can anybody say how to change the Scheduling agreement and Info Record using Bapi.
    I use BAPI_AGREEMENT_MAINTAIN to change Scheduling Agreement .
    But it does not changing Scheduling lines.

    Hi,
    Please find the below link check the setting are correct or not
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02cb00a-bfb4-2c10-98aa-e33e7f64ba28?quicklink=index&overridelayout=true
    Reagrds,
    Pramod

  • What is the difference between scheduling agreement and delivery schedule

    Hi
    1. Can anyone explain me the difference between scheduling agreement output
        and scheduling agreement delivey schedule
        Will the both look same in T.code SP02 when seeing the output for a document.
        Can anyone send me T.codes for above ones in purchasing.
    2. when seeing the Detailed statement for rebate agreement,there is item number.
        In which table can we see the item number for rebate agreement

    Hi,
    If you have to deal with more complex situations, you can define a delivery cycle in the material master record in addition to the planning cycle. In so doing, you determine the days on whichthe vendor delivers his goods. The delivery cycle is entered in the material master record as a planning calendar in the Planning calendar field.
    You enter a delivery cycle if the delivery date (or the goods receipt date) depends on the day on which you order the goods. For example, you carry out the planning run and place your orders on Mondays and Tuesdays. If you place the order on Monday, the delivery is made on Wednesday, if you wait until Tuesday to place the order, the delivery is not made until Friday
    Where as Planning calander is Three character number (numeric or using letters) that specifically identifies a PPS-planning calendar. The difference between Planning calender and delivery cycle is If you have selected the MRP type "MRP" and have set a period lot-sizing procedure according to planning calendar, you enter here which planning calendar is to be used.
    If you selected the "time-phased planning" MRP type, the planning calendar that you specify here defines the delivery cycle. This specifies the days on which the vendor delivers the material. You can enter the planning cycle in addition to the delivery cycle

  • Global outline agreement and Delivery schedule

    Hi experts.
    I am in SRM 5.5, ECC 5.0 as backend in ECS.
    I would like to have some information about relation between Global outline agreement and Delivery schedule of ECC.
    Can I create GOAs and replicate to ECC as Delivery schedule for automatic generation of schedule lines?
    The schedule lines generated afted MRP run goes to SRM or only goes to SUS if required?
    Thanks
    Nilson

    Hi Nilson,
    The data contained within the global outline agreement is distributed as purchasing contracts or scheduling agreements to the backend systems of the release-authorized purchasing organizations of the relevant corporate group. These purchasing organizations can then use the purchasing contracts or scheduling agreements according to the terms agreed centrally within the global outline agreement.
    For more details.
    http://help.sap.com/saphelp_srm50/helpdata/en/42/f93dfd975f3ee6e10000000a1553f7/frameset.htm
    Nishant

  • Difference between Scheduling lines and Delivery schedule

    Hi SD Experts
    can u say me the clear difference between Scheduling lines and Delivery schedule.
    where we will maintain deliver schedule. whether delivery schedule is automatically created along scheduling agreements..
    with regards
    James

    Hi James,
    Schedule Lines: Has basically information realted to delivery scheduling in Sales Order level.
    Delivery Scheduling: Is a process using which system will determine what are the different activities which need to be performed and time taken for each activitiy only after which the material can be delivered to the customer.
    Delievry scheduling will be started only from the material availability date i.e., system will first determine the material avail date and then do scheduling. By default Standard SAP system does Backward Scheduling in case material availability falls beyond the required delivery date system will do forward schedluing
    Delivery Scheduling consists of the following Basic activities:
    We give deatils while creating order:
    Order Creation Date
    Required Delivery Date
    Order date - Material availability date - Transportation Planning Date - Loading date - Goods Issue Date - Required Delivery Date
    Time Between GI Date and required Delivery Date is called Transit Time
    Time Between LoadingDate and GI Date is called Loading time
    Time Between Material Availability Date and Loading Date consists of 2 components - Pick / PackTime and Transportation Planning Time
    System has to calculate all this before it determines the confirmed delivery date.
    Give your mail Id I have some Presentation I will send you across.
    REWARD POINTS IF IT HELPS
    Regards
    Srini

  • Scheduling Agreements and relevant schedule lines configuration !

    Dear Sapients,
    I request you all to help me in providing the configuration steps for Scheduling Agreements and relevant Schedule lines configuration.
    Its urgent please help me !!
    Regards,
    Sreedhar.
    kodalisreedhar----
    com

    Hi Sreedhar,
    Scheduling Agreement with Delivery Schedules
    Definition
    An outline agreement that is created for one or more materials and outlines the overall expected quantity of the material(s) to be delivered to the customer over a specific period of time.
    Use
    The scheduling agreement is used as a basis for delivering a material. The customer sends in scheduling agreement releases, referred to as delivery schedules, at regular intervals to release a quantity of the material.
    Structure
    The structure of scheduling agreements with delivery schedules resemble that of other sales documents in the R/3 System, in particular the standard scheduling agreement.
    Data that applies to the entire document appears in the header; data about materials appears at item level; and delivery dates and quantities appear in the schedule lines within the delivery schedule. Additionally, the system maintains a history that permits you to compare and contrast various generations of delivery schedules.
    Integration
    Data in scheduling agreements comes from three sources:
    The customer sends in requested quantities and dates, normally by Electronic Data Interchange (EDI)
    The component supplier enters data manually
    The system automatically copies data into the scheduling agreement from master records
    Please go through the below link for further information
    http://help.sap.com/saphelp_47x200/helpdata/en/93/7439fb546011d1a7020000e829fd11/frameset.htm.
    Please Reward If Really Helpful,
    Thanks and Regards,
    Sateesh.Kandula

  • Scheduling agreements with delivery schedule - Copy control

    Hi,
    I wonder, if it would be possible / would make sense to specify for sales document type "LZ - Scheduling agreements with delivery schedule"  a copy control for referenced documents like quotations.
    Is there anybody who already has experience in that field?
    Thank you in advance for your answers.
    Best Regards,
    Melanie

    Hi,
        It is obvious that, a schedule agreement needs to come with the fixed delivery qty and dates.
    Pls explain your requirement in detail so that you will get a clear solution.
    Rgds,
    Sivarajesh. j

  • Scheduling agreements with delivery schedule  - Deviation tolerance

    Hi,
    Within sales order document "Scheduling agreements with delivery schedule" (LZ) it is possible to enter deviation tolerances (e.g. deviation in quantity) manually for each single item line. 
    Does anybody know, if it is also possible to set up firm tolerance groups with assignment to customer / material, which are copied automatically into item lines of scheduling agreements? 
    Thank you for your assistance.
    Best Regards,
    Melanie

    Hi,
        It is obvious that, a schedule agreement needs to come with the fixed delivery qty and dates.
    Pls explain your requirement in detail so that you will get a clear solution.
    Rgds,
    Sivarajesh. j

  • Scheduling Agreement with Delivery Schedule using Idoc messages

    Hi all,
    Can anybody please explain the importance of the field name "LABKY" in Idoc execution for Forecaste/JIT Delivery Schedule.
    My requirement is that when i send a new Idoc i do not want the old schedule line which are not yet released , to be deleted .
    As per the SAP help the use of the field LABKY is related to this , but when i tried its value as "1" , the previous schedule lines are still getting deleted.
    Can you pls explain how to go about it . ( DELFOR/DELJIT Idocs)
    Thank you
    Regards
    Subha

    Hi ,
    The Field
    LABKY : Delivery schedule key
    internal data type : CHAR
    Internal length : 000001 characters
    Position in segment : 026, Offset : 0393. external length : 000001
    Regards
    Seegal

  • Scheduling agreement, unnecessary delivery schedule lines

    Hello
    We use Scheduling agreements for purchasing spare parts. The MRP run checks the warehouse requirements and creates delivery schedule line to scheduling agreement.
    Now the MRP run creates unnecessary delivery schedule lines to scheduling agreement if the earlier created delivery schedule line's delivery date has been changed manually.
    For example,
    Today the MRP run finds requirement for one article  and creates the delivery schedule line, where delivery date is 2.9.2008 (determined from articles basic data).
    The Vendor confirms the delivery date as 3.10.2008 and the purchaser changes manually  (transaction ME38) the delivery date to delivery schedule line accordingly and prints the created message.
    The next MRP run creates new delivery schedule line, where delivery date is again 2.9.2008.
    now there are two open delivery schedule lines for this article with delivery dates 3.10.2008 and 2.9.2008.
    Why the MRP run does not notice the existing delivery schedule line with the new delivery date 3.10.2008?
    we have changed delivery dates manually several years and this has never happened before.
    could you please help me to resolve this.
    Thanks in advance,
    Srikanth

    In addition to the above post,
    as you changed the date manually from 2nd to 3rd....
    so there are was no report for 2nd generated ulitmately...and if generated it was changed...right...
    so when you again run the mrp...the system will generate one more pr for the same article....
    this ultimately happens because of the set del dates in the MMR as i told above..
    Hope it helps..
    Regards
    Priyanka.P

  • Idoc execution in Scheduling Agreement with Delivery Schedule

    Hi all,
    Can anybody please explain the importance of the field name "LABKY" in Idoc execution for Forecaste/JIT Delivery Schedule.
    My requirement is that when i send a new Idoc i do not want the old schedule line which are not yet released , to be deleted .
    As per the SAP help the use of the field LABKY is related to this , but when i tried its value as "1" , the previous schedule lines are still getting deleted.
    Can you pls explain how to go about it . ( DELFOR/DELJIT Idocs)
    Thank you
    Regards
    Subha

    Hi ,
    The Field
    LABKY : Delivery schedule key
    internal data type : CHAR
    Internal length : 000001 characters
    Position in segment : 026, Offset : 0393. external length : 000001
    Regards
    Seegal

  • Scheduling Agreement New Delivery Schedule With & Without Proposal

    Hi Experts!
    I had an issue regarding our scheduling agreements. Issue is below:
    What is the difference between "New Delivery Schedule <b>WITH</b> Proposal" and New Delivery Schedule <b>WITHOUT</b> Proposal"?
    Any responses will be greatly appreciated and points. Thank you for your time!!
    Best Regards,
    WC

    In addition to the above post,
    as you changed the date manually from 2nd to 3rd....
    so there are was no report for 2nd generated ulitmately...and if generated it was changed...right...
    so when you again run the mrp...the system will generate one more pr for the same article....
    this ultimately happens because of the set del dates in the MMR as i told above..
    Hope it helps..
    Regards
    Priyanka.P

  • Scheduling agreement - automatic delivery schedule line generation

    Hi,
    we assign our scheduling agreements in source lists with MRP indicator on 2 (Record relevant to MRP. Sched. lines generated automatically). As we don't know what the future demand pattern for the product will be, a longer validity date of the source list item is entered, in comparison with the actual validity period. However, all new schedule lines which are generated within this validity period are assigned to the scheduling agreement, even if the quantity of the scheduling agreement has been reached (even outside of tolerances). Can this behavior be changed ?
    Thanks for any valuable input.
    Kristof.

    Hi,
    thanks for your reply,
    Generally when we create an SA, user will give the schedule line dates instead of that  the system has to propose the delivery dates.
    My requirement is:
    On the scheduling agreements we need to automatically propose delivery dates based on criteria like every Monday, etc. These dates need to get calculated automatically from the header and then get calculated to each JIT tab at the line item.
    Is there any document which will hlep in getting the Delivery dates automatically,
    am looking into Lz, LZJ but bit confused with these two document types.
    Can you please explain more the functionality of these two.
    Regards
    Nath.

  • Scheduling agreement : No delivery schedule

    I am facing a problem regarding scheduling agreement (it is through JIT delivery schedule)
    where a line item shows a delivery  scheduled for today, but when i got VL01N it shows an error "No schedule lines due for delivery up to the selected date. Message no. VL248
    i've checked in MMBE & CO09, it shows the material as available.I dont see any material reservation also.
    Any Ideas??

    No schedule lines due for delivery up to the selected date
    Message no. VL248
    Diagnosis
    There are no schedule lines due for the given order item up to the date chosen.
    System Response
    The system does not create a delivery item for this order item.
    Procedure
    Check whether the order item to be delivered contains confirmed schedule lines.
    If this is the case, set the selection date further into the future if you still want to create a delivery for this item.
    solution:
    VL01N
    Change the Selection date to another day.
    <<-VL604 | | VL096->>
    Download Link:      Get the Password for the File

  • About selecting Scheduling Agreement and Forecast delivery schedule

    Hi Experts,
    i want to write a Report, with 2 parameters for the selection : Sold-to-party and Period
    For this Sold-to-party/Period, I want to list all scheduling agreement + Forecast delivery schedule.
    I already found the Function SD_VBEP_READ_WITH_VBELN to read all Forecast delivery schedule lines using Sales Doc.No. , but how can I select all Scheduling Agreement for the Period ?
    Regards,
    David

    Solution:
    by selecting data from table VEPVG (Delivery Due Index) and using function SD_VBEP_READ_WITH_VBELN for each SD Document.
    Regards,
    David

Maybe you are looking for