VF01 BADi at SAVE

Hi All,
I have a requirement.
At the time of Saving the document if the net value is 0 then it should not be saved.
I am searching for some appropriate BADi.
Does anyone having idea for this?

By using CL_EXITHANDLER we can find the relavant Badi's for all the T-codes.
The following Badi's are related to VF01.
Set the breakpoint and test the below Badi's that means which Badi is triggered when we save the VF01.
BADI_LAYER
BADI_SD_SALES_BASIC
BADI_SD_TO_FM
BADI_SD_BILLING
Thanks.

Similar Messages

  • Which is the right badi on save for cv01n

    Can someone tell me which is the right badi on save?
    I have a requirement of inserting 2 input fields pernr(personal number) and ename(employee name)  for a particular document type in cv01n... if i save a document all  the values are saving except pernr and ename... so which is the right badi where i can put the logic to pass the values.. I appended DRAW table with the above 2 input fields.. i am not sure about the table where the document details are saving upon SAVE  is triggered.
    In DRAW table document number getting generated is saved with all the other values except PERNR AND ENAME.

    Hi,
    Please download "ODAC 11.1.0.6.21 with Oracle Developer Tools for Visual Studio". When you install it, it will create an 11g Oracle home. Let it do that (don't try to install it into the Oracle XE home).
    You will need to set up a connect alias to connect to the XE database (as if it were on another machine).
    Thanks,
    Christian

  • User Exit/Badi on save of WAK2(retail promotions))

    Hi can anyone please tell me if there is any user exit or badi on save of WAK2 (retail promotions).I tried but i cant see any user exit or badi for same.

    Hello
    In program SAPMWAKA (tcode WAK2) you will find routine MWAKAF03_CALL_PROMOTION_U in which fm PROMOTION_UPDATE is called.
    Within this fm you find at the end the coding:
    * BADI Aufruf
      PERFORM CALL_BADI_INTERF_PROM_UPD USING FXWAKHD.
    ENDFUNCTION.
    This routine check for implementation of BAdI WAKT_BADI_001. The BAdI method INTERFACE_PROMOTION_DATA is used to "Make Update Data Available to External Applications".
    In addition, you should look through the manyfold BAdIs and enhancement spots within package WAKT.
    Regards
      Uwe

  • Change item condition in BADI order save with crm_order_maintain

    Hi all,
       i could update conditions in report but not successful in BADI order save, below is my code in BADI...
       what is the problem maybe ?  Ths
    * Get order info.
      CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          it_header_guid       = lt_header_guid
          it_requested_objects = lt_requested_objects
        IMPORTING
          et_ORDERADM_I        = lt_ORDERADM_I
          ET_TEXT              = lt_text
          ET_STATUS            = lt_status
          et_pridoc            = et_pridoc
        EXCEPTIONS
          DOCUMENT_NOT_FOUND   = 1
          ERROR_OCCURRED       = 2
          DOCUMENT_LOCKED      = 3
          NO_CHANGE_AUTHORITY  = 4
          NO_DISPLAY_AUTHORITY = 5
          NO_CHANGE_ALLOWED    = 6
          OTHERS               = 7.
    read table lt_ORDERADM_I into ls_ORDERADM_I with key ITM_TYPE = 'YTS1'.
      if sy-subrc = 0.
        read table et_pridoc INTO es_pridoc index 1.
        LOOP AT es_pridoc-pric_cond into es_pric_cond where kposn = ls_ORDERADM_I-guid.
          clear is_cond_chg.
          move-corresponding es_pric_cond to is_cond_chg.
          clear is_cond_chg-kbetr.   "  clear the amount
          INSERT is_cond_chg INTO TABLE is_pridoc-cond_change.
        endloop.
        CLEAR: lt_input_field_names.
        ls_input_field_names-fieldname = 'COND_CHANGE'.
        INSERT ls_input_field_names INTO TABLE lt_input_field_names.
        CLEAR: cs_input_fields, ct_input_fields.
        cs_input_fields-ref_guid = ls_ORDERADM_I-guid.
        cs_input_fields-ref_kind = 'B'.
        cs_input_fields-objectname = 'PRIDOC'.
        cs_input_fields-field_names = lt_input_field_names.
        INSERT cs_input_fields INTO table ct_input_fields.
        is_pridoc-ref_guid = ls_ORDERADM_I-guid.
        is_pridoc-ref_kind = 'B'.
        INSERT is_pridoc INTO it_pridoc INDEX 1.
      endif.
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
        EXPORTING
          it_pridoc         = it_pridoc
        CHANGING
          ct_input_fields   = ct_input_fields
        EXCEPTIONS
          error_occurred    = 1
          document_locked   = 2
          no_change_allowed = 3
          no_authority      = 4
          OTHERS            = 5.

    Try this Function Modul after Order_Maintain
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait   =
          IMPORTING
            return = .
    Edited by: Richard Brünning on Nov 12, 2009 1:55 PM

  • Exit or routine or BADI for save the sales order

    Exit or routine or BADI for save the sales order.
    Please give your input Asap.
    Thanks & regards,
    Vinayak More.

    Hi Vinayak,
    please go through the steps and u will be able to find BADI of any transaction.
    &*************Reward point if helpful**************&
    BADI Info:
    Method 1:
    Go to Tranaction: SE24.
    open class CL_EXITHANDLER
    Open the method " GetInstance"
    Put Break point in the statement
    call method cl_exithandler=>get_class_name_by_interface
    Now execute the Transaction which you need teh BDC it will automatically stops at the the method. In debugging mode double click on the variable: " exit_name" It will return the BADI Name.
    Method 2:
    find the Package name and go to the tranaction SE84.
    Enter the package name
    inside the left navaigaiton panel there is one option " Enhancements" click on this enhancement and then enter the package name and execute it. you will get hte number of enhancement.

  • USER EXIT / BADI on save VF01

    Hi,
    Do you know any user exit or BADI which triggers after save VF01 (Billing document), actually I need to modify the payment terms field in the VF01 while save.
    Used program RV60AFZC to modify payment terms field but it does triggers before save.
    <removed by moderator>
    Thanks,
    Srini
    Edited by: Thomas Zloch on Mar 2, 2011 3:24 PM - no promises, please

    Hi,
    There is an enhancement point in FM RV_INVOICE_DOCUMENT_ADD.
    "ENHANCEMENT-POINT rv_invoice_document_add_15 SPOTS es_saplv60a"
    You can check it once.
    You can try with BADI SD_CIN_LV60AU02.
    Thanks
    Arbind

  • Need Userexit/Badi after save while creating invoice at VF01

    Hi expert,
    Can anyone tell me which BADI / USEREXIT i can use for update the custom table
    after save while creting invoice at VF01.
    Regards,
    Manasi

    Manasi,
    from next time onwards please post it in relevant forums
    for now check these links
    USSER-EXIT creating the invoice in VF01
    Re: user exit at invoice creation Vf01/Vf04
    VF01/VF04 user exit
    Thanks
    Bala Duvvuri

  • User exit / Badi on save of trip/receipt line

    Hi All,
    I am trying to find a user exit / BADI that is called when the user either accepts a line of a receipt within a trip or simply saves the trip in total (preferably the latter) and I have been unable to find it.
    Any ideas would be great,
    Thanks,
    Brenton.

    Hello
    In program SAPMWAKA (tcode WAK2) you will find routine MWAKAF03_CALL_PROMOTION_U in which fm PROMOTION_UPDATE is called.
    Within this fm you find at the end the coding:
    * BADI Aufruf
      PERFORM CALL_BADI_INTERF_PROM_UPD USING FXWAKHD.
    ENDFUNCTION.
    This routine check for implementation of BAdI WAKT_BADI_001. The BAdI method INTERFACE_PROMOTION_DATA is used to "Make Update Data Available to External Applications".
    In addition, you should look through the manyfold BAdIs and enhancement spots within package WAKT.
    Regards
      Uwe

  • IW51 - Badi during save to change item data

    Hello experts,
    we are trying to modify on service notification the item data (classification data).
    We are trying to do it via BAdI Interface IF_EX_NOTIF_EVENT_SAVE.
    Once we reach that badi we want to update classification data using function BAPI_OBJCL_CHANGE.
    We pass the document number we have to the object key of the bapi (qmnum + fenum).
    But bapi returs us message that document xxxx does not exist.
    When we test bapi vie SE37 it works .
    But in the badi it seems failing cause the document is not yet commited.
    Do you have an idea of how we could call the bapi to change item data with document number saved before ? (other badi, exit, other solution,...)
    Or any other idea could be welcome.
    Thanks for the help.
    S.N

    Hi
    Transaction Code - VF01                     Create Billing Document
    Exit Name           Description
    J_3RSINV
    SDVFX001            User exit header line in delivery to accounting
    SDVFX002            User exit for A/R line in transfer to accounting
    SDVFX003            User exit cash clearing in transfer to accounting
    SDVFX004            User exit G/L line in transfer to accounting
    SDVFX005            User exit reserves in transfer to accounting
    SDVFX006            User exit tax line in transfer to accounting
    SDVFX007            User exit: Billing plan during transfer to Accounting
    SDVFX008            User exit: Processing of transfer structures SD-FI
    SDVFX009            Billing doc. processing KIDONO (payment reference number)
    SDVFX010            User exit item table for the customer lines
    SDVFX011            Userexit for the komkcv- and kompcv-structures
    V05I0001            User exits for billing index
    V05N0001            User Exits for Printing Billing Docs. using POR Procedure
    V60A0001            Customer functions in the billing document
    V60P0001            Data provision for additional fields for display in lists
    V61A0001            Customer enhancement: Pricing
    No of Exits:         17
    With Regards
    Nikunj Shah

  • User exit  or badi after 'SAVE' of VA41 OR VA42

    Hi,
      What is the user exit or BADI that going to be triggered after clicking the 'SAVE'  button of create service order ( VA41)  and after clicking the 'SAVE' button of 'VA42'.
    I am searching, but not able to find.
    Regards
    Badari

    Hi Badari,
    Try USEREXIT_SAVE_DOCUMENT_PREPARE or USEREXIT_SAVE_DOCUMENT found in MV45AFZZ, one of them should do it.
    U also might find other exits to handle items there, if needed.
    Pls reward if helps.
    All the best
    Igal

  • User exit or BADI after save UD in QA11

    Experts,
    Is there any BADI or User exit available to update UD details after saving UD?
    I need this for my project very badly.
    Regards
    VRMP

    You can try the folllowing BAPI's
    Also, tray SAP transaction SE80, check out all the programs related to Function group: "2045"   You should find all the information you need and then some - related to inspection lots and inspection characterisics here.
    For post processing - try SAP Transaction SE80 - Package: "QV"  you will fine all the enhancements, enhancement spots, function modules and programs related to SAP transaction QA11.
    Thanks
    Edited by: Ed Bunn on Aug 30, 2010 10:16 PM

  • Bug: bad default save directory

    When saving files (e.g. a stored procedure definition) in "File ... Save As", the default directory is always "C:\windows\system32\config\systemprofile". That's stupid and senseless. What's worse is that a changed directory isn't remembered, it always defaults to that location, wasting time every time.
    Suggested fixes:
    1) Make the default the working directory when sqldeveloper is invoked. For example, the one specified in a shortcut.
    2) If the "Save as" directory is changed by the user, then remember it and use the same location next time, or at least through the current session

    I see this in 3.2.20.0.09.
    When attempting to "Save Package Spec and Body", the default is "....sqldeveloper/bin", and there is no way to change the default (one can change the directory for the current operation, but the problematic default will be there the next time one attempts the operation).
    This is very annoying.
    I don't even see where it was intended to be able to configure this. Under "Tools->Preferences" I don't see anything that looks like it would configure it, in sqldeveloper.conf nothing seems to be useful, and scanning the results of "Help->about->Properties" suggests that the "VMOption" of "user.dir" might be relevant, but changing that seems to leave the program inoperable.

  • User Exit or BADI for MIRO after save

    Hi
    I want to show a message in MIRO once the invoice document is create but I am unable to find a user exit or BADI after save of the MIRO transaction.
    Please guide me in this aspect.
    Regards

    try to run the below codes in a new program,it can help you to find all user exits of a t-code:
    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.

  • Problem (Exit/Badi)

    Hi All
    Please try to solve my problem which is described below.
    I have one Delivery Number for a specific Customer, For which I am creating Invoice using VF01.
    But when I complete the VF01 and press save it shows Message as "Document <Number> created". But After that message flashing in status bar when I press BACK button or any other button/key one Express Mail message comes in front of me which says "Update was Terminated" and in the mail below info is written along with some other system info
    <b>Error Info : ZDSD_EF_BILLING 042 :No home office could be determined for [Sold -to]</b>
    <b>Problem is :</b> I want to find out from where this Message/mail is coming out...
    <b>I have followed below Approach but it dint work :</b>
    1) I searched all exits searching customer-function in SAPMV60A...But it dint work.
    2) Also I searched all BADi's comeing while saving VF01 but the list is too big and I am not getting what I am looking for.
    Please suggest something
    Points will be surely rewarded for Helpful answers .
    Regards
    Tushar Mundlik

    Hi
    That was a great Idea!!!I liked it..
    I was able to find the Programs which have used class ZDSD_EF_BILLING number 042 as below.
    LYDEF_EDI_INVOICE_TEMPIU1        Include LZDEF_EDI_INVOICEIU1
    LZDEF_EDI_INVOICEIU1                   Include LZDEF_EDI_INVOICEIU1
    LZDEF_GNMW_INVOICEIU1             Include LZDEF_EDI_INVOICEIU1
    Z_TEST_EDI                                         EDI / TIBCO Invoice Output
    Even I put braek point in all the statement where the class ZDSD_EF_BILLING number 042 is used but it is not stopping at any point.
    There is no output type mentioned in the Delivery or Invoice.
    Even I tried your suggetion But I was not able to find the path SPRO>SD>BILLING>OUTPUT>OUTPUT TYPES and was unable to procede.
    Please help me again
    I will reward you full point surely...
    Regards
    Tulip

  • Problem in Badi BADI_SD_BILLING !!

    Hii Experts,
    We have a requirement, When a Excise Invoice is Created from VF01, then the billing Document should have a posting status(RFBSK) is 'C'. IF a billing Document Posting status is other than 'C' then Excise will not created.
    I want to implement  a Badi on save click(BADI_SD_BILLING) it throws a error like  BAdI definition BADI_SD_BILLING is only provided for SAP internal use.
    Nitin Garg.

    Did you check exit EXIT_SAPLV60B_001 or for that matter any other exits in function group XVVF (Userexits for billing documents).
    If not working, please see whether you can achieve the same through VOFM routines.
    Regards,
    Gokul

Maybe you are looking for