Userexit in va41

I wish to check every field in va41 before saving va41. Please tell
some userexit/badi/etc
thanks
rajeev

Include MV45AFZZ
Form userexit_save_document_prepare.
In this form you can make all the checks before save the document. (check the document type, this form is used in VA01, VA21, VA41, ...).
Regards,
Pepe
Edited by: Jose Vaquero Polonio on Apr 28, 2009 12:59 PM

Similar Messages

  • Userexit in VA41. Changes to field aufnr are not saved

    Hello,
    I have to fill the field xvbap-aufnr with the field vbeln during saving a order (contract) in VA41.
    I tried to use "userexit_save_document" and "userexit_save_document_prepare".
    The problem is that in userexit "userexit_save_document_prepare" the field vbeln is not field because we use an internal num range.
    In userexit "userexit_save_document" the vbeln is filled but I am not able to change the entry of xvbap-aufnr. I can change the field value but my changes are not written to the data base. Why ????
    Thanks

    If the number range for VBELN is internal, you cannot change it through user exit.  Changes made to structure fields in USEREXIT_SAVE_DOCUMENT will not have any effect.

  • We need userexit or badi's for VA41, VA42

    I need to validate two points in the data in the Screen  --> Extras --> Technical Objects into the transaction VA41 or VA42. 
    First:
    In each item from the sales order the material number XVBAP-MATNR into the Program SAPMV45A Screen # 4001 must be the same in the structure RIWOL-MATNR (OBJK table) corresponding, into the Program SAPLIWOL Screen # 220
    Second:
    Aditionally, validate the records created into this Object List using the Program SAPLIWOL Screen # 220, against the target quantity VBAP-ZMENG for each item.  It (the recors) mustn't be greater than this target quantity.
    Thanks in advance,
    Carlos

    Hi,
    Use the userexit...USEREXIT_SAVE_DOCUMENT in the include MV45AFZZ..
    Check this documentation..
    FORM USEREXIT_SAVE_DOCUMENT *
    This userexit can be used to save data in additional tables *
    when a document is saved. *
    If field T180-TRTYP contents 'H', the document will be *
    created, else it will be changed. *
    This form is called at from form BELEG_SICHERN, before COMMIT *
    FORM userexit_save_document.
    Regards

  • Userexit for changing line item from header, tcode VA42, VA41

    Hi All,
    I have a Zfield (VBAK) for the sales document (contract) at the header level in Additional tab.
    Also the same zfield is present in VBAP table for all line items.
    When this field is maintained by the user using Tcode VA41 or VA42 the line item zfield should also get updated.
    I am trying to find out if User Exits
    1. USEREXIT_MOVE_FIELD_TO_VBAK
    2. USEREXIT_SAVE_DOCUMENT_PREPARE
    might work. Can anyone tell me if there is access to line items in the above 2 user exits which I can modify.
    Thanks,
    Kajal

    Hi Breakpoint,
    Yes I did use table XVBAP in uesr exit SAVE_DOCUMENT_PREPARE.
    But somehow my changed values in XVBAP table is not reflected in the table VBAP.
    Am I missing something here.
    My piece od code  in the user exit :
    FORM XVBAP_ZZREBREL_CHANGE  TABLES t_xvbap STRUCTURE vbapvb
                               USING  P_VBAK_ZZREBREL TYPE vbak-zzrebrel.
    data wa_xvbap type vbapvb.
      IF p_vbak_zzrebrel = 'X'.
        LOOP AT t_xvbap into wa_xvbap.
          wa_xvbap-zzrebrel = 'X'.
          MODIFY t_xvbap from wa_xvbap INDEX sy-tabix TRANSPORTING zzrebrel.
          clear wa_xvbap.
        ENDLOOP.
      ENDIF.
    ENDFORM.

  • ENHANCEMENT-POINT in va41

    how can i use ENHANCEMENT-POINT in va41.actually i need to add some code before saving...means if country is Abc then user must fill some fields other wise not save.and error message occure.
    i found a user exit but it requires Access Key.and i want to do it without access key...
    kindly guide how can i do it with ENHANCEMENT-POINT.

    Hi,
    to find the user exits & Badi's for the T-code..
    go to table TSTC>enter T-code and execute> get the Program for the t-code..
    and go to-se38-->get the package attached to the t-code..
    next go to t-code Se15>expand the enhacement tab>enter package under userexit and
                                                         execute you will get the list of exits
                                                         available...
                                                      -->enter package under Badi's tab and
                                                         execute you will get the list of Badi's
                                                         available... 
    All the User exits are stored in Table MODSAP..
    Implemeting User-exit..
    go to t-code  smod -->enter the  Exit name --> click on display --> click on components
                                                                      --> clcik on Finction module
                                                                      --> click on include under function module
                                                                       --> it show warning message ignore that and hit enter and write the code
    and activate again the SMOD..
    Prabhudas

  • About enhancement point for va41

    hai ,
    plz help me to find out userexit point .
    i want make make  little validation code for the additional  data tab A in tcode va41 in sap

    Hi,
    Following are the Exits available for va41 tcode
    Exit name           Short text
    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
    Regards,
    Aravinth

  • VA41 - item level details

    HI
    Thanks in advance
    Can Any body tells me how I can get the item level values when I copy the order using contract type with transaction VA41
    Regards
    Rai

    Hi,
    Please check include MV45AFZZ..It is a standard exit for sales
    We can see a number of exits in this include.....For item level just check the ones containing userexit*VBAP...Data will be present in internal table XVBAP........
    try the following
    (1)USEREXIT_MOVE_FIELD_TO_VBAP
    (2)USEREXIT_SAVE_DOCUMENT_PREPARE
    (3)USEREXIT_SAVE_DOCUMENT
    Put break point to analyse data flow...header data will be in XVBAK
    Regards
    Byju

  • Userexit For TCODE J1IJ depot excise invoice

    hi
    I want to know is there any userexit for depot excise invoice. That we can use to check weather excise entry date that is (J_1IRG23D-CPUDT) is equal to likp-WADAT_IST . Any info will be really helpful.
    Thank you

    Hi,
    Use this program SAPMJ1IJ in this program there are 4 includes.
    First try with  MJ1IJF01
    So check with your abaper which exit is working in this include.you can do it by setting break-point.
    Also check other includes MJ1IJTOP  MJ1IJO01  MJ1IJI01
    Thank you,

  • BADI/UserExit for MIGO in Stock Transfer

    Hi Gurus,
    I have a requirement.
    When posting a GR in MIGO, if the material has been flagged to go through inspection, MIGO post the batch to quality inspection.
    Now, when a batch has already gone through inspection (for example in another plant) and its released (passed) and its been transferred to another plant, if we are receiving this batch doing a post GR in MIGO, it automatically post it to quality inspection again.
    Is there a BADI, UserExit or way to skip this inspection and post the batch to unrestricted stock since its already gone through inspection in the previous plant and has a Decision Code A0 (accepted etc).
    We don't want to change the material master for this because we still want the material/batch to go through quality inspection if its hasn't already been.
    Thanks..
    Baz
    Edited by: Basil Balogun on Sep 23, 2010 1:49 AM

    Hi,
    Try the possibilities of MB_MIGO_BADI. I think in method LINE_MODIFY, POST_DOCUMENT and perhaps PAI_DETAIL.
    I hope this helps you
    Regards,
    Eduardo

  • Sales Order Costing. Error values, need BAPI or Userexit or Enhancements

    Hi Experts,
    I have a situation to solve the Errors in Sales Order Costing.
    My Error is,  its not splitting values equally,,, (BOM Item Price Values)
    for example...
    let i have a parent Item A.
    and Child Items as A1, A2, A3.
    Now the Qty of A is 100. for each item the price value is 50. so the total value is 5000/-
    Now If i need one A, then I need 8 A1's, 4 A2's, 3 A3's.and let think A1 value and A2 value and A3 value (single Unit ) are equal. and let the value be 100.
    but in BOM i can see all the values of A1, A2, A3 as same. (500, 500, 500) but it should be (800, 400, 300)
    The single Unit Price is not multiplying with Quantity, but its equally splitting.
    Please tell me Can I find and BAPI or Userexit or any enhancements or any Configurations to do.
    Thanks & Regards
    Dileep .C

    no replies and my thread was dead.

  • USEREXIT FOR transaction J1IJ

    Hi
    My user wants that date in J1IJ that is excise from depot sale should same as PGI date. If it is not same it should throw some error. Is there any userexit available for the same.
    Any information will be of great help.
    Regards
    Jalaj

    Hi Jalaj,
    Use any one of  these user exits
    MJ1IJI01.
    MJ1IJF01.
    Regards
    Ram

  • User exit at item level for billing block field default for VA41 or VA42

    Hi All,
    I want user exit at item level for contract (VA41or VA42) for the field Billing Block in the Billing document tab
    which has to populate with some default value.
    Which user exit i need to check.
    Regards
    Jai

    Hi,
    Use subroutine USEREXIT_FIELD_MODIFICATION in Include MV45AFZZ.
    Make sure this is for only tcodes VA41 and VA42 because this wil trigger for sales order also.
    Regards,
    Ashok.

  • Display error message in userexit

    I have a checking which implement in userexit. When the criteria meet, it will block po saving and display error message. I would like to know how to display the error message. Thanks!

    Use like this for first approach else if second one were serve you purpose than you may go with second one also.
    DATA: mid  TYPE sy-msgid VALUE 'SABAPDOCU',
          mtype TYPE sy-msgty VALUE 'I',
          num  TYPE sy-msgno VALUE '014'.
    MESSAGE ID mid TYPE mtype NUMBER num.

  • Need userexit while saving the billing document (VF01)

    HI Folks,
    I need a userexit while saving the VF01 transaction code. My requirement is i need to check if there is any intercompany invoice was created before the delivery related invoice
    By default SAP creates delivery related invoice . I have checked lot of userexits with package VF but none is working and also gone through the standard userexits RV60AFZ*, still didn't find any good one for my requirement..
    All your help is highly appreciated..
    waiting for your replies.
    Regards,
    raj

    Hi,
    I have done some analysis before posting the question and one mistake i done is i have checked theUSEREXIT RV60AFZC and i checked XVBRK AND XVBRP instead of VBRK and VBRP...also whie saving this  is not called, it is called when we press enter and also when we press SAVE button in the initial screen.
    I missed the small thing...
    Thanks for the link..
    Regards,
    Nagaraj

  • Userexit while saving the billing document

    Hi all,
    Is there any userexit while saving the billing document..I want to define minimum invoice value in system.
    Regards,
    Puneet Makkar

    Hi,
    In preceding project, i had the same requirement.
    Price condition : copy from std price for minimum value.
    Use condition category (for specific determination price for invoice).
    In price procedure : apply requirement to active only for invoice (std = 22).
    Re determination of price during creation of invoice :
    use RV61AFZA with the value of condition category to adapt pricing type (ex : X).
    modify copy rule (Tcode VTFL) for item : use new value for pricing type (ex : X).
    Regards,
    Lionel

Maybe you are looking for