User exit to change quantity of delivery

Hello All
I am having a question regarding Delivery creation.
Here is the whole scenario.
Sales Order is there which will be having one line item. Now Using VL10A/VL10B, A delivery will be generated in the back ground. But before this I want to change the quantity which is coming from Sales Order as this delivery is reference to Sales Order. I tried MV50AFZ1 exits but it is not helping me out.
I will explain taking an example just to make sure.
Lets say SO is having item A of 100 tons. Now a delivery will be created with reference to this SO. But based on route capacity I want to change the quantity in Delivery. Means If my route aloows 20 tons capacity I want to change the 100 quantity which came from SO to 20. So SAP will set SO status "being processed" and will remain open till these 100 tons are not used.
But I could not find Userexit, Enhancement, BADI for this. I already checked MV50AFZ1, BADI "LE_SHP_DELIVERY_PROC" and some enhancement spot. but they are not working for this particular scenario.
Any Idea how to handle this.
Shah

You can use the Data Transfer Routine for your purpose.
You need to create a Data Transfer Routine in the VOFM > Data Transfer > Delivery. There are some std routines avaliable. You can copy the most relevent in your code and have your code to change the quantity. Check this document for more information on VOFM - [Inside VOFM|http://saptechsolutions.com/pdf/InsideVOFM.pdf]
You need to assign this new data transfer routine in the Copy Control of the Delivery at the "Copy from the Sales Order to Delivery."
Regards,
Naimesh Patel

Similar Messages

  • User Exit for Changing Quantity in Process Order , COR1, COR2

    Hi All,
    Can anyone point me towards the light in User exit related to COR1 and COR2.After the Creation of Process order  while saving i need to write a code that rounds off the quantity values.
    I tried to change the values in the below user exits but i was not succesfull.
    CCOWB001            Customer exit for modifying menu entries
    COIB0001            Customer Exit for As-Built Assignment Tool
    COZF0001            Change purchase req. for externally processed operation
    COZF0002            Change purchase req. for externally procured component
    PPCO0001            Application development: PP orders
    PPCO0002            Check exit for setting delete mark / deletion indicator
    PPCO0003            Check exit for order changes from sales order
    PPCO0004            Sort and processing exit: Mass processing orders
    PPCO0005            Storage location/backflushing when order is created
    PPCO0006            Enhancement to specify defaults for fields in order header
    PPCO0007            Exit when saving production order
    PPCO0008            Enhancement in the adding and changing of components
    PPCO0009            Enhancement in goods movements for prod. process order
    PPCO0010            Enhancement in make-to-order production - Unit of measure
    PPCO0012            Production Order: Display/Change Order Header Data
    PPCO0013            Change priorities of selection crit. for batch determination
    PPCO0015            Additional check for document links from BOMs
    PPCO0016            Additional check for document links from master data
    PPCO0017            Additional check for online processing of document links
    PPCO0018            Check for changes to production order header
    PPCO0019            Checks for changes to order operations
    PPCO0021            Release Control for Automatic Batch Determination
    PPCO0022            Determination of Production Memo
    PPCO0023            Checks Changes to Order Components
    STATTEXT            Modification exit for formatting status text lines
    Reason was the data related tp materials was not accesble at this point and residing in resb internal table .
    Any suggestions ? Ideas  ?
    Thanks in advance,
    Gowri

    Hi,
      Try with BADI <b>WORKORDER_UPDATE</b>.
    Regards

  • User exit to change Delivery type

    Is there a user exit to change the delivery type when creating delivery wrt a sales order.
    Thanks.

    Use BADI   LE_SHP_DELIVERY_PROC
    Edited by: abhishek shukla on Sep 24, 2008 12:00 AM

  • Need to know the user exit to change unlimited check box in delivery tag

    Need to know the user exit,
    To change the <b>unlimited check box(</b>EKPO-UEBTK) in <b>delivery tag</b> of <b>item details</b> for tcode <b>ME21N/ME22N</b> on <b>SAVE</b>. 
    Thanks in Advance.
    Baburaj

    HI Baburaj,
    Use the BADI ME_PROCESS_PO_CUST to change the unlimited check box(EKPO-UEBTK)
    Implement the BADI and insert the code in the method PROCESS_ITEM
    Example code :
    *Data Declarations
    DATA: ls_mepoitem TYPE mepoitem,
          ls_mepoitemx type mepoitemx,
            ls_customer TYPE mepo_badi_exampl,
            ls_tbsg     TYPE tbsg.
      INCLUDE mm_messages_mac. "useful macros for message handling
    *here we  get item data
      ls_mepoitem = im_item->get_data( ).
    *work area for price value
    data : begin of it_eban,
      banfn type  mepoitem-banfn,
      bnfpo type  mepoitem-BNFPO,
      pries type mepoitem-NETPR,
    end of it_eban.
    *Get the Purchase requisition price from EBAN table
    select single banfn bnfpo preis from eban into it_eban
                                            where
                                              banfn = ls_mepoitem-banfn
                                          and bnfpo = ls_mepoitem-bnfpo.
    *if entry is available.
    if sy-subrc eq 0.
    *check if price is zero
        if it_eban-pries EQ 0.
    *if zero, set FREE field of PO to 'X'.
          ls_mepoitem-uebtk = 'X'.
        endif.
        endif.
    *Set updated fields
    CALL METHOD im_item->set_data
    EXPORTING
    im_data = ls_mepoitem
    Reward if Helpful*****

  • User Exit for Pick Quantity

    Hi All,
    Please let me know user exit for Pick Quantity.
    We are doing picking without ware house management. while creating the delivery, pick quantity should be same as delivery quantity.
    while creating the delivery on the first screen it self picking quantity should be displayed.
    Please also let me know in which table pick quantity gets stored if the picking is without warehouse management.
    Thanks and Regards,
    Shravan G

    Hi.
    I believe the standard way to do this would not be by coding a user-exit, but insead working with Delivery Groups and Output Messages. Your SD consultant should know how to do this.
    Delivery group:
    A delivery group is created when you work with batch creation of deliveries (transaction VL10A etc). You can also create a delivery group on transaction VG01 and manually enter the deliveries that make up the group.
    Output Message:
    There is a standard output message called SK00 which will do what you want - copy the delivery quantity to the picking quantity on non-WM controlled storage locations. You have to create the condition records for this message on transaction VVG1. However, this is a Group-related message (see transaction NACO to see it), so you can't put this directly on the delivery (which would be easier I think) and that's why you have to work with Groups.
    As far as my SD knowledge goes, this is the right way to do this. If you can't work with groups, you should try working with the standard delivery exit MV50AFZ1, form move_field_to_lips.
    Regards,
    Sergio

  • User Exit for Changing G/L account in Accounting Document

    hi all,
    This one is urgent for me. If you guys can help.
    Iam looking for a user-exit to change the G/L account while posting the accounting document.
    If someone has worked on a similar user-exit Kindly help.
    Thanks and Regards
    Varun

    Hi Experts,
    The requirement is to change the GL account when PGI is done for a delivery.
    I have coded in the above user exit for changing the GL account. I am facing the issue here.
    I am changing the GL account through a user exit, but even before the user exit is  called the standard SAP is throwing a error.
    the Error is GL account is blocked for posting in the company code. This check is happening for the GL account what standard SAP proposes from the customization. The GL account that is getting picked is blocked in SPRO for posting in the mentioned company code. Because of the error message, our z code is not getting executed.
    Kindly suggest if some user exits that can be used even before this error message. or let me know if you have any suggestions to over come this.
    I have coded this in the enhancement point. Include  MM07MFK0_KONTIERUNG_PRUEFEN and subroutine kontierung_pruefen.
    Thanks,

  • User-Exit for changing Sales Document Number - Urgent

    Hi Experts ,
                     Please suggest me the <b>User Exit for changing Sales Document Number.</b>
    thanks,
    Jayesh<b></b>

    hi jayesh,
    chech this exit-----EXIT_SAPFV45S_002.
    this exit's description says " Change Sales Document Using Configuration".
    Other available exits are
    SDAPO001            Activating Sourcing Subitem Quantity Propagation
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan
    Enter these exits name in SMOD transaction and select components. u can find all the user exits available for this exit name.
    Reward me if useful..........
    Harimanjesh AN

  • User exit  to change material availability date

    Hi Gurus,
       my requirement is like I need to change the material availability date based on some conditions.
    Is there any User Exit to change the availability date so that I can dump my code in the user exit .
    If not is there any alternative process to get the solution.
    Thanks,
    Sudhaa.............

    Hi Sudha,
    Can you tell me your requirement clearly please.
    Regards,
    Dhanunjaya Reddy

  • User exit for partner determination in delivery document

    Hi,
    Can some one suggest an user exit for partner determination in delivery document.
    We have a scenario of excluding certain plants for few of the partner determinations in delivery document..
    Please suggest
    Regards
    Ravikumar

    Hello Ravikumar,
    Please ceck if these userexits help
    Normally there are 2 userexits available in function kopierte_partner_pruefen:
       - EXIT_SAPLV09A_003
       - EXIT_SAPLV09A_004
    Regards,
    Raghavendra YN

  • User exit to change item level data in purchase order

    Hi,
    Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirment is
    For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked).   now i cant use ME_PROCESS_PO_CUST  because process_item wont get triggered if there is no change in itemlevel data.
    Regards,
    Rahul

    Hi Rahul,
    Probably EXIT_SAPLMEKO_002.
    hope it helps,
    Edgar

  • Inbound IDOC User Exit ZXVEDU04 change IDoc Data

    Hi all,
    We have to develop an user exit for changing the Plant, Shipping Point and Storage location
    We have identified the exit ZXVEDU04 . Is there some other exit for this ??
    But which internal table we are supposed to change this to change the data .
    If possible send me a sample code
    Thanks in Advance .
    Vivek K ..

    Hi all,
    I have done this for a single line item IDoc .
    How do i go for IDocs with more than one line item ???
    I have hardcoded VBAP-WERKS(1) etc for Plant, Strg Loc and shp pt .
    How to identify how many line items are there in the IDocs ??
    Thanks in Advance .
    Vivek K ..

  • Help - User exit to change item level data in Purchase Order

    Hi,
    Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirement is For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked).   now i cant use ME_PROCESS_PO_CUST  because process_item wont get triggered if there is no change in item level data.
    Thanks,
    Rahul

    Hi Rahul,
    Probably EXIT_SAPLMEKO_002.
    hope it helps,
    Edgar

  • User exit to change account assignments

    Hi gurus!
    Can anyone tell me a user exit to change some fields in Logistics Invoice (MIRO), when a an  fixe asset PO is made:
    BSEG-BSCHL - Posting Key
    BSEG-UMSKZ - Special G/L Indicator
    BSEG-UMSKS - Special G/L Transaction Type
    BSEG-HKONT - General Ledger Account
    I apreciate any help, expecially because we already achieved GO LIVE.
    Thanks in advance, Pedro Mariano

    Hello Pedro,
    We have the same requirement, how did you solve it?
    I would really apreciate your help.
    Thank you,
    Elisa

  • Is there any user exit to change the UOM of a material while creating sales

    Hi experts,
    I have a requirement to change the UOM of the item material in sales order while creating.  Could anybody help me in finding the correct user-exit to change the UOM.
    Thanks,
    srinivas.

    Hi Ravish,
    I am already changing the UOM in the same include and in the subroutine "USEREXIT_MOVE_FIELD_TO_VBAP".  But it is again over writing in the standard program.  What I need to do, to remain same UOM.
    Thanks,
    srinivas.

  • What is the user exit to change segment version at the run time of an IDOC

    Dear Experts
    Please can some one help on this ...
    Which is the user exit to change segment version at the run time of an outbound IDOC.
    For example
    Suppose we have a IDOC segment with two version 620 and 46C.
    By default the IDOC pick the 620. But Our requirement is to use 46C.
    What user exit we can use for outbound IDOC to change the version used at run time for a segment.
    Appreciate your response.
    Thanks

    Hi,
    ALE00001      EXIT_SAPLBD11_001         
    User exit for the IDOC version changer
    Regards,
    Ravi

