MB1B User exit or Badi before saving transaction

Dear friends ,
I need to identify a user exit or badi that I can use to populate one field in tcode MB1B before saving.
How could I find it ?!
best regards,
Ale

Hi Alessandro,
  Hope you find this useful..
For Finding user exits
[http://www.erpgenie.com/sap/abap/code/abap26.htm]
Find a BADI called from within an SAP transaction
The following steps will allow you to simply find a BAPI that is linked to an SAP transaction code.
1. Execute transaction SE37 or SE80 and find function module 'SXV_GET_CLIF_BY_NAME'.
2. Insert a breakpoint in it.
3. Now go to the SAP transaction you want to find a BADI in.
4. When you execute it, it will stop at the above function module.
5. Look at the value of field EXIT_NAME.
6. This will provide you with the name of the BADI that is available in your SAP transaction code.
This technique can be used to find out the BADI for given transaction.
Follow below steps.
Go to transaction ST05, select buffer trace and click on activate trace button.
Now run your transaction code for which you want to find out the customer exits.
Go back to ST05, click on deactivate trace and display trace.
A popup screen "Set Restrictions for Displaying Trace" appears. Now, filter the trace on Objects V_EXT_IMP and V_EXT_ACT
All the interface class names of view V_EXT_IMP start with IF_EX_. The BADI name is the name after the IF_EX_.
E.G: in the name IF_EX_ME_PROCESS_PO_CUST BADI name is ME_PROCESS_PO_CUST.
How to find BADI
1. Go to the TCode SE24 and enter CL_EXITHANDLER as object type.
2. In 'Display' mode, go to 'Methods' tab.
3. Double click the method 'Get Instance' to display it source code.
4. Set a breakpoint on 'CALL METHOD cl_exithandler=>get_class_name_by_interface'.
5. Then run your transaction.
6. The screen will stop at this method.
7. Check the value of parameter 'EXIT_NAME'. It will show you the BADI for that transaction.
Regards

Similar Messages

  • User exit or BADI while saving purchase order

    Hello,
    I want to use an user exit or BADI while saving of purchase order. The objective is to check the material group of the line item while saving. We don´t want to allow to save purchase orders for one material group.
    Can you please guide me.
    Thanks
    Srinivasan

    Hi
    The Business Add-In (BAdI) ME_PROCESS_PO_CUST enables you to extend the business logic of the Enjoy purchase order on an individual basis.
    You can thus influence the dialog transactions ME21N, ME22N, ME23N, and ME29N, and the BAPIs BAPI_PO_CREATE1 and BAPI_PO_CHANGE.
    Typical applications for this BAdI include:
    Processing of own objects
    Processing of additional data on standard objects
    Implementation of additional checks and derivationsChange of data in standard fields
    Change in field selection
    you can use this BADI for checking the material group
    Thanks & Regards
    Kishore

  • User exit or badi for me52n transaction.

    Hi all,
           i have a requirement to write a user exit or badi for me52n transaction. the requirement is in header section, only one plant should be accepted. that is in the first row one plant will be inserted. in the second row if we are inserting another plant other the first row plant, it should not accept it and it should raise an error.
    that is from the second row onwards, every plant should match with the first row plant.
    if any part of this issue is unclear, plz let me know so that i can explain it clearly
    this is urgent requirement.
    please let me know the solution as soon as possible.
    points will be awarded.
    thanking u in advance.
    A.srinivas.

    In this version exit EXIT_SAPLMEREQ_005 should exists (look at OSS <a href="https://service.sap.com/sap/support/notes/843446">Note 843446 - MEREQ001: Cannot call up external service data in user exit</a> this note refers to the exit and is applicable in  4.70. Look also at OSS <a href="https://service.sap.com/sap/support/notes/310154">Note 310154 - ME21N/ME51N: Customer-specific check, generating error log</a>
    Regards

  • User Exit or BADI  when saving Internal Orders

    Hello, I need a user exit or BADI when saving a Internal Orders to shoot a workflow
    REGARDS
    Dayana

    Hi
    Why do you need a user exit or BADI.
    Create a Custom Business Object(SWO1) and Create a New Event(SW01) and link it to the B.O. Or you could also create a CO Validation and use it for triggering a Validation and as a last resort you go for User Exit or Abap code.
    Check if you have some workflow expertise in your tech team and you should be fine.
    Thanks,
    Praveen

  • How to find the list of USER-EXITS or BADI for the transaction ABSO

    Hi all,
    Please help me to find the list of USER-EXITS or BADI for the transaction ABSO & find the exact user-exit which meets the requirement.
    Thanks & Regards,
    gyanaraj

    Hi,
    Copy the problem  in SE38 and  Execute it
    Enter the Tcode  u want
    this  will the  list of Userexits and badis
    TABLES: TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    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,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA: WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    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 in ('SMOD', 'SXSD')
    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:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.

  • User Exit OR Badi for MK01 transaction (used for saving vendor amster data)

    Hi All,
    I have a requirement where I have to call my workflow, when we create the Vendor using my custom transaction (ZMK01, which is a copy of standard transaction MK01).
    For Workflow triggering I am using FM 'SAP_WAPI_CREATE_EVENT' in the user exit  'EXIT_SAPMF02K_001' but this is only for checking the data on saving Vendor Master.
    So I want to use FM 'SAP_WAPI_CREATE_EVENT' at right place. For that , I need User-Exit or BADI which is used for saving vendor master data.
    Could anyone please help me to find out the user exit or BADI for save event of vendor master data using transaction MK01.
    Looking forward to your advise and thanks in advance.
    Best Regards,
    Mamta

    Hi ,
    I forgot to activiate the project linked with User exit 'EXIT_SAPMF02K_001' .
    so problem is solved now
    Thanks,
    Mamta

  • User Exit or BADI on saving of Sales order cost estimate (CK51N)

    Hi,
    Can any one share with me what are the User Exit or BADI that gets triggered on saving of Sales order cost estimate (CK51N).
    Regards,
    Bijay

    Hi
    Check the link
    Need Enhancement Spot or BADI for transaction ck51n
    Regards
    Sanil

  • User exit or BADI for PPOME transaction

    Hi all,
    I need to know is there any User exit or Badi or Enhancement spot is available while saving the PPOME transaction in HR.

    Hi,
    This is the BADI HROM_EXP_PATH
    Thanks,
    Shailaja Ainala.

  • User exit or BADI in XD01 transaction

    Hi friends,
    I Have a requiremnt.
    when ever my Xd01 or vd01 transaction is executed. i need a user exit where i can check for a particular account group ABC if the account group is ABC then i need to add that particular customer number to ztable.
    can any one tell the badi or user exit name
    similar to user_exit_save_document in va01 transaction , in the same way i need a user exit or badi in xd01.
    Regards
    Priyanka

    Hi,
    user exit for XD01 transaction code is
    SAPMF02D   -
    >    User exits: Customer master data
    and the function module is
    EXIT_SAPMF02D_001  --->  Customers: User Exit for Checks prior to Saving
    Badis for XD01
    CUSTOMER_ADDRSCR_CHG Implementation of CUSTOMER_ADDRSCR_CHG by Public Sector
    CUSTOMER_ADD_DATA    Implementation of CUSTOMER_ADD_DATA by Empty
    CUSTOMER_ADD_DATA    DSD Implementation of CUSTOMER_ADD_DATA
    CUSTOMER_ADD_DATA    /NFM/ Screen in Customer Master
    CUSTOMER_ADD_DATA    ETM implementation
    CUSTOMER_ADD_DATA    US Federal Government Customer Master Extension
    CUSTOMER_ADD_DATA    Implementation of CUSTOMER_ADD_DATA by Public Sector
    CUSTOMER_ADD_DATA    IS-Oil-Erweiterungen von Kundenstammdaten
    CUSTOMER_ADD_DATA    IS-Oil Downstream Customer
    CUSTOMER_ADD_DATA    sfsdfsd
    CUSTOMER_ADD_DATA    test implementation for field
    CUSTOMER_ADD_DATA    zCUSTOMER_ADD_DATA
    CUSTOMER_ADD_DATA    g
    CUSTOMER_ADD_DATA    customer_test
    CUSTOMER_ADD_DATA    test custom
    CUSTOMER_ADD_DATA    testing for custom screen
    CUSTOMER_ADD_DATA    testing
    CUSTOMER_ADD_DATA    Customer enhancement
    CUSTOMER_ADD_DATA    testing
    CUSTOMER_ADD_DATA    testing
    CUSTOMER_ADD_DATA    testing
    CUSTOMER_ADD_DATA_BI ETM Implementation
    CUSTOMER_ADD_DATA_BI IS-PS: Additional Data for Customers (Batch-Input and ALE
    CUSTOMER_ADD_DATA_BI IS-OIl customer master fields Batch Input/ALE
    CUSTOMER_ADD_DATA_CS Implementation of CUSTOMER_ADD_DATA_CS by Empty
    CUSTOMER_ADD_DATA_CS DSD Implementation of CUSTOMER_ADD_DATA_CS
    CUSTOMER_ADD_DATA_CS Impl. of CUSTOMER_ADD_DATA_CS by DSD, Sales Area Data
    CUSTOMER_ADD_DATA_CS /NFM/CUSTOMER_DATA
    CUSTOMER_ADD_DATA_CS ETM Implementation
    CUSTOMER_ADD_DATA_CS US Fed Gov't Customer Master Data Extensions
    CUSTOMER_ADD_DATA_CS Implementation of CUSTOMER_ADD_DATA_CS by Public Sector
    CUSTOMER_ADD_DATA_CS IS-Oil Downstream Screens
    Regards,
    Madhu

  • User exit or BADI after saving in ML81N

    Hi,
    I have created a Custom tab at header level in ML81N. In this tab the user enters the data which is to be stored in Ztables once the entry sheet is successfully saved. I am searching for BADI or user exits for saving the data. Can anyone tell me user exit or BADI which is triggered after saving the data?
    Thanks in advance.

    Hi Poorvi,
    Please get your results from the search.
    http://www.sdn.sap.com/irj/scn/advancedsearch?query=userExitBadiML81N

  • User exit or BADI for F110 transaction

    Hello, i need a user exit or badi for the F110 transaction with the objective to shoot workflow of approval of payment proposal.

    Hi Mathias,
    Welcome to SDN.
    Please check this link for sample code to find user exits and BADIs for a given transaction code.
    User Exit
    Hope this will help.
    Regards,
    Ferry Lianto

  • User Exit or Badi for CN60 transaction

    Hi
    Can anyone tell me the user exits or Badis for Tcode CN60.
    i need to Include the Comments field for the activities from CN22.soi would like to know  is there any userexit for CN60.
    Thanks
    Sowjanya

    Hi Sowjanya
    u can find BADI's in different ways...
    1>First go to any transaction->iN THE menu bar SYSTEM->STATUS->Get the program name ->double click->u will go to the program attached to the tcode.Now search term will be CALL CL_EXITHANDLER.Now u will get list of BADI'S available..
    2>Goto SE24->Give class name as CL_EXITHANDLER->Display->double click on get_instance mathod->Now u will go inside the method->Now put break point on the cl_exithandler.Now go to any transaction code and pass dat..U will see that it will be stopped on the break point which u set on the cl_exithandler...In the exit name u can find list of badi's attached to the tcode..
    There are multiple ways of searching for BADI.
    • Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
    • Finding BADI Using SQL Trace (TCODE-ST05).
    • Finding BADI Using Repository Information System (TCODE- SE84).
    1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for ‘CL_EXITHANDLER=>GET_INSTANCE’.
    Make sure the radio button “In main program” is checked. A list of all the programs with call to the BADI’s will be listed.
    The export parameter ‘EXIT_NAME’ for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter ‘INSTANCE’ will have the interface assigned to it. Double click on the method to enter the source code.Definition of Instance would give you the Interface name.
    2. Start transaction ST05 (Performance Analysis).
    Set flag field "Buffer trace"
    Remark: We need to trace also the buffer calls, because BADI database tables are buffered. (Especially view V_EXT_IMP and V_EXT_ACT)
    Push the button "Activate Trace". Start transaction VA02 in a new GUI session. Go back to the Performance trace session.
    Push the button "Deactivate Trace".
    Push the button "Display Trace".
    The popup screen "Set Restrictions for Displaying Trace" appears.
    Now, filter the trace on Objects:
    • V_EXT_IMP
    • V_EXT_ACT
    Push button "Multiple selections" button behind field Objects
    Fill: V_EXT_IMP and V_EXT_ACT
    All the interface class names of view V_EXT_IMP start with IF_EX_. This is the standard SAP prefix for BADI class interfaces. The BADI name is after the IF_EX_.
    So the BADI name of IF_EX_CUSTOMER_ADD_DATA is CUSTOMER_ADD_DATA
    3. Go to “Maintain Transaction” (TCODE- SE93).
    Enter the Transaction VD02 for which you want to find BADI.
    Click on the Display push buttons.
    Get the Package Name. (Package VS in this case)
    Go to TCode: SE84->Enhancements->Business Add-inns->Definition
    Enter the Package Name and Execute.
    Here you get a list of all the Enhancement BADI’s for the given package MB.
    The simplese way for finding BADI is
    1. chooes Tcode Program & package for that Tcode.
    2. Go to Tcode se18
    3. Press F4
    4. search by package or by program.
    reward points to all helpful answers
    kiran.M

  • User-Exit or BADI for CS02 transaction

    Dear Sir,
    In Tcode CS02 , we want to restrict the users so that "VALID FROM DATE" is  not in the past . I can not use Transaction Variant and need to  validate the date either thru User-Exit or BADI .
    I tried to use User-Exit PCSD0005 / PCSD0007 , but  none of them is able to resolve the problem .
    I request SAP Gurus to kindly help me on this problem pl .
    Rgds
    Sonia Agarwal

    hI,
    Use  BOM_EXIT badi ....method START_SCREEN_CHECK in which ....under importing parameters you will see the valid-from date which you can validate...
    Thanks,
    Shailaja Ainala.

  • User-Exit or BAdI when saving an asset?

    Hi experts,
    I would describe our problem and I wish you could guide us to the best solution.
    We have create a Workflow that synchronises the creation of a functional location with the asset (because we don't find any user-exit that allowed this requirement). The process is the following:
    1.- First of all, Workflow validates that WBS Element of the functional location exists. In afirmative case, it continues to step nº 2. Otherwise, WorkItem is cancelled.
    2.- We create a functional location with tx. IL01 and as a result of that, a WorkItem is created related to some specific user. He opens the SAP Business Workplace and approve it.
    3.- Then, when he approves that WorkItem we call to the method BAPI_FIXEDASSET_CREATE1 that creates the asset.
    Now we would like to get some User-Exit or BAdI that makes our data persisted before the user press SAVE button, because i have to inform the asset and subnumer to the functional location with the number of the asset we have just created.
    Could that be possible?
    Lots of thanks.
    Javi

    Hi,
    I am still having trouble with this topic...
    No enhancements posted at the message before solved the described problem. So I started to think in another way...
    At the Workflow circuit defined to synchronise functional locations with asset master, we would like some function like "CreateBright" in Object "EQUI_EXT" (tx. SWO1). Inside the code, there is a call function to "AAPM_AA_SYNC_BY_WORKFLOW" that automatically creates the equipment and join the asset master.
    In functional locations, we don't have this function so what can I do to have the same concept in functional creations and not equipments? Any idea?
    Lots of thanks for the answers.
    Javi

  • User Exit/Enhancement/BADI for IQ04 transaction

    Hi Experts,
             As IQ04 is a bulk upload transaction for creation of serial numbers for given material, I need to put certain validations before creation of Sr.no. , please tell me the enhancemnet where I can put it's needed before saving .
    Thanks .

    Hi,
    Use Function Module Exit: EXIT_SAPMIEQ0_001 Check of Customer-Defined Rules Before Equipment Update
    Exit names for IQ04
    IEQM0001            Add. checks for equip. installation at functional locations
    IEQM0002            Additional checks for definition of equipment hierarchies
    IEQM0003            Additional checks before equipment update
    IEQM0004            Object is allowed for contract partner (Order->MaintCont.)
    IEQM0005            Object allowed for SD contract (MaintContract->MaintCont.)
    IEQM0006            Object allowed for SD contract (Maintain maintenance cont.)
    IEQM0007            Check/change manufacturer field in equipment master

Maybe you are looking for

  • Reports 10g - Dynamic Alignment?

    Hi, On my report let say I am displaying 3 sets of data (Ex: Employees data, Dept data & HR data). I want my report to be aligned in the Center. For any reason if I dont get back any data for Depts, does the report dynamically align itself or does it

  • Deleting records in millions - any ways to speed

    Hello Friends, I have a table with millions of records . As I am doing testing , I got to delete millioins of records and load then load using ETL tools. Using simple delete is taking hours together - any ways to increase the speed of deletion. I can

  • Read line + field symbol

    Hi expets. I have some doubt related to Read Line, iknow it's use but it fails when i m using field symbol. 1-> Do w_lines times. Read line sy-index field value <fs_customer>-name1. enddo Here it makes dump because i m using fied symbol. Its type is

  • HT5022 Airport Utility 5.6 will not install under Mountain Lion

    I have older Base Station Extreme and Airport Express models that need to be looked after; however, the fix to install Airport Utility 5.6 under Lion will not work under Mountain Lion. The installer complains that "the version of Mac OS X on this vol

  • User not able to login to Bex Analyzer

    Dear Experts, The user was facing the problem where he was not able to login to Bex Analyzer in only Quality system. He was able to login in Dev and Prod systems.can i please have the reason for the same. Regards, Sunil Kumar.B