Need of User-Exit  in the creation of Sales Order(VA01)

Hi,
In the creation of Sales Order, I need to Compare the Ordered Quantity and Confirmed Quantity. If the CQ is less than OQ I need to create one more line item with the same material for the rest of the quantity and send the request to Production order for the remaining quantity. For this I am unable to get the exact exit. Please help me in this regard ASAP.
Thank you.

the following program are the user exit for billing.
we often use RV60AFZC and RV60AFZZ.
RV60AFZA
RV60AFZB
RV60AFZC
RV60AFZD
RV60AFZZ
RV60BFZA
For Sales order
Pricing, item addtion deletion
MV45AFZZ
First, I did not find documentation for the BADI either. But at the first glance the process of implementing it looks quite straightforward. I assume you run R/3 Enterprise (4.7). So, you should implement BADI 'BADI_SD_SALES' - this must be done in transaction SE19. In particular for the purpose of adding some additional items into sales document I would implement method SAVE_DOCUMENT_PREPARE. This method has changing table parameter FXVBAP of type VA_VBAPVB_T - it holds all the sales document items. Just add items of yours to it. Certainly, you have to fill all the appropriate fields carefully.
Hope this helps somehow.
In that case you should use USEREXIT_DOCUMENT_SAVE_PREPARE subroutine (form). As far as I remember it has no parameters. To add items to the sales document you should modify internal table XVBAP.
regards
vinod

