User Exits in VA02

Hi
my requirement is the QUANTITY should not be greater than 1 , if the order type is -
i wrote the code in the program mv45afzb / mv45afzz,
Its working , but it showing before saving, my code has to work while saving, any program available like
MV45 -
ETC......
<<removed_by_moderator>>
Thanks in previous
Edited by: Vijay Babu Dudla on Jan 21, 2009 11:47 PM

Hi,
Try to do this in looking for user exits.
From the SE38 screen, enter the desired screen main program, and click Utilities > Find In Source Code, and "CUSTOMER-FUNCTION" as the text to search for. This will give you a list of the user exits and where they are called from for all screens in the module pool.
Also try MV45AIZZ ( User Exit for PAI ).
Hope this helps.
Regards,
Leonard Chomi.

Similar Messages

  • User Exit in VA02 - Fast Change of selection

    Hello Experts,
    Is there an existing user exit in VA02 that can be used to add another menu item under menu Edit > Fast Change of ...
    I would like to add another item under that I can use to change the user status of the item.
    Thanks in advance.
    Regards,
    Erwin

    form userexit_field_modification in MV45AFZZ will be called during the VA02 transaction (and the VA01).
    There is a case statement within here.
      case screen-name.
    which allows processing to be limited to a field on the tranaction screen.  KUWEV-KUNNR is the screen element for the ship to, so you should be able to trap any changes in here.

  • User Exit for VA02

    Hi All,
    My requirement to automatically change the schedule line dates (ETDAT) in a sales order when the requested delivery date (KETDAT) of the document is changed.
    The schedule line dates should automatically change to the date that is changed in the requested delivery date.
    Is there any user exit or enhancement point to achieve this.
    Thanks in advance.
    Regards,
    Darpana.A

    >
    Darpana Ahire wrote:
    > HI,
    >
    > In Include FV45KF0V_VBAK-VDATU_PRUEFEN  I have implemented an enhancement point, just before the data declaration of the include
    >
    > *---This logic does not display the warning that Date is not copied to the schedule line items
    > data: v_vdatu like vbak-vdatu,
    >         v_vprgr like vbak-vprgr.
    >
    > if sy-tcode = 'VA02'.
    >   call function 'PERIOD_AND_DATE_CONVERT_INPUT'
    >     exporting
    >       dialog_date_is_in_the_past = space
    >       external_date              = us_ketdat
    >       external_period            = us_kprgbz
    >     importing
    >       internal_date              = v_vdatu
    >       internal_period            = v_vprgr.
    >
    > if *vbak-vdatu <> v_vdatu.
    >   *vbak-vdatu = v_vdatu.   "Initialising the Changed date
    > endif.
    > endif.
    >
    >
    >
    > In Include FV45EFEP_VBEP_UNTERLEGEN I have implemented an enhancement point, just before the data declaration of the include
    >
    >
    > DATA: v_vdatu TYPE EDATU_VBAK.
    >
    > if sy-tcode = 'VA02'.
    >
    > *---Selecting the required delivery date
    > SELECT single vdatu
    >        from vbak
    >        into v_vdatu
    >        where vbeln = vbak-vbeln.
    >
    > *---Checks if the Required delivery date is changed then changes the schedule line items first date
    > if vbak-vdatu <> v_vdatu.
    >   loop at xvbep.
    >      xvbep-edatu = vbak-vdatu.
    >      modify xvbep TRANSPORTING edatu.
    >   endloop.
    > endif.
    >
    >
    > *---Checks on click of Save button
    >  if sy-ucomm = 'SICH'.
    > *---Checks if the Required delivery date is changed or not
    >    if vbak-vdatu <> v_vdatu.
    >      loop at xvbep.
    >        xvbep-edatu = vbak-vdatu.
    >        modify xvbep TRANSPORTING edatu.
    >      endloop.
    > *---Modifys the database table VBEP accordingly
    >        modify vbep from table xvbep.
    >    endif.
    >  endif.
    >
    > endif.
    >
    >
    > Hope your problem gets solved by this logic.
    >
    > Regards,
    > Darpana.Ahire
    Hi Darpana,
    I have a requirement to automate the requested delivery date while creating the sales order through VA01.
    I have to add some lead time to the defaultly proposed requested delivery date.
    I am able to change the requested delivery date VBAK-VDATU and schedule line date VBEP-EDATU.
    I have done it through form 'SAVE_DOCUMENT_PREPARE' in SAPMAV45A.
    Now my client requires this date date has to be reflected in all places like in goods issue date, loading date, material availability date, invoice date etc.,
    As my user exit triggers only at the time of saving the document, changing the requested deliery date is not affecting all these dates.
    Any solution for this.
    Highly appreciate your help.
    Thanks
    Sreenivasa Reddy Vallem

  • User Exit - VA01 / VA02 Sales Order, using Variant Configuration Fields

    Hi,
    I'm doing a user exit for creating / changing a sales order (VA01/VA02), and in my program I'm trying to use the characteristic values in variant configuration: Extras -> Configuration.
    I know there's a whole bunch of data in SAPMV45A, but I can't seem to find what I need. Structure RV45A is the closest I can find, but the characteristic name / value fields appear empty during the execution of the user exit.
    Any help would be greatly appreciated.
    Thanks!

    R u creating your own user exit or using the ones which are available for VA01/VA02?
    If you can use existing ones, to get the more details abt them, please have a look at below link.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • User exit in VA02/1 during partner change

    Hi,
      Is there any user exit that gets triggered when a ship to party is changed in the order ? I see EXIT_SAPLV09A_004 but that is only in VA01.
    Regards,
    Hari.

    form userexit_field_modification in MV45AFZZ will be called during the VA02 transaction (and the VA01).
    There is a case statement within here.
      case screen-name.
    which allows processing to be limited to a field on the tranaction screen.  KUWEV-KUNNR is the screen element for the ship to, so you should be able to trap any changes in here.

  • User Exit in VA02 for Warranty Status field change

    Hi Gurus,
    Can any one pls suggest the user exit that gets trigerred when there is a Warranty Status Field change in the Repair Order of Order type ZRAS and when the change occurs it has to update the work center of the Corresponding Service Order.
    Pls help me with this issue.
    Regards,
    VIJAYB.

    Transaction Code - VA02                     Change Sales Order
    Enhancement/ Business Add-in            Description
    Enhancement
    V60F0001                                SD Billing plan (customer enhancement) diff. to billing plan
    V46H0001                                SD Customer functions for resource-related billing
    V45W0001                                SD Service Management: Forward Contract Data to Item
    V45S0004                                Effectivity type in sales order
    V45S0003                                MRP-relevance for incomplete configuration
    V45S0001                                Update sales document from configuration
    V45P0001                                SD customer function for cross-company code sales
    V45L0001                                SD component supplier processing (customer enhancements)
    V45E0002                                Data transfer in procurement elements (PRreq., assembly)
    V45E0001                                Update the purchase order from the sales order
    V45A0004                                Copy packing proposal
    V45A0003                                Collector for customer function modulpool MV45A
    V45A0002                                Predefine sold-to party in sales document
    V45A0001                                Determine alternative materials for product selection
    SDTRM001                                Reschedule schedule lines without a new ATP check
      Business Add-in
    BADI_SD_SCH_GETWAGFZ                    Scheduling Agreement: Read WAGFZ from S073
    BADI_SD_V46H0001                        SD Customer functions for resource-related billing
    No.of Exits:         15
    No.of BADis:          2

  • User exit for VA02  - Urgent Please

    Hi,
    I got a requirement to develop USEREXIT for the sales district (Vbkd-bzirk) validation based on item category.
    It is for ITEM level i have to check the user entered value with my newly developed ztable.
    Can any one tell me whether MV45afzz is the suitable user exit for this requirement and what is the approach.
    Also please importantly tell me the structure will have the value in runtime
    Points guaranteed
    Regards,
    Raghu

    Yes, MV45AFZZ will be suitable for the same. Please have a look at below link for details about the same.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • User Exit for VA02 while changing payment terms in the screen

    Hi,
      In Va02, in header details if we go to billing tab,
           Whenever we change the terms of payment(ZTERM) in the screen, we should check if the fixed value date(VALDT) is not blank based on some conditions.
      If it is blank before saving we should display error message with the VALDT screen field in VA02 transaction as open for input to enter the value.
    I have tried writing in MV45FZZ , in userexit_save_document_prepare , but the screen field is going to display mode after the throwing error message. but it should be open for input.
    Could anyone please suggest proper exits or badis to validate this condition?

    Hi Naimesh ,
      Thanks for your reply ,
    I have tried the code but its not working.
    As per my knowledge, statement after error message,will not be executed.
    Please suggest.
    raghavender,
    Thanks for your suggestion.
    I have tried it before , its working fine but as it is not suggested to use Leave to screen in custom code I was trying for alternate solution.
    Please suggest.
    Thanks ,
    Srilakshmi Godavarthi.

  • User exit to find sy-comm when user select a tab at item level data in VA02

    Hi Gurus,
    is there any user exit in VA02 in which we can find the command button pressed in the sale order line item data where we find sales A sales B .....and condition tab in the screen.
    rewards for sure.
    thanks

    Dear Mandy,
    How to find user exits:
    Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT
    If you know the Exit name, go to transaction CMOD.
    Choose menu Utillities->SAP Enhancements. Enter the exit name and press enter.
    You will now come to a screen that shows the function module exits for the exit.
    3. Using Project management of SAP Enhancements, we want to create a project to enahance trasnaction VA01 .
    - Go to transaction CMOD
    - Create a project called ZVA01
    - Choose the Enhancement assign radio button and press the Change button
    In the first column enter V45A0002 Predefine sold-to party in sales document. 
    Note that an enhancement can only be used in 1 project. If the enhancement is already in use, and error message will be displayed
    Press Save
    Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. Double click on the exit.
    Now the function module is displayed. Double click on include ZXVVAU04 in the function module
    Insert the following code into the include: E_KUNNR = '2155'.
    Activate the include program. Go back to CMOD and activate the project. 
    Goto transaction VA01 and craete a salesorder. 
    Finding the user-exits of a SAP transaction code
    * 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
    Best Regards,
    Rajesh
    <b>Please award points if found helpful.</b>

  • VA02 User exit - authorization (AND same requirement for IW32)

    I require user exits in VA02 and IW32 that allows me to stop some users profile from changing Sales Orders and Service Orders.
    Our idea is to create an Autorization object and asign it to a user profile.
    When users try to Modify a Sales order or a Service Order, system should verify authorization object first. If not then user cannot access to the document.
    User exits should be available when document is going to be open, not after opening (meaning that user exits where saving do not work either).
    Thanks for your help

    If you require some user to use VA02 or IW32 then at the t-code level you can set the authorization.
    But when you say "User exits should be available when document is going to be open, not after opening", it is confusing.
    Userexit works only after the document is "opened"
    You can try fieldexit.
    This weblog (/people/ashish.mohapatra/blog/2007/11/28/sd-userexit--i) may also be helpful to you.

  • VA02 user exit

    Hi all,
    I want to know whether there is a user exit of VA02.
    I need it just before saving the changes to control some value.
    Thanks.
    deniz.

    Hi ,
    User Exit :
    V60F0001                                SD Billing plan (customer enhancement) diff. to billing plan
    V46H0001                                SD Customer functions for resource-related billing
    V45W0001                                SD Service Management: Forward Contract Data to Item
    V45S0004                                Effectivity type in sales order
    V45S0003                                MRP-relevance for incomplete configuration
    V45S0001                                Update sales document from configuration
    V45P0001                                SD customer function for cross-company code sales
    V45L0001                                SD component supplier processing (customer enhancements)
    V45E0002                                Data transfer in procurement elements (PRreq., assembly)
    V45E0001                                Update the purchase order from the sales order
    V45A0004                                Copy packing proposal
    V45A0003                                Collector for customer function modulpool MV45A
    V45A0002                                Predefine sold-to party in sales document
    V45A0001                                Determine alternative materials for product selection
    SDTRM001                                Reschedule schedule lines without a new ATP check       
    BADI :
    BADI_SD_SCH_GETWAGFZ            Scheduling Agreement: Read WAGFZ from S073
    BADI_SD_V46H0001                        SD Customer functions for resource-related billing

  • Screen exit for VA02

    HI SAP Gurus,
    I have a scenario where client wants a popup screen everytime user tries to save the field IHREZ (Your reference) field in transaction va02..The screen will contain various database fields including the following
    Unit# , Service Order #,
    Material#,
    Material description ,
    Qty ,
    Cost ,
    Markup factor ( From Z factor table),
    Sales Price,
    All the field are display fields except for markup factor which is a field from a ztable.The number of line items can be 200.Sales price will be calculated as
    qtycostmarkup factor
    There are two additional fields Labour and Hours which are to be entered by the user and then some calculation will be done to get the total price invested in repairing.This total price should be updated in a custom condition pricing for repair.
    i have been suggested
    To trigger the pop-up screen, use user exit MV45AFZZ, Form
    USEREXIT_MOVE_FIELD_TO_VBKD.
    But I have doubts like as what to use screen painter or there is some standard function module to call a popup.PLease suggest all the possible solution which i can look into.
    Thanks in advance.
    points will be rewarded to all the relevant answers
    thanks
    twinkle

    Hi,
    Pls do not enter the fields as header data it has restriction of only two fields.
    These all r the possible user exits on VA02, Just go thru it ..
    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
    Maybe you can use subroutine USEREXIT_MOVE_FIELD_TO_VBSN in MV45AFZB.
    Pls reward helpful points.
    Regards,
    Ameet

  • Detecting change on header and item texts for sales order in user exit

    Hi,
    In the user exit of VA02, I need to identify/detect if header or item texts for sales order is changed or not.
    Please advise on this.
    Regards,
    Shreyas

    Normally system stores the old values in XTables and new values in YTables.  Check if you have access to these in your user exit.  If you give the user exit name, someone will be able to guide you.
    hith
    Sunil Achyut

  • User Exit/BADI name required for changing schedule lines (VA01 and VA02)

    Hi all,
    Please tell me an exit or badi for modifying VBEP date i.e. VBEP-EDATU which triggers for a change in any of the following fields:
    1. VBAK-KUNNR;   2. VBAK-VDATU  and   3. VBAP-WERKS
    Currently I tried using USEREXIT_MOVE_FIELD_TO_VBEP and FORM USEREXIT_CHECK_VBEP but nothing is giving me the results as desired.
    Pls help, points will b awarded for helpful ans.
    thanks
    Sangharsh

    Have a look at below link which gives details related to user exits in VA01/VA02.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • USER EXIT/BADI for blocking pop up in VA01/VA02 for unloading point

    Hi,
    Please see details below with an example
    Following the below steps will execute the popup.
    1. VA01 (Sales Doc Create)
    Document type can be anything.This pop-up should be blocked for 'CRQ' and 'CR' types.
    2. Input “CRQ” or “CR” in the Order Type field and execute.
    3. Within the document:
    Input customer “194” as the Sold-to and Ship-to parties
    Input the PO Date field with today’s date
    Input material “475410m” and a Target Quantity of “1”
    Press Enter
    If the ship-to party has more than one unloading point  a pop up would show both values to choose one(these values come from KNVA-ABLAD).
    The code details are as follows:
    Program SAPMV45A--> Include  MV45AF0K_KUAGV_SELECT---->CALL FUNCTION 'VIEW_KUAGV'
    2)CALL FUNCTION 'VIEW_KUAGV' uses CALL FUNCTION 'SD_PARTNER_SINGLE_MODIFY' for ship-to(WE)
    3) IN FM 'SD_PARTNER_SINGLE_MODIFY'  the following sub-routine is called:
    *-- proceed inserting a partner -
    create a new xvbpa-segment
    PERFORM XVBPA_ENTRY_FILL USING LVF_VKORG LVF_VTWEG LVF_SPART
    LVF_VBELN
    fif_posnr
    LVF_KUNNR_NEW
    FIF_MANUAL_ADDRESS
    FIF_MANUAL_ADDRESS_ORIGIN
    FIF_PARVW FIF_PARGR
    LVF_PARTNER_USER
    FIF_KNREF_PARNR
    FIF_PRFRE
    FIF_BOKRE
    FIF_HISTUNR
    FIF_HZUOR
    FIF_NO_DIALOG
    LVT_XVBADR
    LVF_ACTION_TODO
    LVS_OLD_XVBPA-CNTPA
    CHANGING LVS_NEW_XVBPA
    LVT_XVBPA.
    4)This subroutine uses FM 'SD_PARTNER_ABLAD_SELECTION'  to determine unloading points for ship-to and also  brings up the pop-up using 'REUSE_ALV_POPUP_TO_SELECT'.
    partner is ship-to, so determinate unloading point
    CALL FUNCTION 'SD_PARTNER_ABLAD_SELECTION'
    EXPORTING
    FIF_KUNNR = LVS_XVBPA-KUNNR
    FIF_NO_DIALOG = LVF_NO_DIALOG
    IMPORTING
    FES_KNVA = LVS_KNVA
    EXCEPTIONS
    NO_UNLOADING_POINT = 1
    NO_SELECTION_DONE = 2
    OTHERS = 3.
    LVS_XVBPA-ABLAD = LVS_KNVA-ABLAD.
    Any help in this regard is highly appreciated.
    Sincere Regards,
    Sai.

    Have a look at below link which gives the details abt the user exits related to VA01/VA02.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    Best Regards,
    Vibha
    *Please mark all the helpful answers

Maybe you are looking for

  • Error when generating the report (see long text), Message no. AQ_AD_HOC221

    Hi All, I am facing a peculiar problem while executing an infoset query.I have created 2 customized fields Compa-ratio and PIR in infotype 0008 in an infoset.I have coded in these additional fields. When I execute a query using 1 of these customized

  • Lost photos, music, email and all settings, PLS HELP!

    Yesterday when I started my 12" Powerbook as soon as it turn on, all the settings went back to the original, I can't find none of my photos in IPHOTO ( It says is empty )or my songs from ITUNES( Empty also ), lost all my emails, but the weird thing i

  • Where clause one query not being pushed down

    I am having a problem where I cannot get a certain "optional" parameter to be pushed down to a query. The parameter gets applied in memory after the result set is returned but not pushed down to the DB. The function is as follows: declare function ge

  • Combine update stmts with different columns and criteria

    Hi All, I have the following 3 update stmts that update the same table. The table DSVEHS has 45 million rows. The table PPDSDETL has 95 million rows. How to combine them? I'd like to reduce the times to scan those tables. There is a primary key on PP

  • Third party PREQ in MDO4

    Do the PREQ created in 3 party appears in transaction MD04?