Exit/badi to be used just before save in MM01/MM02

hi all...
the requirement is that i have appended a field in MARA.
the problem is that i need to put some checks on this field.
so i would be writing a code for it in an exit or in a badi if possible.
awaiting your reply and thanks in advance

Hi,
  Use the enhancement MGA00001 and write the code in the function exit EXIT_SAPLMGMU_001,
Hope this helps,
Rgds,

Similar Messages

  • User Exit/BADI/Enhancement Point  in VF01 before new document no assignment

    Hi Expert,
       I am looking for a user exit/BADI/Enhancement point which will trigger in VF01 before the new document no (Billing document no assign).
    I need to cross check few things in Billing via VF01 at billing document save and give error message accordingly. The problem is if new number assign and there is error due to my code then when user save the document next he get a new no. its mean a no skip.
    Example: The invoice no is 1000. User start creating a billing document with Vf01 and he get an error message due to my code at exit , at this point of time the next number assign to billing which is 1001 but document not save due to my error message. Now after applying correction user save data and billing document created with no 1002. So there is no skip.
    I tried BADI BADI_SD_ACCOUNTING but this will trigger after no assignment.  Can someone provide me a user exit/BADI/Enhancement point in VF01 which trigger before no range assignment and contain at least Billing header data to use in my code?
    Regards
    Swati
    Edited by: Swati Namdev on Nov 16, 2010 9:55 PM

    HI Brad and team,
       BRED is right. I check few user exit normally all of us have that list or easily available on net.
    BRED: my question is: I need to check the billing date VBRK-FKDAT of document should not be less than the sales order plan billing date VBAP-Oldate.
    If this check fail then won't allow the user to create billing document. The problem is I used one user exit SDVFX001 already define previously that's work fine but issue is that user exit trigger after the billing no assignment. That's why when user get that error message he correct the document and create billing this time he get a new number which is skip of one no.
    That why I need a User Exit/BADI/Enhancement Point  which trigger at save but before document no assignment.
    Please update more about your comment "Why not use a header level copy requirement routine to perform the checks and log the messages? This is the standard process."  .
    Suggest user exit USEREXIT_FILL_VBRK_VBRP  trigger before save. I need at save the reason is VBRK-FKDAT  this can be change.
    Feel free to contact me back if you need more clarification.
    Regards
    Swati
    Edited by: Swati Namdev on Nov 17, 2010 6:22 PM
    Edited by: Swati Namdev on Nov 17, 2010 6:25 PM
    Edited by: Swati Namdev on Nov 17, 2010 6:32 PM
    Edited by: Swati Namdev on Nov 17, 2010 6:47 PM

  • Which User Exit / BADI I can use?

    Hello All,
    While Saving PO or PR I need to check the value of commitment Item(FIPOS).
    Which User Exit / BADI I can use?
    Regards,
    Lijo John

    try this method;
    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
    when u run the  po transaction it will repeatedly stop at the breakpoint check the value of exit name there press  f8 to continue now when u just save the po then check the values of exitname in the debugger

  • User Exit on Material Save in MM01/MM02 (31I)

    Hi,
    Does anyone know of a user exit that gets triggered upon material save in MM01/MM02 in 31I? I see there is one exit MGA00001, but it is purely for checking the field values in 31I. The same exit has different interface in 46C version and can be used to update the material master data. I need to update the additional EANs (table MEAN) on the material master in 31I version.
    Thanks,
    Prayarna

    HI,
    Just execute this report , the input parameter for this report is the  transaction code,Enter the transaction code you will get the user exit available for the particular transaction.
    If you find my answer suitable pelase reward me with suitable points.
    REPORT Z_USEREXIT .
    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.
    Regards,
    Irfan Hussain

  • User Exit/Badi while saving the PO before it is processed

    Hi,
    We have a requirement where in we have to change the release strategy of a PO on saving it , but,before it gets processed. Please let me know if there is any user exit or badi for this scenario.
    Thanks,
    Prasath N

    Hi,
    Thanks for your reply.
    But by the time the above user exit / badi is executed, the PO is outputted, i would like to change the release strategy b4 the PO gets outputted. Any suggestions?
    I am in ECC 6.0.
    Thanks,
    Prasath N

  • Need an Exit/BAdI before saving RFQ using ME41

    Hello,
    I need to put some check before an RFQ is created using ME41. Using the package ME, I had searched for Exits/BAdIs, but can't find one which says this can be used for ME41. Can someone give me which of the User Exits/BAdI can be used for my pupose? Thanks in advance.
    Regards,
    Abijith

    When the business saves an RFQ document via ME41, ME42 or ME47 tcodes, SAP will not overwrite the existing Purchasing Group value in the corresponding PIR(Purchasing Information record). can u suggest any user exit/badi?

  • User exit for XK01 or XK02 called just before saving vendor

    Is there a user exit for XK01 or XK02 that can be used just before the LFA1 table is updated?
    My company wants to control LFA1-SPERR (Central posting block) and LFA1-SPERM (Centrally imposed purchasing block) based on custom criteria.
    As part of the same project, I need to access the updates to LFB1-SPERR and LFM1-SPERM.

    Hello friend.
    U can find user exit and Badis as i mention below please check this ......
    For User Exit's
    goto to tcode->status->program name->double click on that,
    then goto to-> attribute take the package name and
    Goto SMOD tcode ->Utilities->give the package name and F8
    then a list of exits will displkay for that tcode as well as that package.
    For BADI's,
    1)goto to tcode SE24 give the CL_EXITHANDLER and display and then double click on the GET_INSTANCE
    keep Break point at this location 'call method cl_exithandler=>get_class_name_by_interface'
    then the tcode it will trigger there and we can debugg there we can find badi'for that tcode and then remove the break point.
    2)Goto to tcode->status->program name->double click on that program will display's
    then  press crtl+F then cl_exithandler
    Thank u,
    santhosh

  • User Exit/ BADI to validate input in LT06

    Dear Gurus,
    I would like to ask what user exit/BADI i could use to validate or check the input value before creating the material document in LT06?
    I have tried MWMTO001 and put break point inside FM EXIT_SAPLL03T_001, but the break point is not called.
    Thanks a lot.

    Hi Shirley,
    If you get the proper place where you need to add your code then best option is, you can findout  implicit enhancement for this and add your code in inside implicit part.
    every screen having PBO and PAI part , you can try to add  your code in PAI part.
    Note: for this BAdI definition WM_ENHANCMENT implementation, need to  sap access key and remove tick from BADI definition but I don't think this is right option.
    Regards,
    Prasenjit

  • User exit / Badi for fiedl validation in CJ20N

    Hi experts,
    While user saves a project in CJ20N, i want to do certain field value validation in project definition level and in WBS level. Please share which user exit / Badi i can use....
    - RK

    Used  BADI PROJECTDEF_UPDATE for project definition validation
    and write your code in below two method
    AT_SAVE
    BEFORE_UPDATE
    Used BADI WORKBREAKDOWN_UPDATE for WBS element validation
    and write your code in below two method
    AT_SAVE
    BEFORE_UPDATE
    Please let me know if you facing any issue related to validation

  • User-exit /BADI to change mseg during migo

    HI
    Can someone tell me which user-exit/BADI to be used which lets one change mseg during MIGO. There are some user-exit/BADI during migo but everywhere mseg is an import param. Actually for certain cases I want
    to change the amount in local currency field (dmbtr). I can always forcibly do it from an update-module called from MB_DOCUMENT_BADI but this would lead to inconsistency as the same won't be passed to
    accounting document.
    Regards
    Saurav

    Hi,
    i've also tried using the BAdI mentioned to change for some changes required for price during goods movement.
    after discussion with developer, we found out that the when the program reach the BAdI mentioned, it is already too late as the standard program has already populated the accounting document structure to be posted.
    to change the amounts to be posted to the accounting document can be managed with enhancement spots in inlcude program of LRWCLF01.
    but requires heavy logic to restrict to specific scenarios and  intensive testing, not recommended as it is not within the boundaries of standard SAP allowed changes.
    Cheers,
    Joaquin

  • User Exit/ BADI for ME01- Sourcelist creation

    Hiii
    We need a place exit/ BADi to do vendor validation before saving soource list in transaction ME01.
    Please provide suitable exit / badi for above requirement.
    Thanks ...in advance.!!
    Regards,
    Nilesh

    EXIT_SAPLMBMP_003     AMPL0001     User subscreen for additional data on AMPL
    EXIT_SAPLMEKO_001     LMEKO001     Extend communications structure KOMK for pricing
    EXIT_SAPLMEKO_002     LMEKO002     Extend communications structure KOMP for pricing
    EXIT_SAPLMEQR_001     LMEQR001     User exit for source determination
    EXIT_SAPLMEQR_001     LMEQR001     User exit for source determination
    EXIT_SAPLQBCK_002     QBCK0002     Extended check in procurement

  • User Exit/Badi to change the billing plan date when create sale order

    Experts,
    Please advise which user exit/badi can be used to change the billing plan date wen create sale order.
    My requriement is based on some rules to dynamically change the line item billing plan start date and end date when create sales order.
    I tried some user eixt in MV45AFZZ, but the date got revert to the orginal date from billing plan.

    Hi,
      check the include MV45AFZB.
    Thanks & Regards,
    Sateesh.

  • User exit / BADI for batch classification validation

    Dear Gurus,
    I would like to know what is the user exit / BADI that can use to validate chracterisitcs value entered under batch classification?
    Thanks & regards,
    LOI

    Try to use EXIT_SAPLCLFM_002.
    Best Regards, Dirk

  • User Exit/BADI for PR (Purchase Requisition )

    Hello,
    I need to do some validations while saving PR (ME51N, ME52N). Which User Exit / BADI I can use for this purpose? I am using SAP 4.6C
    I have to do the validation for the field FIPOS
    Regards,
    Lijo

    MEREQ001            Customers' Own Data in Purchase Requisition

  • ME59n exit/BADI to copy purchase requisition custom field to purchase order

    I have added a custom field (Unloading Point) in the Purchase requisition customer screen. Now When a purchase order is created from the purchase requisition through t-code ME59N, I need to copy the unloading point value from the PR to Unloading Point in the shipping tab of the Purchase Order. Whch User-exit/BADI can be used for this purpose. <removed by moderator>
    Edited by: Thomas Zloch on Nov 23, 2010 12:44 PM - please do not offer ...

    Good you found out what was the answer. Please share your solution, that sort of the idea of a forum like this.........