Similar Messages

  • Screen /user exit for additional screen on sales order header

    Hello sir's,
    can anybody help me for this query---
    Screen /user exit for additional screen on sales order header.
    exit name.
    Thanks in advance,
    Vikram

    Hi,
    SAP has provided screen modification. This you can do on "Additional data B" screen at both <b>header</b> and line iteam level.
    Additional <b>header data is on screen SAPMV45A 0309</b>, additional item data on screen SAPMV45A 0459. These screens contain the <b>Include screens SAPMV45A 8309 ( this is the screen exit at header  )</b> or SAPMV45A 8459 ( this is the screen exit at item ) as user exits. There few more exits you will have to code to get this screen works. The are,
    MV45AOZZ - PBO module of screen
    MV45AIZZ - PAI module of screen
    MV45ATZZ - Global data definition for user-exit.
    Check this link for more info regarding user-exit in sales docs.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/frameset.htm
    We have alredy implemented this solution at line item level. Let me know if you have any question.
    Regards,
    RS

  • User exit for the release of Purchase Order

    Hi Friends,
    I am searching for a user exit which should trigger at the time of Purchase Order release in ME29n transaction.
    If anyone can help me for the same....!!!
    I need the exact exit which triggers at the release of PO....
    Points will be rewarded for the needful replies.
    Regards,
    Mandeep.

    HI,
    Finding the user-exits of a SAP transaction code
    Enter the transaction code in which you are looking for the user-exit
    and it will list you the list of user-exits in the transaction code.
    Also a drill down is possible which will help you to branch to SMOD.
    report zuserexit no standard page heading.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
             tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
       select single * from tadir where pgmid = 'R3TR'
                        and object = 'PROG'
                        and obj_name = tstc-pgmna.
       move : tadir-devclass to v_devclass.
          if sy-subrc ne 0.
             select single * from trdir where name = tstc-pgmna.
             if trdir-subc eq 'F'.
                select single * from tfdir where pname = tstc-pgmna.
                select single * from enlfdir where funcname =
                tfdir-funcname.
                select single * from tadir where pgmid = 'R3TR'
                                   and object = 'FUGR'
                                   and obj_name eq enlfdir-area.
                move : tadir-devclass to v_devclass.
              endif.
           endif.
           select * from tadir into table jtab
                         where pgmid = 'R3TR'
                           and object = 'SMOD'
                           and devclass = v_devclass.
            select single * from tstct where sprsl eq sy-langu and
                                             tcode eq p_tcode.
            format color col_positive intensified off.
            write:/(19) 'Transaction Code - ',
                 20(20) p_tcode,
                 45(50) tstct-ttext.
                        skip.
            if not jtab[] is initial.
               write:/(95) sy-uline.
               format color col_heading intensified on.
               write:/1 sy-vline,
                      2 'Exit Name',
                     21 sy-vline ,
                     22 'Description',
                     95 sy-vline.
               write:/(95) sy-uline.
               loop at jtab.
                  select single * from modsapt
                         where sprsl = sy-langu and
                                name = jtab-obj_name.
                       format color col_normal intensified off.
                       write:/1 sy-vline,
                              2 jtab-obj_name hotspot on,
                             21 sy-vline ,
                             22 modsapt-modtext,
                             95 sy-vline.
               endloop.
               write:/(95) sy-uline.
               describe table jtab.
               skip.
               format color col_total intensified on.
               write:/ 'No of Exits:' , sy-tfill.
            else.
               format color col_negative intensified on.
               write:/(95) 'No User Exit exists'.
            endif.
          else.
              format color col_negative intensified on.
              write:/(95) 'Transaction Code Does Not Exist'.
          endif.
    at line-selection.
       get cursor field field1.
       check field1(4) eq 'JTAB'.
       set parameter id 'MON' field sy-lisel+1(10).
       call transaction 'SMOD' and skip first   screen.
    *---End of Program
    USE THIS PROGRAM TO GET ANY USER EXIT BY GIVING THE TCODE.
    MMFAB001            User exit for generation of release order
    MRFLB001            Control Items for Contract Release Order
    REGARDS,
    PRIYA.
    Edited by: Priyadharshini Veluswamy on Mar 13, 2008 9:21 AM
    Edited by: Priyadharshini Veluswamy on Mar 13, 2008 9:40 AM

  • Logic and User Exit for Availabilty Check in Sales Orders,

    Hi All,
    I have a requirement of creating a Sales order from an Inbound IDOC. Before saving i need to do all the validations for the sales order including the availabilty check for the sales orders. If it is not  fulfilled i need to reject the sales order creation.
    I am trying to search for the logic for the availabilty check of the sales order but i am not able to find one. Please help me out with that and also i need the user exit for the availabilty check for the sales orders. Please help me out with that one too.
    Regards,
    Sharadendu

    See this function Module for message type ORDERS
    IDOC_INPUT_ORDERS all validations are there in this Function Module .
    Please reward if useful.

  • User exit not active when saving sales orders

    while creating a sales order (VA01)   i need  to update  the  storage location  based on  division . for this the badis  and user exits  are not triggering   while creating a sales order for the above requirement
    any solution........
    <removed by moderator>
    thanks in advance..
    <Subject edited. Please read the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]>
    Edited by: Mike Pokraka on Aug 7, 2008 8:38 AM

    JVP,
    MV45AFZZ this is the include which is trigger while creating SO.
    use  FORM USEREXIT_FIELD_MODIFICATION   to write code.
    your code look like if sy-tcode = 'VA01'.
    update field.
    endif.
    Amit.

  • Access NAST table immediately after creation of sales order (va01)

    Hi All,
    I want to access the nast data for the newly created sales order from va01. I tried to use program exits:
    userexit_save_document and userexit_save_documnr_prepare
    and plu the BADI BADI_SD_V46H0001 method EXIT_SAPLV46H_003.
    the breakpoint is not stoping there even if I have given.
    Please suggest any enhancements are there for such functionality.
    The flow is like this.:
    when user clicks on the save button after entering the data for sales order creation, the email/fax will be send to the contact persons for the output type and I want to update the nast table DATVR entry so that it will be marked as processed entry.
    rgds
    Madhuri

    I am not sure what you want, but I think it is not  the right way to realize the flow.
    When a sales order is saved, the process of issuing output will be handled by another program RSNAST00 (T_CODE: WE15)immediately or via a scheduled job due to output configuration , and the nast table will be updated at the same time. i think there is no need to update the nast table by yourself.

  • User exits for route determination in Sales order & Deliver creation

    Hi Gurus,
    I need to do some change in the route determination for both sales order & Delivery creation.
    Can anyone suggest me which user exit I have to use.
    Appropriate answers will be awarded.

    Hi,
    You can use the following exit for route determination - EXIT_SAPL0VRF_001.
    The FM documentation is below. Check the functionality:
    "The customer exit can be used for customer-specific route determination or to modify the inbound data for the company's own route determination.
    The following data is transferred to support customer-specific route determination:
    I_VBAK current order header (for route determination in sales order)
    I_VBKD order business data (for route determination in sales order)
    I_VBAP current order item (for route determination in sales order)
    I_VBPA current sales partner
    I_LIKP current delivery header (for route determination in delivery)
    The following data can be modified and transferred back to the standard route determination or used for a specific route determination:
    C_ALAND Country of departure
    C_AZONE Departure zone
    C_LLAND Destination country
    C_LZONE Receiving zone
    C_VSBED Shipping condition
    C_TRAGR Transportation group
    C_GRULG Weight group
    C_FLAG_GEN_VT Flag: Route determination with generic shipping
    requirements/transportation group.
    C_FLAG_INCR_GRULG Flag: Increase weight group if no route
    If you want to use a standard route determination with different parameters, trigger the exception 'CONTINUE_WITH_STANDARD'.
    In the log table C_PROT, the log data from the customer-specific route determination can be transferred back. In this case, the log entries always refer to customer-specific messages. To add a message to the log table, the function module SD_ROUTE_DET_LOG can be used (see below).
    If a route is determined in the customer-specific route-determination, it can be transferred back in the E_ROUTE field. If no route was found, the exception 'NO_ROUTE_FOUND' is to be triggered."
    Thanks.

  • User-Exit for Checking Customer and Sale order type in Sales Order Creation

    Hi Experts,
      While creating the Sales Order once i enter sold-to-party and enter line item, i have to check the customer against the sales order type.
    Please suggest me if any user-exit or enhancement or BADI available for it.
    Thanks & Regards,
    -VM

    Hi
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    mark if helpful
    Regs,
    Tushar Mundlik

  • User exit for checking creation of prod. order reference to sales order?

    Hi all,
    What are user exit suitable for checking creation of prod. order reference to sales order to have the same plant. If plant not the same, an error message should appear.
    thanks.

    Hi,
    user exits:
    PPCO0003  Check exit for order changes from sales order
    PPCO0007  Exit when saving production order
    Regards,
    Vivek

  • User  exit for LT03 - Creation of transfer order.

    Hi All,
    In LT03 while creating a transfer order for delivery the system picks the storage unit in ascending order(FIFO - First in first out). Is there any badi available to change this picking order into descending order(LIFO- Last in first out). I have tried all the user exit related to transaction LT03, but nothing has served the purpose,has anybody faced this issue please share your views on this.
    Regards
    Sathya

    Hi Saravanan,
    you can try one of these FMs. It might be helpful:
    L_TO_CREATE_2_STEP_PICKING
    L_TO_CREATE_DN
    L_TO_CREATE_DN_MULTIPLE
    L_TO_CREATE_MOVE_SU
    L_TO_CREATE_MULTIPLE
    L_TO_CREATE_POSTING_CHANGE
    L_TO_CREATE_SINGLE
    L_TO_CREATE_TR .

  • User Exit  for ko01 ( Creation of Internal Order )

    Hi,
    My requirement is to validate the Business Area & Profit Center based on the Responsible Cost Center entered. EVEN if the Business Area & Profit Center are valid entries as per the data, they should be replaced by the Business Area, Profit Center with respective Responsible Cost Center entered by user. Please help me its urgent.
    Regards
    Vikram

    Hi
    The follwoing user exits and badis available:
                                                                                    Enhancement/ Business Add-in            Description                                                                               
    Enhancement                                                                               
    COOPA002                               
    Customer function for master data maint. - internal orders     
    COOPA003                               
    User-Defined Fields in the Order Master                        
    COOPA004                               
    Customer function: Print order master data                     
    COOPA_01                               
    Customer check modules for internal orders                                                                               
    Business Add-in                                                                               
    INTERNAL_ORDER_EXTND                
       Master Data Extension for Internal Order    
    If it is helpful rewards points.
    Regards
    Pratap.M

  • User Exit to make changes in sales order line item data.

    Hi All,
    I need to know about user exit by whcih I can make changes in sales order line item details --> Account assignment tab --> Sales order no and line item no.
    I want to make changes so as to bring the active maintenance contract no and line item no here instead of sales order no and line item no. So whenever ( Va02 or Va03) we go to sales order line item and se the account assignment tab I should see the contract no there.
    Just let me know the USER EXIT to do the above changes.
    Points will be awarded.
    Regards,
    Satish.

    Hi,
    Please have a look at the following user exits...
    1. user exit_ save_document
    2. user exit_save_document_prepare
    Regards
    sankar

  • User exit in availability check of Sales Order

    Hi,
    Our requirement is to exclude a storage location for availability check. Certain user exits are listed under programs FV45VFZZ / FV45VFZY / RV03VFZZ. Can any of them be used to block a storage location. If so what is the code to be written.
    Regards,
    KC

    Hello,
    I would suggest you to go for BADI's.
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    Regs,
    Venkat Ramanan N

  • User exit while creating delivery from sales order

    Hi Guys ,
    Is there any user exit in sales order which triggers when we try to DELIVER(from the menu bar) .
    My requirement is to not include some line items(base on some condition) before they are included in the delivery .
    Thnx in advance .
    Anil

    Hi Naimesh ,
    Thnx for your reply.
    I'm not sure of the functionality in VOFM .Can u please tell me how can i acheive my current functionality as explained above in my question .
    I'll tell u my requirement .
    When creating delivery , I have to check for some condition and depending upon this condition , the line items must not be included in the delivery .
    I have acheived this by BADI  LE_SHLP_DELIVERY~SAVE_DOCUMENT_PREPARE.
    if suppose any line items gets deleted in the delivery(based upon my condition) , and then if I look at the status of the slaes order(VA03) , it shows partially confirmed at the header level and the item which is rejected(in delivery) shows OPEN .
    Can u tell me how to update the status of the sales order header and item level (if any item is deleted) during creation of delivery .
    Thnx .
    Anil

  • USER EXIT REQUIRED DURING DELIVERY OF SALES ORDER VL01N

    hi
    i want to block all the delivers ( by default ) i.e after creating sales order when user go for delivery ( or runs transaction VL01N ) it should block all the deliveries
    plz suggest user exit as i dont find any
    thanks
    taran

    Hi taran,
    Check, it may help you.
    Exits for VL01N ::::::
    V02V0001 Sales area determination for stock transport order
    V02V0002 User exit for storage location determination
    V02V0003 User exit for gate + matl staging area determination (headr)
    V02V0004 User Exit for Staging Area Determination (Item)
    V50PSTAT Delivery: Item Status Calculation
    V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
    V50R0001 Collective processing for delivery creation
    V50R0002 Collective processing for delivery creation
    V50R0004 Calculation of Stock for POs for Shipping Due Date List
    V50S0001 User Exits for Delivery Processing
    V53C0001 Rough workload calculation in time per item
    V53C0002 W&S: RWE enhancement - shipping material type/time slot
    V53W0001 User exits for creating picking waves
    VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)
    LE_SHP_GOODSMOVEMENT BADI.
    Regards,
    Ramesh.

Maybe you are looking for

  • I am getting a 1305 error while trying to install Elements 12.

    It is in regard to a file CoatedFOGRA27.icc. It gets hung up on that file when trying to do the install. I have rebooted, done a system restore, tried to copy the DVD to the hard drive and run from there. I have tried to run the trial version, all to

  • .PDF image's blacks look grey in Adobe Acrobat Reader

    I need to save my design as a CMYK .PDF file and I have created the image in Photoshop CS6 in RGB, changed the image mode to CMYK, for black used C:40 M:40 Y: 20 K:100, and when saved the file as a Photoshop .PDF- it opens in Adobe Acrobat Reader loo

  • How Do I Highlite An Area For A Few Seconds

    I am using CS 5.5  trial, I want to highlite an area, maybe a circle lighter than the other areas for the first few seconds of a sports clip to show where the player is that this video is for. What would be the easiest way Please? I was asked to add

  • Production order components has two batches

    how can i configure my system in such a way that upon creating the order, and saving, system will suggest two batches ( in case first batch doesn't meet requirement quantity )

  • How do I save a image?

    If im on the net and I want to save a picture, I have no right click button how do I save a picture? Sorry if this sounds stupid im new to Mac. Thanks, Juls