Changes in quantity in schedule lines

Hi,
We are making a sales order with reference to a quotation.The quantities in quotation is getting copied to sales order.Now when we go to the schedule lines of the item in sales order and put the quantities based on delivery date and if the quantity some how increases then the sales order value increases.
e.g
Quotaion qty-10 pcs
10 pcs gets copied to SO.
We go to schedule line and put the qty as:-
10.2.2008-2 qty
12.2.2008-5qty
14.3.2008-3 qty
if we put another schedule line like:
15.3.2008-2 qty
then the so qty gets increased from 10 to 12 with a warning message.I want the system not to allow this.It should nopt allow me to change the qty more than the copied qty.Kindly guide how to do it.
Is there any message control at sales order level.
Regards
Somnath

Hi
Spmnath
Go to Quotation Item Catagory ( Tcode VOV7 ) go to Business data tab there u put 'C' in Completion rule field.
Please try new quation after necessary changes. This changes will not be appllicable for old Sales Documents.
I am sure u will get the answer.
Thx.

Similar Messages

  • Changing the quantity of Schedule line for an product runtime

    Hi CRM friends,
    When I am saving the Order after changing the quantity (say from <b>5 to 10</b>); Now base on some conditions, quantity must be reverted back to the original quantity (i.e to 5). This has to be done while saving the order in a Call back function module. I have the following parameters:
    1. Item Guid
    2. Old Value (i.e 5)
    3. Header Guid
    I have tried using FM “CRM_SCHEDLIN_I_MAINTAIN_OW” using the following code:
    DATA: LS_FIELDS TYPE CRMT_INPUT_FIELD,
    LT_FIELDS TYPE CRMT_INPUT_FIELD_TAB,
    LS_QTY TYPE CRMT_SCHEDLIN_EXTD,
    LS_SCHEDLIN TYPE CRMT_SCHEDLIN_I_COM,
    LT_SCHEDLIN TYPE CRMT_SCHEDLIN_I_COMT.
    LS_FIELD_NAMES-FIELDNAME = 'QUANTITY'.
    LS_FIELD_NAMES-CHANGEABLE = 'X'.
    INSERT LS_FIELD_NAMES INTO TABLE LS_FIELDS-FIELD_NAMES.
    LS_FIELDS-REF_HANDLE = 1.
    LS_FIELDS-REF_GUID = IV_OBJECT_GUID.” A88DE289D91D464C81052646DB6856BB
    LS_FIELDS-REF_KIND = 'B'.
    LS_FIELDS-OBJECTNAME = 'SCHEDLIN_I'.
    INSERT LS_FIELDS INTO TABLE LT_FIELDS.
    LS_QTY-GUID = ls_schedlin_i_new-GUID. “A88DE289D91D464C81052646DB6856BB / 1D72D133BF86FC4F81BC8F0F88438136(From table CRMD_SCHEDLIN passing the item guid )
    LS_QTY-ITEM_GUID =  IV_OBJECT_GUID. “A88DE289D91D464C81052646DB6856BB
    LS_QTY-QUANTITY = lV_OLD_ORDER_QTY.
    LS_QTY-MODE = 'B'.
    LS_QTY-EVENT_TYPE_APPL = 'CRMS'.
    LS_QTY-EVENT_TYPE = 'ORDER'.
    LS_QTY-SCHED_NO_EXT = '0001'.
    LS_SCHEDLIN-REF_GUID = IV_OBJECT_GUID.
    LS_SCHEDLIN-REF_HANDLE = 1.
    LS_SCHEDLIN-MODE = 'B'.
    INSERT LS_QTY INTO TABLE LS_SCHEDLIN-SCHEDLINES.
    CALL FUNCTION 'CRM_SCHEDLIN_I_MAINTAIN_OW'
    CHANGING
    CS_SCHEDLIN_I_COM = LS_SCHEDLIN
    CT_INPUT_FIELDS = LT_FIELDS.
    The code is executing fine, but the quantity changes to new one (i.e. <b>10</b>) Please tell me whether there is a mistake in passing the parameters. For LS_QTY-guid I have tried passing with item guid as well as schedule line guid from the table CRMD_SCHEDLIN.
    Also tell me there is any other way.
    Regards
    Naveen.

    hi use this code in
    order_save-prepare method
    The refrence code is from FM 'CRM_COMP_PROD_INS_AS_SUBITEMS' and include LCRM_COMP_PROD_UIF13
    It does work. I am copying the main line item in sub line item and changing the quantity.
    regards
    M
      cs_schedlin_i-ref_handle        = iv_handle.
    fill input_field
      ls_input_field-ref_handle       = iv_handle.
      ls_input_field-ref_kind         = gc_object_ref_kind-orderadm_i.
      ls_input_field-objectname       = gc_object_name-schedlin.
      get handle
        CALL FUNCTION 'CRM_INTLAY_GET_HANDLE'
          IMPORTING
            ev_handle = ls_schedlines-handle.
        ls_schedlines-mode             = gc_mode-create.
        ls_schedlines-parent_sdln_guid = iv_own_item_guid.
        ls_schedlines-logical_key      = ls_schedlines-handle.
        ls_schedlines-quantity         = 1.
        INSERT ls_schedlines INTO TABLE cs_schedlin_i-schedlines.
        ls_input_field_names-fieldname  = gc_fld_schedlin-handle.
        INSERT ls_input_field_names INTO
                                    TABLE ls_input_field-field_names.
        ls_input_field_names-fieldname  = gc_fld_schedlin-parent_sdln_guid.
        INSERT ls_input_field_names INTO
                                    TABLE ls_input_field-field_names.
        ls_input_field_names-fieldname  = gc_fld_schedlin-logical_key.
        INSERT ls_input_field_names INTO
                                    TABLE ls_input_field-field_names.
        ls_input_field_names-fieldname  = gc_fld_schedlin-quantity.
        INSERT ls_input_field_names INTO
                                    TABLE ls_input_field-field_names.
        ls_input_field-logical_key = ls_schedlines-handle.
        INSERT ls_input_field INTO TABLE ct_input_field.

  • 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

  • Open quantity for scheduling lines

    Hi,
    I need calculate open quantity from scheduling lines(based on date) for Scheduling Agreement (similar like VL10I works). I noticed that open quantity is not maintain in VBEP. So could you help me?
    BR,
    Z

    Hi,
    For calculating open quantity for scheduling lines ,u need to query the sales order number in table VBUK and check the field GBSTK , it will be an open order .
    You can look in table VBAKUK for this .
    This is Join of VBAK and VBUK entries. You can eliminate a join if you fetch it from VbakUk
    Now once it is confirmed that it is open then fetch the entries from VBAP.
    Hope it helps you.
    Thanks,
    Sarita Singh

  • Changing delivey dates on schedule line level in Purchase order in IS AFS

    Hi,
    I want to know if there is any standard transaction or enhancements to change the delivery dates in purchase order on schedule line level in IS AFS scenario on mass.
    Thanks,
    Kumar

    Hi Antony,
    Thanks for the reply.But the transaction MASS is not enhanced for changing delivery dates in schedule line level in IS AFS.
    Thanks,
    Kumar

  • 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

  • Change delivery date in schedule line

    High gurus,
    I need some help. How is it possible to change the delivery date in a schedule line generate by APO ?
    Thanks.

    Hi Thanks for your reply.
    But the Tcode that you have mentioned appears to be in the SCM system and it calls an External Procurement Relationships report. My requirement is as follows:
    I have a date generated based on the Route Schedule id (VL51, VL52) and I need to sync this date with the Goods issue date of the Sales Order created. So whenever a sales order is created with the schedule line dates, i need to modify the dates generated by the system with my dates like I will have to call a FM or a BAPI by passing the new GI date and get the new set of dates and populate them on the Sales Order schedule lines screen.
    This scenario will happen for a GATP (Global Available to Promise) where by the ECC system does a remote call to the APO system to get the new dates. I will have to modify these dates with a new set of dates created either using a FM or a BAPI and populate them again on to the screen
    Thanks,
    Susanth Kumar

  • 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!

  • Query - Delivered quantity at schedule line of Sales Order

    Hi,
    I've realized a sales order report and i need extract for each schedule line the delivered quantity (VBEPD-VSMNG). How can i find the correct values?
    Thanks and best regards.
    Antonio

    Hi.
    You can use the function module RV_SCHEDULE_CHECK_DELIVERIES to get the delivered quantity corresponding to schedule line item  in sales order.
    Please refer below code:
    Internal table it_vbep has got field VSMNG which is the delivered quantity for each line item
      SELECT * FROM vbfa
        INTO  TABLE  it_xvbfa
        WHERE vbelv = <sales order numer>
        AND posnv = <sales order line item>
        AND vbtyp_v = 'C'.
        SELECT  * FROM vbup
        INTO TABLE it_xvbup
        WHERE vbeln = <sales order numer>
        AND posnr = <sales order line item>.
        SELECT * FROM vbep
        INTO TABLE it_vbep
        WHERE vbeln = <sales order numer>
        AND  posnr = <sales order line item>.
        SELECT  * FROM vbap
        INTO  TABLE it_xvbap
        WHERE vbeln = <sales order numer>
        AND  posnr = <sales order line item>.
        CALL FUNCTION 'RV_SCHEDULE_CHECK_DELIVERIES'
          EXPORTING
            fbeleg                  = <sales order numer>
            fposnr                  = <sales order line item>
          TABLES
            fvbfa                   = it_xvbfa
            fvbup                   = it_xvbup
            fxvbep                  = it_vbep
            fvbap                   = it_xvbap
          EXCEPTIONS
            fehler_bei_lesen_fvbup  = 1
            fehler_bei_lesen_fxvbep = 2
            OTHERS                  = 3.
    Regards,
    Sameer

  • 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

  • Withdrawal quantity in Schedule lines

    Hi,
    Can anyone please explain me what is this "withdrawal quanity" in PIR. In t.code md62 we can see it in schedule lines. For example if it is :Planned quantity 300 and withdrawal quanity 200, what does it implies.
    Points Guaranted.
    Regards,
    Suman

    Hi
    When you make GR for the material the withdrawal quantity will be updated.
    The planned independent requirement is reduced during processing of the goods issue. Old quantities can still be retrieved by using either Goto--schedule line history in Demand Management, or by using the total requirements list (Evaluations D isplay total requirements from the Demand Management menu). <b>The quantities issued are displayed in the Withdrawal quantity field.</b>
    The system always reduces the oldest planned independent requirements unless the
    consumption fields (Consumption mode, Fwd consumption per., Bwd consumption per.) are
    maintained in the material master or in the MRP group.
    Please refer this useful and good link
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PPMPDEM/PPMPDEM.pdf
    If helpful reward your points
    Regards
    Ranga

  • Issue with Delivered Quantity in Schedule line level

    Hi,
    I have a situation where the Delivered quantity in the sales order line item is not correct. we tried creating a delivery for a line item ( after the initial partial delivery was made), the delivery document did not get saved, however the sales order line item got updated with the delivered quantity equal to the other quantity. which is now causing the issue that i am not able to create a new delivery against this line item, please let me know on the ways of proceeding. this had happened for quite number of sales orders as the delivery processing job had an issue.
    Tried using SDVBUK00 program ( specific to Sales order status update) but the results were no good.
    Do we have any other methods/ correction programs?
    Regards
    Ilango

    Are you able to create the delivery with ref to sales order again-then what error system throwing here--including the message number....
    Note: here i presume the error like---No delivery relevant items.
    Have you checked your VBFA here??
    Note: once you created a delivery with respect to sales order--just do picking(even without picking)--save this delivery--now check the delivery quantity in sales order--system will update delivery quantity in sales order schedule lines--test this.Here you can do only one thing--either VBFA(follow this delivery number) or delete the delivery document & recreate..
    Pl update--Hope this helps...
    Phanikumar

  • How to get the Deliver Quantity against Schedule Line Quantity

    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?

    Hi,
    U can check the following tables:
    VBEP (Sales ScheduleLines) VBEP-VBELN =VBAP-VBELN and VBAP-POSNR = VBEP-POSNR
    LIPS (SalesDoc:Delivery Items) LIPS-VGBEL =VBAP-VBELN and LIPS-VGPOS =
    VBAP-POSNR
    VBEH (Schedule LineHistory) VBELN POSNR ETENR
    Regards
    Kannaiah

  • 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.

  • CRM-IC Enter the order quantity   no schedule line found

    Hi All,
    we are getting an error message on 'END' button.
    When creating a follw-up record  , the error comes up if the 'END' button is pressed 
      If the save is pressed after create follow up   there is no error. 
    My question is : Is it possible to code for this error in the badi prior to order save .  I would like to save a schedule line with a qty of 1.
    regards  Marlene.

    Hi,
    I don't think its an issue of Copy control. You can try creating the delivery, taking the confirmation date from the sales order. In VL01N, input the shipping point, order number and date(Give the date that is given as confirmed in sales order - Schedule line) enter, do picking and PGI.
    Hope this wud solve your probelm
    Regards
    Vamsi Javaji