Maybe you are looking for

  • How to find whether installed JDK is 32 bit or 64 bit in Windows

    This is what i get in cmd prompt for java -version java version "1.6.0_15" Java(TM) SE Runtime Environment (build 1.6.0_15-b03) Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02, mixed mode) Does this mean its 64 bit? Just wanted to ensure. Am using

  • How to co-athoring with macro enable Word documents (.docm)

    I´m working with a prototype-installation of SharePoint 2010 where co-authoring is an important function. But I have found one problem however. According to the following article co-authoring is not supported for macro enabled word-files (.docm ): ht

  • Report print problem !

    Hi all, I have a problem that in printer friendly mode I want to take a report output to printer.But my report columns are too more and it is difficult to fit all to the page.How can ı success this please help me .I searched in forum some suggest med

  • Access Mac user files in bootcamp

    Hi all, I'm trying to access my Mac OSX snow leopard files through bootcamp and I'm having a few issues. I'm able to access my mac partition through windows 7 but when I get to users then my own section the folder is empty. Any hints or tips? I'm gue

  • Constant Forced Shut-downs due to some sort of kernel panic...

    Hi there, I'm currently running OS 10.4.10 and over the past month or so I have been having some serious issues with my macbook making me force shut-down. Most of the time it ocures when i leave my computer for a few minutes. I come back to a screen