BADI or User Exit - Change Material Document(GL/Account) before posting

Hi,
I want to change the MSEG and FI Posting values before the material documet is posted. I am not using the transaction MIGO for the material document posting. The material document which has to be changed was created during the stock adjustment (MI01,MI02,MI07.etc)
The Details I want to change is "GL Account No" based on
storage location. Since I cannot solve this requirement throught customization, I need a way to achive this using
user exits or badis..
Points will be rewared.
Prasath
Edited by: Prasath Kumar R on Jul 24, 2008 1:18 PM
Edited by: Prasath Kumar R on Jul 24, 2008 1:18 PM

Hi ,
What you advised is right, But my customer demands to set the Gl Account at Storage location level.
Is there any way that i can change GL/Account after Posting....????!!!!  I hope it also not possible..
Plz advise..abt my assumption.
Regards
Prasath
Dear All,
Please let me know the possiblity of achiveing the above reqmt. Your suggestions will be helpful..
Regards
Prasath
Edited by: Prasath Kumar R on Jul 25, 2008 9:33 AM

Similar Messages

  • 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

  • MIRO user exit  at material document creation

    I need to find out where or how material documents are created.  Right now we have one material document per day per invoice so a single document can have many payments made against it (if they are made in the same day).  What I need to do is change it so that each payment has its own material document.  If you have 3 payments against invoice 001 in the same day then you have three material documents against that invoice instead of just one.
    I am assuming this is done, or can be changed, in a user exit.  If not is this a configuration issue?
    Regards,
    Davis

    Here is the list of User Exits and BADIs for MIRO.
    Enhancement/ Business Add-in            Description
    Enhancement
    LMR1M001                                User exits in Logistics Invoice Verification
    LMR1M002                                Account grouping for GR/IR account maintenance
    LMR1M003                                Number assignment in Logistics Invoice Verification
    LMR1M004                                Logistics Invoice Verification: item text for follow-on docs
    LMR1M005                                Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006                                Logistics Invoice Verification: Process XML Invoice
    MRMH0001                                Logistics Invoice Verification: ERS procedure
    MRMH0002                                Logistics Invoice Verification: EDI inbound
    MRMH0003                                Logistics Invoice Verification: Revaluation/RAP
    MRMN0001                                Message output and creation: Logistics Invoice Verification
    Business Add-in
    INVOICE_UPDATE                          Business Add-In: Logistics Invoice Verification

  • User-exit on material document

    Is there a user-exit on the material document to enter a field for goods movement reason codes?
    ...or any other place where you could maintain goods movement reason codes (drop-down list)
    Thanks

    Hi Torkel,
    In which transaction you need this field and on what is the version of your SAP system(4.6C, 4.7 etc)
    There is one BADI with name MB_MIGO_BADI in transaction MIGO which allowes adding our Customer tab on level of Header or item with our self defined fields. This BADI exist in mySAP ERP 2004 but I'm not sure if exist on previous releases.
    Regards,
    Drazen Lovrencic

  • User exit for material document.

    Hi,
    does any one know and user exit or BADi which gets triggered when ever a material document is posted  ( Saved) in to the system and is irrespective of transaction used.  we want to send the updated stock information and their status to a third party system when ever there is a material document posted via an IDoc.

    Try BAdI [MB_DOCUMENT_BADI|http://www.sdn.sap.com/irj/scn/advancedsearch?query=mb_document_badi], method [IF_EX_MB_DOCUMENT_BADI~MB_DOCUMENT_UPDATE|http://www.sdn.sap.com/irj/scn/advancedsearch?query=mb_document_badi+mb_document_update]
    Regards,
    Raymond

  • User Exit for "Serial Number" in VL02N before "Post Goods Issue".

    Hi Friends,
    Current Scenario:
    End User has to scan "Serial Number" for Main Unit (Item CAtegory - TAN) while doing "Outbound Delivery". But, sometimes he forget to do this activity of scanning "Serial Number". And do "Post Goods Issue" without "Serial Number".
    Requirement:
    When End user will click "Post Goods Issue", system should first check "Serial Number" for Main Unit (Item Category - TAN). If he will not find "Serial Number" then system should give warning message for "Serial Number".
    Please suggest the suitable "User Exit" that can be used for above purpose.
    Or if there is any other way then let us know.
    Regards
    Siva

    hi
    check is there any standard User Exit available for VL02N. apply your logic and activate

  • BADI or User Exit  of XD01  ??

    Hi Guru,
    I am looking for  BADI or User Exit for XD01 for customer number before saving.
    Thanksin Advance,
    Anthyodaya.

    Hi rithvika thanks for the reply
    but the problem is After saving not before saving. i asked u wrong...
    I am looking for BADI or User Exit for XD01 for customer number AFTER saving. (CREATING CLIENT)
    Thanksin Advance,
    Anthyodaya.

  • BADI or USER EXIT for MIGO when changing order number

    Hi experts, I'm looking for a BADI or USER EXIT in Tx. MIGO that is triggered after pushing ENTER when you change the order number. What I need to do is to propose the movement type depending on the order data. Thanks.

    Not sure but you can try in BADi MB_DOCUMENT_BADI menthod:
    MB_DOCUMENT_UPDATE

  • Badi or user exit for changing currency INR to EUR

    hi friends,
    in po header there is one tab called status.
    in this tab there is one field called delivery payment
    which has curr INR but i want to change that INR CuRR
    to EUR.Can any one tell me how do this is there any badi or user exit
    for this req.
    thanks.

    Hi Sonu,
    Use the following program to find out the appropriate user exist for ur transaction:
    REPORT ZGURU_USER_EXIT_FIND .
    *&  Enter the transaction code that you want to search through in order
    *&  to find which Standard SAP User Exits exists.
    *& Tables
    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
    *& Variables
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    *& Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK a01.
    *& Start of main program
    START-OF-SELECTION.
    Validate Transaction Code
      SELECT SINGLE * FROM tstc
        WHERE tcode EQ p_tcode.
    Find Repository Objects for transaction code
      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 = enlfdir-area.
            MOVE : tadir-devclass TO v_devclass.
          ENDIF.
        ENDIF.
    Find SAP Modifactions
        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.
    Take the user to SMOD for the Exit that was selected.
    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.
    Then u can use the function CONVERT_TO_LOCAL_CURRENCY to change the amount from INR to EUR.
    Regards,
    Himanshu

  • 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

  • BADI or User Exit to Change the Item Details in AFAB Transaction(Depreciation)

    Hi Experts,
    I have a requirement of changing the Item details in AFAB Transaction (Internal Order Number). Is there any BADI or User exit available for that.
    Thanks in advance.

    Hi Sivag,
    You can find BADI for transaction in different ways. Try with below methods
    1. To find New BADI(Karnel), Run the transaction with debug mode(/h), keep break point at statement
        CALL BADI
    2. To find old BADI (Classic), Keep break point at exit handler CL_EXITHANDLER=>GET_INSTANCE and         run the transaction
    3.  Check in SPRO transaction  - Check with functional consultant in which business process this transaction    comes and any customization  details available
    4. Get pakage name of transaction and go to to tcode se84 enhancement browser . Try to find with package name,  any enhancement available
    Thanks & Regards,
    aRun

  • 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

  • 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

  • Badi or user exit for Cash Journal

    Dear friends,
    As I am not able to post a special GL transaction through cash journal, i request you to help me for a badi or user exit which may be available for cash journal.
    Regards
    Dhirav shah

    Hello Ajeshi,
    below are the user exit available for fb02 transaction code.
    Exit Name           Description
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    FEDI0001            Function Exits for EDI in FI
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    but i fill your problem can be solve using function exit FMRESERV and specifically 'EXIT_SAPLFMR4_002' function module. change the field xblnr from t_accit table.
    I hope this will slove your problem.
    Regards,
    Vikash

Maybe you are looking for

  • 10g on SuSE 9.1 Pro issue

    Hi everybody! I am a newbie in this area (Oracle & Linux) and I need some help here... I have succesfuly installed Oracle 10g on SuSE 9.1 Pro (kernel 2.6.4), following the step by step procedures as described by Oracle (oracle user account, dba and o

  • Error in logical port while connecting to SAP CRM cloud

    Dear Members, I have created a logical port manually to connect to SAP CRM cloud system. But when I ping the web service I am getting below error. Please let me know how to solve this error. SRT Framework exception: Service Ping ERROR: Error when cal

  • In PO how to bring default tick in info update?

    In PO how to bring default tick in info update? Please explain me very clear. I know the transaction OMFI is using. I need how to assign with parameter ID? Please be clear?

  • Importing iphoto 09 pictures into imovie 09 with ken burns movement!

    Im making a video on imovie 09 using still images i took and imported to iphoto. Then i import those iphoto pictures into imovie, BUT all the pictures have moving "ken burns" crop effects on them after i import them to imovie!!! i know how to fix it,

  • Info Rec Price Change on Condition Types

    We have our info records by plant. Key fields are: material, plant, then vendor. And we also maintain multiple condition types for each info record. Now we want to update the rates of the condition types in the info records... by plant. We thought ME