Cancel Confirmation Qty in Schedule Line (VBEP-BMENG)

How is the best way to cancel a confirmation in a schedule through a ABAP Program?
For example in the image attached the second line (000010-0002) should be 5 instead of 15.
I tried the approach bellow (snippet)
  it_extensionin     LIKE bapiparex   OCCURS 0 WITH HEADER LINE,
  is_bape_vbep       TYPE bape_vbep,
  is_bape_vbepx      TYPE bape_vbepx.
is_bape_vbep-vbeln = gs_vbap-vbeln.
is_bape_vbep-posnr = gs_vbep-posnr.
is_bape_vbep-etenr = gs_vbep-etenr.
if gs_vbep-vsmng gt 0.
     is_bape_vbep-bmeng = gs_vbep-vsmng.       * filled by RV_SCHEDULE_CHECK_DELIVERIES
else
     is_bape_vbep-bmeng = 0.
endif.
MOVE is_bape_vbep TO it_extensionin-valuepart1.
APPEND it_extensionin. CLEAR it_extensionin.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
             EXPORTING
               salesdocument    = gw_salesdocument
               order_header_inx = gs_orderheaderx
             TABLES
               return           = gt_return2
               order_item_in    = gt_orderitem
               order_item_inx   = gt_orderitemx
               schedule_lines   = gt_schedule_lines
               schedule_linesx  = gt_schedule_linesx
               extensionin      = it_extensionin.
But the gt_return2 says "Field 'BMENG' cannot be changed, VBEPKOM 000010 0002 ready for input".
Thanks in advance.

Hi Andre,
Why should BMENG for the 2nd schedule line = 5? You have an order quantity = 20. Schedule line 1 has a confirmed quantity = 5. So it seems logical that the 2nd schedule line should have a confirmed quantity = 15.....
You can also use transaction CO06 to manually change the value of VBEP-BMENG for a schedule line rather than creating a Z program to do it.
Hope this helps.