Maybe you are looking for

  • What is this symbol on my BB - please help

    I apologize for this, but it's driving me nuts trying to figure this out.  There's a symbol that occassionally shows up on the top of my BB's LCD screen (where all the other info is listed like the time, new message alerts, etc...) that I can't figur

  • Images in CC6 appear soft on screen

    Images in CC6 appear soft on screen until I click and hold in the title bar and move a fraction when they become pin sharp - What's happening?

  • Problems fecthing with xmltable using xmlnamespaces

    Hi, I've the following XML save in a table in a XMLTYE field <ORU_R01 xmlns="urn:hl7-org:v2xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <MSH> <MSH.1>|</MSH.1> <MSH.7> <TS.1>200804090000</TS.1> </MSH.7> </MSH> </ORU_RO1> When I've tried

  • IPhoto5 w/PS Elements & Nikon D70s RAW PROBLEM

    I hear that iPhoto 5 is supposed to work seamlessly w PSE3. I have a problem: new imac, new PSE3 install (w/ Adobe ACR RAW plug-in update). PSE3 will see & access my RAW NEF files just fine from my Nikon D70s. But iPhoto will NOT download them. When

  • Can I supply MAX with a FP2000 run time system to a client

    I find no option to download it from the NI web site. I think that this software will be useful in trying to install a FP 2000 system.