Change Confirmed Qty in Sales Order User exit/ATP User exit

HI
We have a requirement to change the ATP Qty for certain meterials & Order Types  duing sales Order User exit(FORM USEREXIT_MOVE_FIELD_TO_VBEP.? ) or ATP User exit.( ATP...OUT?).
Is this ok to update the XVBEP in FORM USEREXIT_MOVE_FIELD_TO_VBEP of MV45AFZZ ?
Our requirement will be like this, for one order type ZSAL( and for certain Materials)  we need to reserve 4 qty, if any order comes with 10 qty and the confimed qty is only 6( total available stock at present) , then we should only confirm  2 qty for the other order type( For Non ZSAL Order Type), and reserve the 4 QTY for ZSAL Order Type.
If there are multiple schedule lines for an Item, we need to reduce the qty equally( as possible) from all schdule lines.
i.e. date1 qty 4
     date2 qty 6,
in  this case we should confirm  Date1 QTY 2, date2 qty 4, so that the remaining 4 will be reserved for ZSAL Order type.
Whats the Best way to achieve this ?
Edited by: agrud agrud on Sep 8, 2011 4:01 AM

Hi Agrud,
Did you check the possibilities with configuration.If it is not possible with configuration then you can use that exit.Before i used this but only to display not to change any thing.
Regards,
Madhu.