Similar Messages

  • Confirmed Qty -2 Schedule lines

    Hi Forum,
    While creating order system generates 2 schedule lines confirming the products on a date in the second line .
    Eg: I create an order on 17-09-2008 with qty 5 which gets confirmed on 18th-09-08 despite goods being available .
    Lead time in days is blank and i have checked "Propose Delv Date" for the system to pick up current date as Delv date..
    Thanks .
    Suman

    Hi there,
    In VOV8 if you check the propose delivery date, system will automatically propose today's date as the requrested delivery date. But that doesnot mean that it will confirm today;s date as confirmed delivery date. Confirmed delivery date is based on availability check.
    When you check the gods are available for today, may be they are posted as sales order stock or special stock for some other purpose or it may have a reservation.
    For the system to confirm the stock, it should be available in unrestricted. So check if there is any sales order stock or reservation in your case.
    Regards,
    Sivanand

  • Confirmed qty in schedule line to be 0

    Hello frnds my client doesnt want the qty to be confirmed in sales order (schedule line he wants availabilty check to be functioning only in delivery .................even if i remove the availability chk in sales order its giving me schedule lines with confirmed qtities .....plss let me knw hw i could get confirmed qty to be zero in sales order
    Regards
    maddy

    Hi
    To meet your client requirement, you can also look for the option of 'Manual Reservations'.
    You can do the Availability check at the sales order level but the TOR should be deactivated. This will not block the quantities, since the quantities are not assigned to this sales order.
    Now using Tcodes MB21 and MBVR, you can make the manual reservation of stocks by assigning the stocks to the sales orders you wish to.
    Thanks,
    Ravi

  • Zero confirmed quantity in schedule line

    Hi all,
    the confirmed qty in schedule line is zero in one of my sales order & system is giving the message that "no schedule lines due for delivery up to the selected date"
    pls advice
    vikas chhabra.

    Hi Chabra,
    System will show confirmed quantity as Zero in the sales order, if the customer has any credit check. If the customer exeeds credit limit, even though if you proceed then you can see confirmed quanitity as zero, in the sales order.
    Goto VKM3, and give your sales order number, and release it then you can see the confirmed quantity in the sales order.
    And in the delivery if your getting the error as "no schedule line due for delivery for the selected date" means, the confirmed quanity date in the schedule lines in the sales order is not same as the date what your giving while creating delivery.
    Pl check the date in the order and give the same date at the delivery creation screen.
    Hope this is clear.
    REWARD IF HELPFUL.
    Regards,
    Praveen

  • Delivery qty against schedule line

    Hi,
    I have specific requirement for a report where we need to determine the delivery qty against the schedule line qty for a sales order. In sales order in schedule line tab system shows the delivery qty. The field is VBEPD-VSMNG. VBEPD is a structure and I could not find the table in which this is actually stored. Does anybody know how to get the delivery qty for schedule line?
    Regards,
    Sachin.

    Dear Sachin,
    the delivery is always created in the ERP system on the item level. You cannot deliver a separate schedule line. This functionality does not exist.
    But if you go to the schedule line screen then the delivered quantity of the item will be distributed through all schedule lines which have the confirmed quantity. The distribution takes place starting from the earlier schedule line and goes to the later schedule lines and the delivered quantity ordered to a schedule line must be always not larger that the confirned quantity. If there will be undistributed rest of delivered quantity, it will be ordered to the last schedule line.
    This distribution takes place dynamically during the transaction VA02. The main program place here is the function module RV_SCHEDULE_CHECK_DELIVERIES.
    I hope, this information helps you further.
    Kind regards,
    Akmal Vakhidov
    Development Support SAP, Walldorf/Germany

  • How to link Invoice Quantity and Confirmed quantity in schedule line

    Hello,
    I'm working for a report in BW. The user want to compare the invoice quantity to the confirmed quantity in schedule line for a sales order.
    I can't find any table linking these two fields.
    Could you help?
    Thanks a lot
    Jeannie

    Ashish,
    When we link these two tables by Sales Order Number / Item, we would take following result:
    Sales Order    /     Itme     /     Schedule line     /    confirmed quantity   /     actual billed quantity
    1                  /      10        /      1                     /    3                            /              5
    1                /         10      /       2                    /     2                            /             5
    But in fact, for Sales order/itm 1/10, we have only 5 PC billed, not 10.
    When billed 5 PC, I want to despatch it to the Schedule line as 3, 2.
    Regards,
    Jeannie

  • Can not confirm the qty in schedule line in MTO case

    Hi All,
    I used item category ZTAN for Make-to-order purpose when I create the sales order. I set the KEVV for ZTAN in requirement assignment and requirement class 060 is assigned to KEVV.In 060 I set the availiablity is false, requirement transfer is true and Allocation Indicator = 3.
    Then I do below transaction in SAP:
    1/Create sales order
    2/Run MRP
    3/Generate the production order
    4/GR against production order
    5/Create delivery note
    By the way, the strategy group for the my finished goods is 40.
    But in the step 5, the system tell me that not confirmed qty in the order schedule line so that I can not create the Delivery. I go back to sales order and check the schedule line, but and press the button of Item Availiablity, the system can not confirmed the qty for the schedule line. Do any one know what probelm in my setting or oerations?? I will appreciate if any feedback. Thank you in advance.
    Joe

    Hi Friends,
    Any comments please? It is quite urgent.
    BR
    Joe

  • Wrong Confirmed quantity in Schedule lines

    Hi Friends,
    I am creating sales order fo scheuling aggreemnt uinsg function module  SD_SALESDOCUMENT_CREATE
    from online.
    I ma getting wrong confimation date and wrong confirmation quanatity in scheules line  whne I use the above function module.
    I am getting diffreent confirmation dates and confirmation qty n whne I use VA01 and function module SD_SALESDOCUMENT_CREATE.
    Not sure what are the paramters I am missing .
    Please let me know If any one of you has encountered this kind of issue .
    Thanks,
    Siva.

    Hi,
    Just turning off the availability check in material master, doesnt stop the sequence of the requested delivery date.
    Just go through this info.
    Checking Rule
    You use the checking rule to control the scope of the availability check for each transaction in sales and distribution. You also specify whether the check should be carried out including or excluding replenishment lead time. The individual checking rules define by transaction, which stock and inward and outward movement of goods should be taken into account for the availability check.
    Schedule line category
    You can control with the schedule line category whether an availability check and transfer of requirements should be carried out in the sales documents. The possible settings for this at schedule line level are dependent on the settings in the requirements class which is determined from the requirements type of the material.

  • Ungrey Confirm Quantity under Schedule Line

    Hi SD Experts,
    Inside sales order when ordered quantity lets say 10 units, under line item schedule line in confirm quantity column is grey out. Is there a way to configure so that user can change the confirm quantity?
    Currently confirm quantity follows the ordered quantity. In some cases user wants to change the confirm quantity to differ from ordered quantity for reporting purposes to show quantity fulfilled and quantity unfulfilled.
    Please advise. Thanks!
    Regards,
    LEE

    Hi Lee
    But as your requirement is to change the Schedule line item qty feild in modified mode then using transaction SHD0 you can do it .
    But In item data->schedule line data only , you can see ordered qty , but the confirmed qty will be calculated based on the availability check only.Because say if there are more than X no. of orders then the Schedule line date will be calculated and it gives the confirmed qty and the schedule line date also
    Example :
    order qty - 100pcs
    confirmed qty - 75pcs    Delivery date - 15/01/2009
    confirmed qty - 25pcs    Delivery date - 17/01/2009 (Assuming that you have maintained 2 days in MMR)
    NOTE   : But it is not advisable to change that feild
    Regards
    Srinath

  • Some info abt SCHEDULE LINES - VBEP; VBBE for OPEN quantites?

    Hi Experts,
    Pls. clarify me that,
    Am trying to show up the OPEN or BALANCE or BACK quantities in the report FOR EACH SCHEDULE LINE FOR EACH ITEM/POSNR.
    So, I need to look/subtract the VBEP-WMENG, VBFA-RFMNG for Delivery i.e. "J" VBTYP_N and the BALANCE I hv to show up.
    So, pls. let me know How Can I build the logic betwn VBEP, VBFA, VBBE? Is VBBE-MBDAT is comes into picture?
    thanq

    no reply

  • Delivery Qty of Schedule line item

    I have to read out the delivered quantities  of the schedule lines which are under the position. I already have the data from the table VBEP, but I don't have the delivered quantities (VSMNG) in this table. How can I read this information for a sales order?

    It is a calculated value, not a value of a table field. Also, it may lead to wrong results if you don't pay attention to this description of the field here under in bold.
    Delivered quantity in sales units
    The quantity from the schedule line that has already
    been delivered.
    Use
    When there is more than one schedule line for an item,
    the system distributes the total delivered quantity for
    the item across the schedule lines according to the
    sequence of their delivery.
    Example
    A sales order item has three schedule lines, each with
    an order quantity of 50 pieces. You make two subsequent
    deliveries: the first for 20 pieces, the second for 60
    pieces. The delivered quantity for the first schedule
    line is 50 pieces, for the second 30 pieces, and for the
    third zero.
    <b>If you delete the first delivery (20 pieces), the
    delivered quantity for this schedule line is still 50
    pieces.</b> However, the system reduces the delivered
    quantity for the second schedule line to 10 pieces.

  • Is there a bapi for confirming quantity on schedule line?

    Does anyone know of a BAPI for confirming the quantity on a sales order schedule line?
    Thank you,
    Justin

    I was not able to get either of these to do what I needed, so I just wrote a BDC subroutine to confirm the quantity.
    Thanks for your input!

  • Report showing "Confirmed" and "Unconfirmed" Schedule Lines for SA's

    Hi Experts!
    I had an issue regarding our scheduling agreements. Issue is below:
    Open Order Report only shows the "unconfirmed" schedule lines...Is there any way or a report that will show the "confirmed" schedule lines as well?
    This is an urgent matter. Any responses will be greatly appreciated and points. Thank you for your time!!
    Best Regards,
    WC

    In VA05
    execute the required parameters and in settings select the layout with schedule line.
    I think that should solve your issue
    reward points if it helps
    regards
    Biju

  • System to confirm in one schedule line

    Hi experts,
    Is there any way out system should confirm the sales order on the requested delivery date or There should be one schedule line. Even though the ATP is disabled and there are days  mentioned in scheduling in Material Master (MRP1).( Mrp type - vb,lot size hb).Donot want to copy the confirmed date to requested delivery date in order.
    thanks

    Hi,
    GO to MRP2 in material master and check the values for
    Planned Deliv. Time
    In-house production
    GR Processing Time
    also check the Tot. repl. lead time in MRP3 if RLP in unticked. i.e. on
    Thanks,
    Rasik

  • Delivery block with confirm. block on schedule line level in sales order

    We customized a new delivery block with confirmation block.
    When using it in sales order header, it is working correctly: the availability check in APO gATP is executed; but as soon as I save the sales order, the confirmation quantity is set to zero.
    We now need to use this on schedule line level, not on header level. It is not working. Even after saving the confirmed quantity stays as filled by gATP availability check.
    What is wrong? SAP help / documentation officially describe that delivery block with confirmation block either works on header level or on schedule line level.
    Thanks in advance.
    Edited by: Schmidt on Aug 13, 2008 4:47 PM

    Please see if OSS notes 21584 and/or 19488 might help.
    Regards,
    Anisha.

Maybe you are looking for

  • Using variable in the Like Search

    Hello, I am having some trouble in writing the query for the below requirement. I have a variable @LineName whose value is 'WEP3' and the datatype is varchar(50). I have a table called CacheStore which has the below columns ID            SearchWord  

  • IMovie - Poor Video Quality when exporting to "Projects"

    Hi - I'm using iMovie 11' and once I move my video (HD) from "Events" to "Projects" my video quality becomes very poor and the video is cropped. I have changed my setting to have it "fit frame" but the problem still exists. Thoughts?

  • Default where with order by clause

    Hi all How to use Default where with order by clause for example i want to use Default_where clause with order by clause Regards Shahzaib ismail

  • Proper shutdown Imac with external hard drives

    I have an Intel Core 2 Duo Imac. I have a USB 2.0 external drive for Time machine and a firewire external drive for my Photos. 3 questions 1-can you just turn the computer off without concern for the drives (ie) should we put them away first or just

  • Workflow approval of a bunch of documents at folder level : help needed

    Hi As part of the PoC work , I require to create a workflow around some 300+ documents (which are in a single folder and checked in to the ocntent server ) and once a single document is reviewd and Approved , I need to approve all the Documents in th