Maybe you are looking for

  • Creating fake depth in a photo

    I have a scene I need for a project, the problem is for the setting in question I've been unable to find any suitible footage on any of the stock sites, I have however found some photos that are ideal only, their not video's So I thought maybe I coul

  • Move JS Grid control Pivoted grid to Left side

    Hi Everyone, i have implemented JS Grid in my custom application page to display SharePoint list data in tabular fashion and i have enabled the Pivoted grid pane,by default the pivoted grid pane will be displayed on the right side but my requirement

  • Droplists: explicit widget width, dynamic item field

    Hello, Does anyone know how to have the item list that drops down from a droplist expand dynamically to fit the longest item in the field? We need to keep the widget itself and explicit size. Some of our items are very similar, so when they are cut o

  • IOS5 Update failed on ipad 2

    Much anticipated ios 5 released and i downloaded and tried to update my ipad 2. but in this process my ipad is unusable now Hate it when things are released without proper testing When I connected my ipad2 to itunes, it detected available ios5 update

  • I'VE DOWNLOADED FIREFOX TWICE, BUT THE ICON HAS NOT APPEARED TO DRAG DOWN TO MY LAUNCH BAR. WHAT TO DO NEXT?

    I HAVE AN APPLE MACBOOK, LION OSX-10, TRYING TO DOWNLOAD FIREFOX TO OBTAIN YAHOO TOOLBAR SUBSEQUENT TO RECENT SOFTWARE CHANGE.