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

Similar Messages

  • 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

  • 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

  • How to add a New schedule line and update the order quantity?

    Hi all,
       I have to add a new schedule line in VA01/VA02 so that when ther is partial confirmed quantity against a schedule line, we have to create a new schdule line based on the existing so that it will contain confirmed in one and unconfirmed in the other.
    The schedule line will split once the user go to Header data screen in VA01/VA02. So I used USEREXIT_MOVE_FIELD_TO_VBAK  user exits in MV45AFZZ include program.
        I splited the order quantity against the confirmed quantity and added it as new schedule line in the XVBEP internal table and update UPDKZ flags for XVBEP & YVBEP.
      Could anyone tell me is there any other way to do this without updating XVBEP? Because it is affecting some other place because of index table is not updating. How to you think use if update xvbap-etenr_high and update index table IVBEP1 for new line insert into XVBEP instead directly inseritng it into?
    My code as follows:
    xvbep-WMENG = t_temp-WMENG .
    modify xvbep TRANSPORTING WMENG.
    t_temp1- ETENR = '0002'.
    if SY-SUBRC <> 0.
      t_temp1-UPDKZ = UPDKZ_NEW.
      modify xvbep TRANSPORTING WMENG UPDKZ.
    endif.
    With Regards
      Raj

    Have you got thru this one if so please provide me with the solution as i got the same req' ..

  • Confirmed quantity more than the ordered quantity in sales order.

    Hi All,
    We have a situation wherein the confirmed quantity is more than the ordered quantity.
    a.) SO was created for qty1.Two schedule lines were proposed as stock was not available.
    b.) When stock came in and most probablly, when the rescheduling job calling tcode  V_V2 was run, both the schedule lines were confirmed.
    c.) As a result, further processing  is not done by system as confirmed quantity is more than ordered quantity.
    Also we noticed that double schedule line was confirmed for a another order even without the rescheduling job is run.
    Can you please suggest as to why this is scenario is occuring and how we can avoid the reoccurence? Thanks in advance!!
        Regards,
    Jeevan Penumatsa

    Hi  Jeevan Penumatsa
    Welcome to SDN forum
    Generally two schedule lines will take place if stock is not available in your plant or if open orders are there for that material also. So check the stock in MMBE
    .If there are any backorders then it might be getting added in the created sales order and then you might be getting in two schedule lines
    Regards
    Srinath

  • Unable to change the order quantity value during save of sales order

    Hi Experts,
    There is a need to change the order quantity value, based on some conditions, when pressed 'ENTER' or during 'SAVE' of the sales order (VA01, VA02).
    We are trying to change the order quantity value (KWMENG) in table XVBAP in the subroutines userexit_field_modification, userexit_save_document and userexit_save_document_prepare of the user exit 'MV45AFZZ'. But the change is not replicated to field on GUI.
    The order quantity value can be changed in subroutine 'userexit_move_field_to_vbap', but the subroutine is not getting triggered when user changes only the order quantity on screen.
    Please help us in resolving this issue.
    Regards,
    Santosh

    Thanks for your time guys. The issue is resolved.
    SAP is not triggering the vbap user exit as the order quantity on screen is in structure RV45A.
    There are two ways of resolving the issue.
    1. Implement the SAP note #513342 - Quantity change and USEREXIT_MOVE_FIELD_TO_VBAP. But, it is SAP modification note.
    2. Write the code in VBEP exit of MV45AFZZ. This user exit is called whenever the order quantity is changed. But, it is called multiple times in some cases. Hence, need to write code to limit our code execution only once e.g. maintain a global table with our quantity & uom. Check when the quantity and uom in our table is same as quantity on screen. If not, exit from user-exit.
    Edited by: Santosh Kacham on Nov 11, 2011 6:37 AM

  • 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

  • Total of the ordered quantity in sales order

    Hi
    Is there any settings or functionality for the totalling of the order quantity in the sales order as the user requires to see the total number of the units of quantity of order taken and if its less they can still ask for more order from the customer so that the truck is used for its fullest capacity for transport of the materials.
    thanks
    AJ

    Hi AJ,
    In the standard system up to ERP 5.0 you could use weight and volume for aggregation. Not very useful.
    In SAP ERP 5.0, there is a new functionality called "loading units".
    Quick copy/paste from the release notes:
    As of SAP ECC 5.00, SCM Extension (EA-SCM 500) you can use a loading unit in Dynamic Transportation Planning of the DSD Backend process. A loading unit is an additional capacity limit that limits the maximum delivery quantity of a vehicle. A loading unit is a unit of measure that is independent of the units of measure in order processing.
    For aggregation purposes, the delivery quantities are converted into the loading unit using their conversion factor in the material master. The total quantity in the loading unit is calculated in the order and the delivery and displayed together with the aggregation categories. The loading unit is also shown for information purposes in the shipment as the sum of the deliveries contained in the shipment.
    It says SCM Extension, but that's not APO, only an extension, so it is part of the standard system. Even if it is part of the DSD Backend, you might think of using it independently of DSD.
    Best Regards,
    Franck

  • I need to make the ordered quantity field (RV45A-KWMENG) disabled in 'VA02'

    Hi SAP COMMUNITY,
    I have urgent requirement for which i did'nt worked before on this requirement. I hope you people can help me in this regerd.
    My requirement is, I need to make the ordered quantity field (RV45A-KWMENG) disabled in the transaction code is VA01/VA02. User should not be able to edit this ordered quantity in VA01/VA02 Transaction.
    Here the condition to disable this field ordered quantity is IF ORDER TYPE EQUAL TO OR AND IF ITEM CATEGORY EQUAL TO TANN in technical IF VBAK-AUART EQ OR AND IF VBAP-PSTYV EQ TANN then only the field (RV45A-KWMENG) ordered quantity should be disabled in that transaction VA01/VA02.
    Correct me if iam wrong, I think in the program SAPMV45A and do we need to include any screen number which i have seen in VA02 is 4001. Do we need to write a code in Include MV45AFZZ (FORM USEREXIT_FIELD_MODIFICATION.). But i don't know what code i need to write here to disable this field.
    I had searched in the forum some example code so please suggest me whether i can use this and if i can use this please suggest me how to write the condition and insert the code in that FORM. If this sample code is wrong then please suggest me what exact code should be given. Can anyone help. Quick response will be much appreciated.
    Looking forward for ur prompt replies.

    As per my understanding , To disable the field RV45A-KWMENG based on the condition for Transaction VA01/VA02.
    The conditions which i need to check is Order Type and item category.
    I understand that this is the code which i need to insert for disabling the field but i have a question here, where is the condition here and how the system understand for this field RV45A-KWMENG it has to disable. I think we need give the condition as if RV45A-KWMENG....... Another one if iam not wrong we need check that it has to be done in VA01 and VA02 then only this condition should be executed.
    IF VBAK-AUART EQ 'XXX' OR VBAP-PSTYV EQ TANN .
    IF SCREEN-NAME = 'XXX'.
    SCREEN-ACTIVE = 0
    ENDIF.
    ENDIF.
    Please suggest me the better way how can i do it in the coding.
    Awaiting for ur prompt reply.

  • Rounding the order quantity in different Units of measurement

    Hello Experts,
    We need your suggestion to meet the below mentioned client's requirement.
    There are around 200 SKUs in the consideration and three units of measure ( case, carton and pallet  defined for them).We are looking for way to suggest the order qty based on multiples of the unit,  case, carton & pallet Quantities.
    The order will always be placed in base unit PC and system should suggest the best possible combination with a Pop Up message.
    For example with this SKU
    SKU         Unit       Case        Carton           Pallet
    123456      1         12               144              8640
    Customer ordered 10 units during the validation of that line  pop up message should suggest 12 units. (1 case)
    Customer ordered 5 units there should be no suggestion ( 5 units )
    Customer ordered 130 units during the validation of that line  pop up message should suggest 132 units. (11 cases)
    Customer ordered 146 units during the validation of that line  pop up message should suggest 144 units. (1 carton)
    Customer orders 153 units during the validation of that line  pop up message should suggest 156 units. (1 case + 1 Carton)
    Suggestions needs to be able to round up or round down based on the closest combination multiple.
    I have gone through the idea of roudning profile idea but need some more inputs as how to realize the same.
    As one material can have requirement in all alternate units of measurement and we can assign one profile per UoM in Material master and the order quantity is not dependent on any specific customer group so how would the system recogine/derive the best possible combination in different cases for different UOM.
    Pls provide your valable inputs.
    Many thanks in advance.

    I don't think thsi is possible with SAP Standard settings & you will have to apply a User Exit.
    You ABAPer will have to develop a logic based on your requirements & then system can give a pop-up with best possible combination.
    Thanks,
    Jignesh Mehta

  • Wan to Decrease the Order Quantity

    Hi Experts,
    Can we Decrease or increase the sales ordere quantity after partial delivery.And the material processed for MRP also
    suppose sales order qty 10
    partial delivered 05
    and now i try do decrease the qty in VA02 to 08
    but system not accepting, please is there any solution to decrease the qty in sales order
    please help me
    Thanks and regards
    Madhusudhan

    Yes you should be able to decrease the order quantity after a partial delivery, provided the decreased qty is NOT LESS than the partially delivered Qty.
    If it is not allowing to decreae please check if there are any Min Order Quantity or Case Pack qty in the material master. Also please post the error message in detail, it will be helpful in providing more appropriate suggessions.
    Hope it helps
    Regards
    Sai

  • Goods issue quantity exceeds the ordered quantity

    Hi Gurus,
                    I created a sales order with single line item for 100 MT. Subsequently i created outbound delivery against the order. Now the 100 MT quantity gets copied in the delivery. now i created an additional line item in the same delivery for 10 MT against the same material . After this i did the PGI. To my surprise system allowed to do the PGI for this additional item that i had added. Now in this case the goods issue quantity exceeds the Sales order quantity. How can i restrict such functionality.
    My requirement is that the goods issue quantity should never exceed the ordered quantity in any case. Moreover the line items should be copied directly from sales order and there should not be any scope of adding any additional line item during delivery. The outbound delivery document should be copied from sales order and no manual alterations should take place during delivery or PGI . How can i achieve the same . Please help.
    Thanks in advance.

    Also for your delivery document tpye,under order reference,keep item requirement as '201' so that system will not allow any new entries in the delivery.
    Phani Prasad.
    P:S: Please check the forum before you post your questions as this query was answered a number of times earlier.
    Edited by: phani.prasad on Mar 6, 2012 11:29 AM

  • MRP run: how to check the target quantity of Schedule Aggreement

    Hello Gurus,
    We have a requirement when running MRP, creating schedule lines automatically in Schedule Aggreement.
    Currently, the MRP did NOT check the target quantity of Schedule Aggreement. But we need to check this, to make sure the schedule line quantity will not exceed the target quantity.
    I check some note and the solution is use quota arrangement. but quota can be limit the maximum quantity per vendor, not per S.A.
    Is there any way to fullfill this requirement?
    Configuration?
    Or any BAID/enhancement can be implemented?
    Or where to do the modification?
    Please advise, Thanks a lot!
    Regards,
    Charlie

    Hi Charlie
    This is the standard behavior: MRP does not check the target quantity.
    If you want to develop your own code to do that, the only option that I see is MD_MODIFY_SOURCE. This BAdI allows you to define your own logic for the source determination during the MRP run.
    Take a look on the following document for the most common BAdIs on MRP:
    BAdIs for MRP
    BR
    Caetano

  • Partial delivery per item in sales order and ATP - schedule lines

    Hi,
    I've problem regarding ATP- schedule lines and partial delivery flag.
    In sales order there is flag Partial delivery per item B / 1 . That means create only one delivery even with quant 0. That comes from customer master or customer info-record and it is OK.
    Please look at next example.
    Customer requires:
    10 PCS of materail A on date X. Only 5 PCS are available on date X.
    10 PCS of material B on date X 0 PCS are available on date X, 10 PCS are available on date Y.
    So if we create outbound delivery on date X it will contain only 5 PCS of material  A. No successive deliveries will be created for material A because of the flag B/1. That item is closed.
    Problem is with material B.
    The sales order will be open because of material B and on date Y we can easily create another delivery with 10 PCS of mat B.
    That is wrong. Agreement with customer is only one delivery for ALL items in sales order. If we create delivery on date X it should contain only materials which are available on date X and sales order should close.
    Do you know how to fix this problem?

    Hi,
    I've think you didn't understand my requirement. I allways get schedule lines but they are confirmed on different dates.
    Example in same sales order we have:
    Schedule line for item A:
    DATE X confirmed quantity 10
    Schedule line for an item B.
    DATE X confirmed quanitity 0 (zeroe)
    DATE Y confirmed quantity 10.
    I would like to create outbond delivery on date X with:
    item A quantity 10
    item B quantity 0.
    And if that hapens than B/0 rule will work or reference customzing that you suggested before. So order will be closed because all items are processed or referenced once.
    Do you know how to do that?
    Regards

  • Report of sales orders with several schedules lines

    Hi all,
    I try to develop a report for sales orders and delivery info. I need sales order quantity, delivery quantity and the quantity in the scheduled line. But I faced with the problem of several scheduled lines.
    I could not find the relation between delivery information and the scheduled lines of sales order.
    Any function module or other way to find out a delivery belongs to which cheduled line of the sales order ?
    Thanks,
    Utku

    Solved problem

Maybe you are looking for

  • How do i sync ical with google calendar, in that direction

    i have google cal and ical syncset up but it was set up by google telling what to enter into ical. this made my other calendars, all the google calendars i have other than the main one, into "delegates" on ical. whats the reason or process for this?

  • Photoshop no longer working after Lion OSX upgrade ?

    Just upgraded to Lion, and my photoshop no longer seems to be working and has a question mark through it on the icon on the dock ? Is there a fix ? or do we have to wait for Adobe / Apple to fix it...

  • Updating the firmware of an older airport extreme

    I have an early version of the Airport extreme and, probably 1st gen airport express.  Is there anyway to update the firmware on these devices so that they have the most recent firmware versions available to those devices. The only identifying info o

  • SAP Note 1005901 related to MM

    Hello friends,                     Can anyone explain me the below sap note 1005901 (MM module , tcode :- MB5B). I am not able to understand perfectly... 16.08.2010 Page 1 of 4 SAP Note 1005901 - MB5B: Performance problems Note Language: English Vers

  • Can't save sometimes during Indesign

    sometimes when i work in Indesign CC i cant save my work anymore. Its completly random i think. At first i thought it happened when i made an angle with my Bamboo graphic tablet. But that was not the reason. Most of the time somewhere during my work