User exit to input Cost center in Billing document

Hi all,
My requirement is I need to get the cost center value in accounting document ( FB03)
Actually a contract is getting created and a billing document is generated and saved.
There is no cost center in contract creation screen (VA41)but it is visible in billing document(vf01)  in grey mode.
Now my requiremnt is based on contract type ,distribution channel, sales org. and division I need to pick the cost center and should get display the value in accounting document(fb03).
For this do I need to go for user exit ? If yes then where should I write it ?
In Contract creation screen(VA41) or in the billing document screen? and plz guide me the program name and User exit,
or is there any other solution for this?
Plz answer

I think you have to try from the Txn VF01 and the below are the BAdi and method details
Check the BAdi SD_CIN_LV60AU02 in the method EXCISE_INVOICE_CREATE check the importing parameter of the method
XVBRP     Importing     Type     VBRP_TAB

Similar Messages

  • 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  ****************************************

  • Find out user exits which should trigger while saving billing doc.(VA01)

    Hi All,
    please can u help me to find out user exits which should trigger while saving billing documents for VA01 transaction...I have already z report to find the user-exit for any transaction.I have tried in that also.
    Reply
    Ulhas

    Hi
    Try these
    USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ)                    
    The internal number range used in the standard system is specified                
    in the billing type table and can be changed in this user exit. This              
    user exit is only called when the billing documents is created.                                                                               
    USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program                       
    RV60AFZZ)                                                                         
    In this user exit additional fields for account determination that                
    are not provided in the standard system are copied into                           
    communication structure KOMKCV (header fields).                                                                               
    USEREXIT_ACCOUNT_PREP_KOMPCV (Module pool SAPLV60A)                               
    In this user exit additional fields for account determination that                
    are not provided in the standard system are copied into                           
    communication structure KOMPCV (item fields).                                                                               
    USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program                     
    RV60AFZC)                                                                         
    Depending on the number range, table TVFKD is used to set the                     
    billing date (country-specific requirments in Italy).                             
    USEREXIT_NUMBER_RANGE is automatically deactivated when this user                 
    exit is being applied.                                                                               
    USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC)                  
    This user exit is only called when the billing document is created.               
    It is used to provide the header and the item of the new billing                  
    document with deviating or additional data.                                       
      USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB)                    
      Printing the item line of a billing document can be supplemented or             
      changed.                                                                               
    USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)                     
      Printing the header line of a billing document can be supplemented              
      or changed.                                                                               
    User exits in program RV60AFZD                                                  
      Short descriptions of the user exits are contained in the program:                                                                               
    -   USEREXIT_RELI_XVBPAK_AVBPAK                                                                               
    -   USEREXIT_NEWROLE_XVBPAK_AVBPAK                                                                               
    -   USEREXIT_NEWROLE_XVBPAP_AVBPAK                                                                               
    e following user exits are available in report SAPLV60B for transfer              
    accounting (function group V60B):                                                                               
    EXIT_SAPLV60B_001: Change the header data in the structure acchd                
      You can use this exit to influence the header information of the                
      accounting document. For example, you can change the business                   
      transaction, "created on" date and time, the name of the person who             
      created it or the transaction with which the document was created.                                                                               
    EXIT_SAPLV60B_002: Change the customer line ACCIT                               
      You can use this exit to change the customer line in the accounting             
      document. This exit is processed once the ACCIT structure is filled             
      in with data from document header VBRK.                                                                               
    EXIT_SAPLV60B_003: Change the customer line in costing                          
      The customer line is filled in differently for costing. You can use             
      exit 003 to influence the ACCIT structure.                                                                               
    EXIT_SAPLV60B_004: Change a GL account item ACCIT You can add          
    information to a GL account item (such as quantity specifications)     
    with this exit.                                                                               
    EXIT_SAPLV60B_005: User exit for accruals                              
    Once all relevant data for accruals was entered in the GL account      
    item, you can add to this data with this exit.                                                                               
    EXIT_SAPLV60B_006: Change the control line ACCIT                       
    You can use exit 006 to add information to the control line.                                                                               
    EXIT_SAPLV60B_007: Change the installment plan                         
    You can use exit 007 to add information to the installment plan        
    parameters in the GL account item.                                                                               
    EXIT_SAPLV60B_008: Change the transfer structure ACCCR, ACCIT and      
    ACCHD                                                                  
    After the accounting document is filled in with data, you can use      
    exit 008 to change the document once again.                                                                               
    EXIT_SAPLV60B_010: Item table for customer lines                       
    You can use exit 10 to influence the contents of customer lines        
    before they are created.                                                                               
    EXIT_SAPLV60B_0011: Change the parameter for cash account              
    determination or reconciliation account determination                  
    You can use this exit to change inbound parameters in order to         
    influence account determination.                                       
    >                                                                      
    Thanks
    Shiva

  • Exit to change cost center in MIRO?

    Hello , i wish to modify my cost center when the document is being saved.what exit can i use?

    Yes use,
    - [EXPORT obj1 ... objn TO MEMORY ID key|http://help.sap.com/saphelp_45b/helpdata/en/34/8e73a36df74873e10000009b38f9b8/frameset.htm]
    - [IMPORT obj1 ... objn FROM MEMORY ID key|http://help.sap.com/saphelp_45b/helpdata/en/34/8e73aa6df74873e10000009b38f9b8/frameset.htm]
    Also perform a plausability check in the FI substitution to insure that this data will only be used once. (check EBELN or such field)
    Regards,
    Raymond

  • FI-AA / CO - Impossible to input cost center in asset acquisition

    Hello everyone,
    I have a question about asset acquisition postings (transaction ABSO).
    In first item of the document (with posting key 70) i click on 'Additional account assignement' but fields 'Cost center' and 'Profit center' are both locked (no possible entries).
    I state that:
    AA
    1) Additional account object as KOSTL (Cost center) is active in AA customizing
    2) Account assignment object for dep. area 01 (trsx. ACSET) displays KOSTL for '*' all Asset transaction type
    GL
    1) In Account master data field status group provides Cost center as optional entry
    CO
    1) Cost center is active for the relating controlling area
    2) The acquisition account is correctly opened as statistical cost element
    The same thing happens if i try to post with transaction AB01 instead of ABSO, but if I remove 'A - Asset' from transaction OAMK (Change control of reconciliation Accounts) i could input cost center in a generic FI posting.
    How i could insert cost center code in transaction ABSO for the first item of the document ?
    Why the transaciont did not inherit cost center from Asset master data ?
    Some parameterization missed in CO customizing (or GL or AA) ?
    Thanks and bye
    M.M.
    Edited by: Armidoro Marella on Jul 8, 2010 4:01 PM

    Hi,
    Please check the setup as follows:
    1.  Go to Financial Accounting -> Asset Accounting -> Integration with the general ledger -> Additional account assignment
         objects -> Activate Account Assignment Objects.  Is the filed 'Agreement' is set as 'X' for object COST CENTER ? If this
         indicator is checked, you are not able to enter cost center when posting acquisition, even via tcode F-90. This ensures the
         consistency of the cost center value with that in asset master data.
         However, the cost center will not be inherited from asset master data before you change message status, as described in
         next step.
    2. Go to OBA5. Enter Application Area 'KI', click Enter and then switch off message 098. 
    Hope this helps...

  • The user exit on the sap post the account document

    Dear all.
       I use the t-code mb01 or migo to receipt goods for purchase order.When I execute post or save,the sap generate the material document and the account document.The account documents have two item with account 12110000 and account 12010000.And I know this two account was configure in the t-code omwb.
       Now my company have a new requirement:
       When the sap generate the account documents,I need to write some code to do some judgement and change the account 12110000 to account 35510000 or other account.The logic of the code was complex and it's impossible to do in sap standard configure.So I want to find the user exit on the sap post the account document.In the user exit I would write some code to do some judgement and change the account 12110000 to account 35510000 or other account.
      But I can't found the user exit.So I need the experts to give me some reference.
    Regard
    Yoda

    Hi,
    You may use ZXF48U01 of EXIT_SAPLF048_001 of enhancement F180A001 for the same.
    Please note that control comes here for no of transactions hence you need to specifically check for sy-tcode, for which your 'exit' logic needs o be executed.
    I hope this helps,
    Regards
    Raju Chitale

  • User exit to populate profit center in production order change (CO02)

    Hello,
    The requirement is to populate the profit center in production order change (Tcode CO02). I know the user exit that can populate profitcenter in CO01 but it's not called in CO02. Ther other user exits that I found are for checking but not for changing
    Is there a user exit /BADI that can acheive this requirement?
    Thanks a lot for your advise.
    Joe

    Hi,
    Use the user exit PPCO0007 ,function module EXIT_SAPLCOZV_001
    HEADER_EXP-PRCTR
    Thanks,
    Shailaja Ainala.

  • User exit:Customer order-profit center

    Dear friends,
    While creating customer order, after ı fill customer and material SAP brings profit center automatically.
    I think this situation is related to user exit.. Can anyone please tell me which user exit it is?
    Regards,

    Hello,
    The Profit center is derived from material master plant view . the determination as described by you is from standard functionality.
    if you are using a WBS element, it would be derived from the WBS elements org parameters
    hope this helps
    Thanks
    Akasha

  • Service master user exit to populate work center description

    Hi experts,
    In IW31 work order, I need a user exit to populate the work center description to PR delivery address for control key PM03 with Service Master.  I have tried and search in vain for other BADI or user exit but none works.
    Is there anyone have solution on this?
    Thanks.
    Regards
    PSK

    My abaper has tried a few IWO1_PREQ_BADI, IW010009 and WORKORDER_UPDATE.
    Operationally, user require the work centre address as the delivery address of the services due to the company has 24 physical workshop locations.
    Anyway, will also try to create the fields in AUFK table as recommended.

  • Input cost center in Goods Issue

    Can I input the cost center in Goods Issue or Goods Receipt transaction?   I cannot find the cost center field in the forms setting?
    Many thanks for the kind advice in advance?

    Vijay Kumar,
            Our version is 2005.   According to Julie Jamieson's advice, in version 2007, thie field "Distr. Rule" = "Cost Center".  Is it really impossible for version 2005 to input the cost center in Goods Issue or Goods Receipt?    Your kind advice will be highly appreciated.
    Ada

  • User  exit to populate BSEG field during billing doc release

    Hi,
       Can anyone identify for me a suitable user exit during Billing Document Release that will allow me to populate a field in bseg?
    Many thanks,
    Ross

    I got it, thanks anyway.

  • User Exit to update Cost Assignment in IT2002

    I am trying to know the User exit for a custom inbound interface program I want to build for updating Cost assignment in IT2002.  Has anyone done this before?

    I am trying to know the User exit for a custom inbound interface program I want to build for updating Cost assignment in IT2002.  Has anyone done this before?

  • MB1A Missing cost center in Accounting Document.

    Hi All,
    WHile I run MB1A transaction & input the movement type & select the order number & save i get a Material Document generated (MSEG ) & an Accounting Document as well ( BSEG ).
    My requirement is to fill up the corresponding cost center value in the Accounting document which is blank as of now for all.
    Can this be achieved by some Functional setting?
    I searched for all USER EXITS & BADI's but non of them seem to have a place where i can modify the BSEG-KOSTL Value.
    Need your Valuable inputs on this.
    Thanks.
    Kevin.

    Hi Kevin,
    In MB1A the following exits are available,
    MBCF0002
    MBCF0005
    MBCF0006
    MBCF0007
    MBCF0009
    MBCF0010
    MBCF0011
    MB_CF001
    However check by putting a breakpoint on exit EXIT_SAPLFMR4_002 which is accouting document if you can do anything here.
    Thanks and regards
    Kedar

  • Hiding the cost column in Billing document

    Hi,
    We have a requirement to hide the COST column in transaction VF01, VF02; VF03.Please let me know if any body has any clues.
    In the current system there are two companies.
    Company 1 Users should not see cost; Company 2 Users has to see the cost.
    I have two options:
    Option One:
    We can hide the cost column by changing the screen variant.
    Impact:
    This is hiding total system so that both the users can not see the cost .
    This is not accepting by IT team.
    Option two:
    We can define new transaction copy of VF01, VF02, and VF03. (Transaction Variant)
    That will be ZVF01, ZVF02, and ZVF03.For this new transaction we can create a screen variant to hide the cost Authorization to assess of VF01, VF02 and VF03 will be removed to Company 1 users.
    Impact:
    If we remove the authorization to VF03 to customer service people.
    Through document flow customer service user cannot see billing document. They need to enter ZVF03 to see billing document.
    This solution is not accepting by Business (Customer service).
    It will be great full if someone can through some light on this.
    Thanks in advance.
    SAV

    Please check follwoing user exits :
    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 numbe
    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 Procedu
    V60A0001 Customer functions in the billing document
    V60P0001 Data provision for additional fields for display in lis
    V61A0001 Customer enhancement: Pricing
    and also check with RV60* in se38

  • Where to change the cost center in material document?

    Hi everyone,
    I have a problem. Last month, I've created a new business area, with its own division and cost center.
    In the test client, the whole process of creating requisition, PO, goods receive, cancel goods receive (return to vendor), create sales order, delivery and goods issue went well.
    But, today, when one of my users tried to cancel goods receive (movement type 102), the following error message was displayed:
    KMXX/KM11 CTR belong to business area M110 not M140.
    Since the PO was created for a stock item, there is no account assignment, so I am wondering if I have missed out something in configuration, especially in defining account assignment for automatic posting? Can anyone help?
    Thank you very much.
    Anisah

    HI,
    There should have been some changes done in the system after thr initial docs were created.
    Please ensure that the said cost centre of interest is assigned to the appropriate Business area.
    The error seems to be an invalid combination of the Business area to the cost centre.
    If not then please maintain the same.
    Hope this helps.
    Regards,
    Prasanna
    Award pls if helpful.

Maybe you are looking for