BADI or User-Exit while a billing document is generated in CRM

Hi SAP Gurus,
I'm looking for a BADI or a user-exit that gets triggered when a billing document is generaed in CRM.
(My requirement is to transfer Invoice information to Legacy when a billing document is generated.)
Please let me know if you have any idea about it.
Thanks in advance.
Regards,
Sreeraj
Edited by: Sreeraj Pulickal on Apr 21, 2011 1:49 PM

Found the solution.
We used certain 'Events' under the 'Billing Engine' in CRM to achieve the results

Similar Messages

  • User exit trigerred after billing document is generated

    The objective is to set the Sales Order Item Level System Status. Using a line item that is created in VA01, I have to create a reference item in VA02. For both the line items created I have to generate billing document in VF01. After the billing document is created (when I give save in VF01), using the billing document number I have to set the Billing and delivery system status to completed.
    The functional specification provided me with a user exit USEREXIT_NUMBER_RANGE in RV60AFZZ. But the exit is getting triggered before the billing document number is generated. So I am unable to set the status.  Can you suggest me a user exit that would be triggered after the billing document is generated?

    if your invoice is relevant for accounting posting - you may use one of SD/FI exits (check RV_ACCOUNTING_DOCUMENT_CREATE and search for call customer-function).
    OR you may define new output type for your invoice and put your logic there, nast-objkey will have invoice number.

  • User Exit regarding SD billing Document

    Hi Experts,
    I want several user exits of SD billing document.  The one is used to update Item condition when Billing document created, and the second is used to save to my add-on table before document saved.   Could you have any suggestions?
    Thanks.

    [User exits in sales document processing|http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/frameset.htm]

  • Can i know the user exits which should trigger while saving billing docu

    hi,
    please can u help me to find out user exits which should trigger while saving billing documents.

    A couple years ago I downloaded this program, I think from SAPFANS.  I don't take any credit for it...Not sure who originally wrote it.  Just type in the t-code and hit execute. 
    *& Report name          : Identify and Drill-Down to SAP User Exits.   *
    *& Program name         : ZZ_FIND_USER_EXITS                           *
    REPORT  ZZ_FIND_USER_EXITS
      NO STANDARD PAGE HEADING
      LINE-SIZE 132
      LINE-COUNT 65
      MESSAGE-ID MM.
    D A T A   D E F I N I T I O N                                        *
    TABLES : TSTC,      " SAP Transaction Codes
             TADIR,     " Directory of Repository Objects
             MODSAPT,   " SAP Enhancements - Short Texts
             MODACT,    " Modifications
             TRDIR,     " System Table TRDIR
             TFDIR,     " Function Module
             ENLFDIR,   " Additional Attributes for Function Modules
             TSTCT.     " Transaction Code Texts
    S E L E C T I O N   S C R E E N                                      *
    PARAMETERS : P_TCODE LIKE TSTC-TCODE OBLIGATORY.
    I N T E R N A L   S T R U C T U R E S   &   T A B L E S              *
    DATA : GT_TADIR LIKE TADIR OCCURS 0 WITH HEADER LINE.
    V A R I A B L E S                                                    *
    DATA :
           GV_FIELD1(30)  TYPE C,
           GV_DEVCLASS    LIKE TADIR-DEVCLASS.
    C O N S T A N T S                                                    *
    CONSTANTS:
               GC_F     LIKE TRDIR-SUBC   VALUE 'F',
               GC_R3TR  LIKE TADIR-PGMID  VALUE 'R3TR',
               GC_FUGR  LIKE TADIR-OBJECT VALUE 'FUGR',
               GC_SMOD  LIKE TADIR-OBJECT VALUE 'SMOD',
               GC_PROG  LIKE TADIR-OBJECT VALUE 'PROG'.
    R A N G E S                                                          *
    RANGES:
      GR_VKORK      FOR  WKBP-VKORG.
    E V E N T   P R O C E S S I N G                                      *
    INITIALIZATION.
    AT SELECTION-SCREEN.
      SELECT SINGLE PGMNA
        INTO TSTC-PGMNA
        FROM TSTC
        WHERE TCODE = P_TCODE.
      IF SY-SUBRC <> 0.
        MESSAGE E899(MM)
          WITH TEXT-E01    " Input Transaction Code is Invalid.
               TEXT-E02.   " Please Correct !!
      ENDIF.
      SELECT SINGLE TTEXT
        INTO TSTCT-TTEXT
        FROM TSTCT
        WHERE SPRSL = SY-LANGU
          AND TCODE = P_TCODE.
    START-OF-SELECTION.
      CLEAR GV_DEVCLASS.
      SELECT SINGLE DEVCLASS
        INTO GV_DEVCLASS
        FROM TADIR
        WHERE PGMID  = GC_R3TR
          AND OBJECT = GC_PROG
          AND OBJ_NAME = TSTC-PGMNA.
      IF SY-SUBRC <> 0.
        SELECT SINGLE SUBC
          INTO TRDIR-SUBC
          FROM TRDIR
          WHERE NAME = TSTC-PGMNA.
        IF TRDIR-SUBC = GC_F.         " Function Group
          SELECT SINGLE FUNCNAME
            INTO TFDIR-FUNCNAME
            FROM TFDIR
            WHERE PNAME = TSTC-PGMNA.
          SELECT SINGLE AREA
            INTO ENLFDIR-AREA
            FROM ENLFDIR
            WHERE FUNCNAME = TFDIR-FUNCNAME.
          CLEAR GV_DEVCLASS.
          SELECT SINGLE DEVCLASS
            INTO GV_DEVCLASS
            FROM TADIR
            WHERE PGMID    = GC_R3TR
              AND OBJECT   = GC_FUGR
              AND OBJ_NAME = ENLFDIR-AREA.
        ENDIF.
      ENDIF.
      SELECT *
        FROM TADIR
        INTO TABLE GT_TADIR
        WHERE PGMID  = GC_R3TR
          AND OBJECT = GC_SMOD
          AND DEVCLASS = GV_DEVCLASS.
      FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
      WRITE:/(19) 'Transaction Code - ',
              20(20) P_TCODE,
              45(36) TSTCT-TTEXT.
      SKIP.
      IF NOT GT_TADIR[] IS INITIAL.
        WRITE:/(95) SY-ULINE.
        FORMAT COLOR COL_HEADING INTENSIFIED ON.
        WRITE:/1 SY-VLINE,
               2 'Exit Name',
              21 SY-VLINE ,
              24 'Description',
              95 SY-VLINE.
        WRITE:/(95) SY-ULINE.
        SORT GT_TADIR BY OBJ_NAME.
        LOOP AT GT_TADIR.
          SELECT SINGLE MODTEXT
            INTO MODSAPT-MODTEXT
            FROM MODSAPT
            WHERE SPRSL = SY-LANGU
              AND NAME = GT_TADIR-OBJ_NAME.
          FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
          WRITE:/01 SY-VLINE,
                 02 GT_TADIR-OBJ_NAME HOTSPOT ON,
                 21 SY-VLINE,
                 22 MODSAPT-MODTEXT,
                 95 SY-VLINE.
        ENDLOOP.
        WRITE:/(95) SY-ULINE.
        DESCRIBE TABLE GT_TADIR.
        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.
    AT LINE-SELECTION.
      GET CURSOR FIELD GV_FIELD1.
      IF GV_FIELD1(8) = 'GT_TADIR'.
        SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
        CALL TRANSACTION 'SMOD' AND SKIP FIRST   SCREEN.
      ELSE.
        MESSAGE I899(MM)
          WITH TEXT-I01    " Click on the Exit Name to Drill-Down
               TEXT-I02.   " to SAP Enhancement Information.
      ENDIF.
    END-OF-SELECTION.
    TOP-OF-PAGE.
    S U B R O U T I N E S                                                *
    E N D   O F   R E P O R T  ****************************************

  • BADI or user exit to enter a countable document

    hello i need a BADI or user exit to enter a countable document
    regards
    Dayana

    Hi,
    Just curious
    What exactly is a countable document? May be i can help then.
    Thanks,
    Praveen

  • Changing billing document date while creating billing document from vf01

    Hi gurus,
    I have requirement to change billing doc date while creating billing document from VF01.
    here I have to consider goods issue date eq billing date.
    caluculating billing date = Goods Issue + Goods in Transit duration time.
    I have done everu thing but I cant update the caluculated date, iam using the following enhancement
    Enhancement:SDVFX001
    Function Module:EXIT_SAPLV60B_001
    Include:ZXVVFU01 which are part vf01.
    here iam sending the calculated date to VBRK-FKDAT
    move cal_date to vbrk-fkdat.
    need help how to update the calculated date to VBRK-fkdat i.e billing document date
    Regards
    Bhaskar

    Hi
    No! That exit is not good for your issue
    U can use the user-exit USEREXIT_NUMBER_RANGE_INV_DATE  defined in RV60AFZC
    Max

  • BAdi or User exit to use in MB26 to avoid posting before saving of mat doc?

    Hello Experts,
    Can anyone tell me which BAdi or User exit to use in MB26 to avoid posting before saving of material document?
    I have requirement to stop posting incase of negative invetory in issuing storag location.
    Thanks

    Hello,
    The issue is currently we alllowing the negetaive stock at storage location level.At this movement , we want to avoid the negetive stock creation while posting the Mat doc with MB26.Before saving the material document I want check the stock levels in MARD , if the stock levels goes negative from this posting, then I want to stop the document posting.
    Thanks

  • BADI or User Exit for VF04

    Dear All,
    I want to stop the split of Invoice of the same customer. Can anyone know the BADI or User Exit to Implement this?
    Please help ASAP.
    Thanks in advance.
    Best Regards,
    Prasad

    Transaction Code - VF04                     Maintain Billing Due List                                                                               
    Enhancement/ Business Add-in            Description                                                
    Enhancement                                                                               
    V61A0001                                Customer enhancement: Pricing                              
    V60P0001                                Data provision for additional fields for display in lists  
    V60A0001                                Customer functions in the billing document                 
    V05N0001                                User Exits for Printing Billing Docs. using POR Procedure  
    V05I0001                                User exits for billing index                               
    SDVFX011                                Userexit for the komkcv- and kompcv-structures             
    SDVFX010                                User exit item table for the customer lines                
    SDVFX009                                Billing doc. processing KIDONO (payment reference number)  
    SDVFX008                                User exit: Processing of transfer structures SD-FI         
    SDVFX007                                User exit: Billing plan during transfer to Accounting      
    SDVFX006                                User exit tax line in transfer to accounting               
    SDVFX005                                User exit reserves in transfer to accounting               
    SDVFX004                                User exit G/L line in transfer to accounting               
    SDVFX003                                User exit cash clearing in transfer to accounting          
    SDVFX002                                User exit for A/R line in transfer to accounting           
    SDVFX001                                User exit header line in delivery to accounting            
    J_3RSINV                                                                               
    Business Add-in                                                                               
    SD_CIN_LV60AU02                         BADI for billing                                           
    VOR_WA_FAKTURA                          Billing before Goods Issue

  • Badi or User exit to modify MSEG data during Goods issue

    Hello,
    I have a requirement to modify the field plant MSEG-WERKS while doing goods issue of outbound delivery via transactiona VL02N.
    Can anybody suggest me which BADI or user exit should i use.I have searched the SDN and all the previous threads on this haven't yeild any solution for this.
    I have tried with below listed Badis and enhancements which wont work.
    Badi
    ===================
    MB_DOCUMENT_BADI
    MB_MIGO_BADI
    LE_SHP_GOODSMOVEMENT
    DELIVERY_PUBLISH
    Enhancements
    ===============
    MB_CF001
    MBCF0005
    Thanks and Regards,
    Koustubh

    Hi,
    I am facing a similar issue of updating the MSEG-DMBTR field when Post Goods reciept is done in VL02n.
    I hav tried to update the value in LE_SHP_GOODSMOVEMENT BADI and tried to modify the structure .
    eg in this way
    method IF_EX_LE_SHP_GOODSMOVEMENT~CHANGE_INPUT_HEADER_AND_ITEMS.
    data: wa1 type LINE OF shp_imsegvb_t. "IMSEGVB.
    DATA: flag TYPE c.
    LOOP at CT_XIMSEG INTO wa1.
      wa1-dmbtr = '12345'.
    MODIFY CT_XIMSEG FROM wa1.
    " TRANSPORTING dmbtr.
    flag = 'x'.
    ENDLOOP.
    endif.
    endmethod.
    The value gets updated in the structure but when the material document gets created then the table MSEG has the amount DMBTR field not changed.
    Also, I tried doing the updation in the Function eXit : EXIT_SAPMM07M_001 by the method mentioned in different threads:
    betweeb statemnet if  sy-tcode = 'VL02n'
    FIELD-SYMBOLS: <DMBTR> TYPE any,
    <DMBTR1> TYPE any.
    ASSIGN '(SAPMM07M)MSEG-DMBTR' TO <DMBTR>.
    assign (<DMBTR>) to <DMBTR1>.
    But still on save of the material document in MSEG I cannot find the new DMBTR field value.
    Kindly help me on this, urgently required. I have already gone through the number of threads in the forum, but no solution.

  • BADI or User exit  for FB50 to update custom field in table COEP

    Hi all,
    i have added one custom field in table COEP through include CI_COBL .
    when i do posting through sales order(VA02) or purchase order(ME22n) that custom fields in COEP get updated with controlling document
    and through BADI AC_DOCUMENT i m updating that custom field in COEP.
    but when i do manual posting through FB50 controlling document is generated in COEP but i m not able to update that custom field
    because in this case BADI AC_DOCUMENT  is not get triggered.
    is there any BADI or User exit or enhancement spot for FB50 through which i can update that custom field in table COEP

    Hi Sandy,
    Thanks for u r reply,
    RFAVIS01 is not getting triggered through FB50
    and F180A001 ( EXIT_SAPLF048_001) is getting triggered but it doesnt contain COEP field in its parameter
    import - F180A_DOC_HEAD_TAB
                 F180A_DOC_ITEM_TAB
    changing - RELATION_TAB

  • User exit for different Material Document for different company code

    Hi,
    We want to have different no. range for Material document (GR) for different compnay code. Presently we have no. range at client level. Can we do with any userexit. If so pls. give the details.
    Regards
    Sai Krishna

    [user exit for generating external serial;
    [BADI MB_DOCUMENT_BADI;
    [user exit or any other enhancements during good receipt;

  • Differences between BADIS and User-exits

    Hi everybody,
    I am new to ABAP and wonder what are the differences between BADIS and User-Exits. I read paper but did not find a SAP documentation yet.
    Does anybody know where to find a sap document which explains both technologies?
    Greetings, AD

    Hi,
    User-Exit is a specific place in a transaction-process where SAP offers
    third parties to include there own business functionality. Actually
    User-Exit is the namespace used for Exits programmed by SAP specifically
    for SD. For the other modules it's called Customer-Exit.=20
    >Business Add-Ins (BADI) =20
    The use of object orientated code within SAP has lead to new method of
    enhancing standard SAP code called Business Add-Ins or BADI's for short.
    Although the implementation concept is based on classes, methods and
    inheritance you do not really have to understand this fully to implement
    a BADI.
    For better understanding visit.
    http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/779183#
    Hope it was useful.
    Thansk,
    Sandeep.

  • Need BADI or USER EXIT for VT02n

    HI Friends,
    I'm writing a driver program for a ouptput type ZET1 (interface) the tcode is VT02N .
    In menu bar: goto--> output here i've give the output type and save.
    My Problem is, if there is any error on the driver program, it should be displayed the error msg while pressing  the save button.
    is there any BADI or User Exit.
    Thanks & Regards,
    Vallamuthu.M

    Hi,
       Check the below BADI's
       BADI_LE_SHIPMENT                        BadI: Shipment Processing
       BADI_V56N                                     User Exit Transport - Message Determination
    Regards,
    Srini.

  • Badi or user exit for allocation run (J3AT)

    hi friends,
    we r using the SAP AFS in that i need to put the sales order value check for F status material while saving the allocation run. for that i need the badi or user exit where i will get the values of all the F status mateial before i save the allocation run. so that i can perform the check on sales order values.
    regards,
    vicky.

    Hello vicky
    can you please tell me the note number that solved this problem, thanks.

  • FB03 BAdI/BTE/user-exit

    Hi,
    I need to customize FB03 transaction, so that right after the document selection or via custom button at document display, I'm able to perform needed action. Preferably, it would be the custom button way, at the document display there would be a button in the application bar at the level as document/original display is.
    I've been looking for propriate BTE, BAdI and user-exit, but haven't found anything suitable, that would perform at the document header level. I know how to add a button to the item level, but that's not what I need. If anyone knows about any possible customization (except changing the original), help would be appreciated.
    Thanks in advance.
    Best regards,
    Tomas

    bte or exit for f-03 and F-04
    What is the actual requirement ? business point of view .
    It may be possible that for a validation you can use the standard functionality of GGB0.
    Cheers ,
    Dewang

Maybe you are looking for