Similar Messages

  • Change Confirmed qty. in sales order

    Dear SAP gurus,
                             After creation of sales order i want to change confirmed qty. in sales order how it can be done ??
    Please help,
    Regards,
    Amit Patil

    Hi,
    You can use transaction CO06 to change commitments manually.

  • Can we change ATP confirm qty in sales order?

    Hi All,
    Is it possible to change confirm qty in sales order when run ATP check? This is a rounding issue.
    We have a material with sales unit box and base unit EA, 1BOX =  20 EA, but in storage we just have 8 EA. When we create a sals order, the qty will be 0.4 box...can we rounding it to 0 because we just want to ship it by box.
    In sap help I get some comment to use userexit EXIT_SAPLATPC_002, but no detail, pls help me!
    Andy

    Hello,
    Do a google search.
    Further, for our fill or kill function we use MV45AFZZ.
    Regards
    Waza

  • Credit re-block after confirmed qty in Sales order

    I have a problem with credit checking in sales order. Credit goes on hold again after I comfirmed qty in sales order.
    My steps are as follow. (I don't have stock in warehouse but I need to create sales order).
    1. Create a sales order 120 L
    2. Credit goes on hold and it is not confirmed qty
    3. VKM3 or VKM4 to release credit block. qty is still not confirmed as I don't have stock.
    4. Add stock 120 L to warehouse
    5. VA02 to update confirm qty 120 L in schedule line
    6. After saved the order, credit goes on hold again.
    Why credit reblock again? Please advise. Thank you very much.
    Darin

    hello, friend.
    the sales order goes under credit control again each time you re-determine schedule lines.  i believe the system considers the following possibilities:
    1.  customer credit situation has changed over time
    2.  material selling price has changed over time
    3.  material cost of goods has changed over time
    however, let's wait for the other consultants to give their opinions.
    regards.

  • Confirmed qty on sales order delivery

    HI,
    In sales order transaction VA02,
    there is a plant in which there are 2 storage locations say S1, S2.
    S1 has qty of 2000 and S2 has qty of 1500
    Suppose i enter the order quantity 2001.
    If i enter the storage location S1, then confirmed qty cannot be more than 2000.
    If i enter the storage location S2, then confirmed qty cannot be more than 1500.
    But if i do not specify any storage location, then confirmed qty is automatically set to 1500 (max of storage location S2).
    Does any one has any idea about the reason for this?
    Regards,
    Richa

    Hi Richa,
    During the delivery creation, an availability check may take place - if it has not been turned off in the item category in transaction 0VLP.
    The availability check works on a multiple level logic. Therefore, it will check at Plant Level AND at Storage Location Level (And other other levels if you are working with batches). This prevents an overconfirmation situation from occurring and is alluded to in SAP note 89362.
    In your example:
    Plant Stock = 3500 [Plant Stock is usally an accumulation of the various storage locations]
    S1 Stock = 2000
    S2 Stock = 1500
    During delivery creation, a storage location will be determined (Usually based on OVL3 settings). Therefore, if S1 is determined, the system will determine that there is 3500 available at plant level and 2000 available at storage location level. The system will proceed to confirm the lowest of these levels which is 2000 - only 2000 are considered available. Similarly, if storage location location S2 is determined, the  system will determine that there is 3500 available at plant level and 1500 available at storage location level.  The system will proceed to confirm the lowest of these levels which is 1500 - only 1500 are considered available.
    It is possible to turn off the storage location check in OVZ9 to force the system to check just at plant level. However, you need to consider if you really want the system to not check your storage locations. Also, if you are working with batches, this indicator will be "ignored" in certain cases.
    Hope this helps.

  • Reg: confirmed qty in sales order

    Hi SD gurus,
    I have an issue in confirmed qty. I have created the sales order with the qty 27900 but the system has confirmed 26100, but the delivered qty in schedule lines is 27900 and i am able to deliver 27900 qty. why the system has allowed me to deliver greater than the confirmed qty.
    In general system will allowed to deliver  less than or equal to the confirmed qty.
    Please provide me your valuable inputs on this.
    Thanks and regards,
    Hari Challa.

    Dear Hari
    It is really surprising that despite "B" is maintained for item category, you could do PGI in excesss of stock quantity.
    Please check in VTFL copy control for the combination of your delivery type and billing type and check for the following:-
    At Header Level
    Copying requirements::::003
    Determ.export data::::::::(Blank)
    Assignment Number:::::::E
    Reference number::::::::::E
    Similarly, select the item category and see what is maintained for the field "Billing quantity".  It should have been "B" there.  Similarly, below there is one more field "Pos./neg.quantity".  It should have been "+" there.
    thanks
    G. Lakshmipathi

  • Change available quantity for Sales Order line during ATP control

    Hello,
    When sales order is created and item line is entered I need change available quantity for material. I mean not ATP quantity but available quantity (MCHB-CLABS for material/plant - I need remove some batches from logic)
    Could you tell me when I could add my enhancement for above purpose?
    Thanks in advance,
    E

    Did you try the assignment (Enhancement) ATP00001?

  • I  wants to change material details in sale order , delivery  & billing

    dear guru
    I  wants to change material details in sale order , delivery  & billing
    becuse user entered wrong deatils but condition is same no range to be mantained in sale order ,delivery& billing
    Regards,
    Maha.U

    Hi,
    If Material A - Description Vicks is created in Material master n if you want the same material with change of description for respective customer,you can change the description like Vicks XL while creating SO in Description of Material line item.
    Same can be displayed in invoice as well.
    Thanks
    Shri

  • Itu2019s showing confirmed qty more that order qty in sales order

    Dear Guru's
    I am working on production server issue; the issue is delivery has been created more that sales order qty.  When I am seeing sales Oder schedule lines itu2019s showing confirmed qty more that order qty in sales order what could be the reason can any help me on this.
    Regards
    DNR

    Hi DNR,
    first up, appreciate if you can use your real name instead of DNR , I'd love to see your actual name.
    Coming to the question, a deliery can be created more than the ordered quantity. And if you pick whats delivered - that can show as confirmed too..
    Standard SAP just throws a warning indicating this over delivery. And incase you want to prevent this happening - you can trigger an user exit to change this warning to error.
    Config is also possbile if you have setup your cust mat info record or sales order to check over delivery and set the item cateogry for delivery. You can go to t.code 0VLP( Zero VLP) select Over Delivery -  'B' for delivery item category.
    Regards
    Sadhu Kishore

  • Delivery quantity greater than confirmed quantity in sales order

    Hi experts,
    Quantity in delivery order can be changed to more than the confirmed quantity in sales order when there is sufficient stock. (Setting "Check overdelivery" in 0VLP already maintained "B-Situation rejected with an error message").
    Anyway in system to check only "confirmed quantity" can be delivered?.
    Regards,
    Liang

    Thanks Ankur for your reply.
    The "Overdeliv. tolerance" in customer master allow customer to deliver more than the quantity in sales order.
    But my situation here is to control the deliver quantity base on confirmed quantity in sales order.
    For example, i have quantity 10 for an item in sales order, and i only confirm 5 to deliver. Let's say my stock has more than 15 quantity, during DO creation, system will proposed 5 but i can manually change quantity to 10.
    I would like to control only confirmed sales order can be delivered. Is this only can control using user exits?
    Best Regards,
    Liang

  • Confirmed quantity in sales order

    Hi,
    For sales order deilivery, check is performed at three levels:
    Plant level, storage location level, batch level.
    The settings are maintained in OVL3 and OVZP.
    I tried to change the settings in OVL3 for storage location..
    I maintained a storage location for a plant corresponding to a storage condition.
    This is the way it behaves:
    Eg : Total stock : 3500
    Stock in S1 : 2000
    Stock in S2 : 1500
    No storage location maintained while creating delivery (VA02) in all the following cases.
    Case1: Order quantity 2009, Storage location in OVL3 is S1.
    Confirmed Qty : 2000
    Case2: Order quantity 2009, Storage location in OVL3 is S2
    Confirmed Qty : 0.00
    Case3: Order quantity 2009, No Storage location maintained in OVL3
    Confirmed Qty: 2000
    Means it always picks up the qty to be confirmed from one storage location (S1) if it is either maintained or left blank in OVL3.
    If another storage location S2 is maintained in OVL3, then confirmed Qty is 0.00. It does not confirm the qty w.r.t the stock available in s.loc S2.
    I am unable to figure out the reason for this.
    Kindly provide your inputs.
    Regards,
    Richa

    Dear Richa,
    Usually stock in plant level only gets determined in sales order level. this is because , storage location will not be automatically detemined in the sales order level.
    i.e, if the delivering plant has 3500, it will get determined irrespective of the storage location as storage location level stock is not considered.
    In your case, if you are finding this on any client server, check whether any exit is used because
    there is a exit 'USEREXIT_SOURCE_DETERMINATION' which is used to automatically trigger storage location in sales order level, so that in this case storage location stock is relevant.
    Check and revert back.
    Thanks & Regards,
    Hegal K Charles

  • Reserve available Qty at sales order with activating "Check W/out RLT" in OVZ9

    Dear Experts,
    I have below requirement:
    1. My client wants to sell the goods which are kept in Show room only (No Requirements are transferred to MRP, No future schedule line created).
    2. If stock is there in showroom,then for those stocks only availability check should be checked and confirm (reserve) the order or else order should not be saved.
    3. As and when client saves sales order for 1 Qty, Avlbl check in CO09 should be reduced by 1 Qty. If it is not reduced client can book N number of such orders (which is not accepted)
    4. Qty should be booked against each order (no Qty no sales order should be saved)
    5. No Planning, No MRP views maintained for that material but availability Checking Group is 02.
    6. Once the order is saved that material is blocked for that order only unless client cancels that order, material will not be allowed to use further. 
    7. OVZ9, OVZI and VOV6 screenshot attached,
    thanks in advance
    Regards
    Ramesh G

    You have mentioned all the steps and settings that you have maintained. It looks per these settings (with SAP standard ATP functionalists), most of the requirements steps can be fulfilled.
    For step 4. Qty should be booked against each order (no Qty no sales order should be saved), you need to use user exit to fulfill the requirement. The logic could be if there is no confirmation at the schedule line, the system provides hard error with relevant message and not allow to save.
    Check user exit USEREXIT_CHECK_VBEP in Include MV45AFZB, or user exit USEREXIT_SAVE_DOCUMENT_PREPARE in Include MV45AFZZ to provide relevant error message.
    Regards,

  • How to prevent change payment term in sales order?

    Hi,
    My client not allow sales admin. to change payment term in sales order. How to do this? (by standard SAP functions or authorization)
    Thanks & Regards,
    Jr.SD

    Either you can run T.Code shd0 or apply User exits in the program MV45AFZZ - USEREXIT_MOVE_FIELD_TO_VBAP to achieve this.
    thanks
    G. Lakshmipathi

  • Material 1001 automnatic changed to 1111 in sales order?

    Hi,
    i'm looking for a possiblity to change an specific material in an sales-order.
    If the User creates an sales-order (VA01) and inserts material 1001, the system shell automatic
    change (with information) 1001 to 1111.
    This change-information shell be set in material similar like Pricing Reference Material.
    Is this possible in standart or have i to use an user-exit?
    thanks.
    Regards, Dieter

    Hello,
    It could be because of material determination. Check in VB13 for the material 1001, whether the material 1111 is maintined as the substitution material?
    Prase

  • How to control not to confirm quantity in sales order schedule line

    Hi,
    We have a problem with confirmed quantity in sales order schedule line.
    When I reject a position in a sales order, confirmed quantity still remains with quantity ( diferent to 0).
    I need in some cases that system not to confirm quantity in schedule line at item level.
    I've tried to do this with a new routine in OVB8 transaction, but it didn't work.
    Could you help me? How can I avoid the system to confirm quantity in a sales order item?
    Thanks in advance....

    Hi Lakshmipathi,
    I'm sorry. The rejection was a bad example.
    I need, in some cases, that the system doesn't confirm quantity in sales orden item. We have a custom field in sales order item and we need to confirm with 0 quantity , when that field has a specific value.
    Due to that field is a custom field, I need an exit, or rutine, or .. i don't know...to inform a standard field too ( delivery block, rejection...) something to get confirmed quantity to 0.
    I've tried with rutine in OVB8. But It didn`t work
    I've tried with delivery block, but with this all items in sales order, confirms with 0. I need at item level.
    Thanks

Maybe you are looking for

  • Delete photos from photo stream but keep in iphoto?

    I want to delete the pictures in my photostream on my phone, but I know once I do this they will be deleted from all other devices. How can I save all my photostream pictures that are already in iphoto and then remove them from my phone without them

  • Issue with P table and X Table of master data ZGN_PROD

    Hi Experts, I am facing issue when I carried out existence of values for navigation attributes in characteristic ZGN_PROD in RSRV. Its showing "Characteristic ZGN_PROD : 74 data records were incorrect" Please tell me how to correct the error without

  • Jump distance is too large and cannot be generated.

    In smartforms the error  "Jump distance is too large and cannot be generated" is displayed . The detailed error desciption is : A jump distance is too large and cannot be generated. A control structure or a routine with "CHECK" or "EXIT" contains too

  • Asset not getting depreciated properly on life basis.

    Hi I created one depreciation key Z011. Its on life basis. Now i created legacy asset through AS91. Total life was 5 years and expired life as on date of upload is 3. Hence remaining useful life is 2 years. WDV pending as on upload date is Rs.98000.

  • Events in Photo

    Does anyone know how you can retrieve your 'events' (merged from photos taken on camera and phone)? I have lost all of this and don't know how to retrieve. To day I am annoyed doesn't come close! MacBook Pro (Retina, 13-inch, Late 2012) Processor 2.5