BADI on ME22N (Change PO)

Hi Experts,
I was not able change the PO details in transaction ME22N due to the fact that there is a BADI implemented on that transaction.
How to find out which BADI is implemented and How to deactivate that BADI ?
The method I  followed to trace out the BADI is
I put a break point at line 25 of the program "cl_exit_handler ' and executed the transaction ME22N , as a result I found that an instance of the definition  'me_process_po' is acting on that transaction but I could nt go further....
I need your suggestions in tracing and deactivating that BADI ?
Thanks,
B

There are many ways to find the BAPI. One among them is as follows.
1. Open transaction. Go to menubar -> system -> status. Check the program name ( SAPLMEGUI in this case).
2. Open the program in SE38. Go to menu -> goto -> attributes. Find the package name ( ME in this case).
3. Open SE80 and package ME in se80.
4. IN the nevigation tree, you will find the enhancements. There you can find several BADI's that can be used in ME22n. Ex:
ARC_MM_EKKO_CHECK BAdI: Enhancement of Archivability Check (MM_EKKO)

Similar Messages

  • BADI for ME22n - Component Object List

    Hi ,
    I am working with transaction ME22n. When the item category is L. The material data tab shows a button called Components (Object List). On clicking this button i am taken to another screen which has childeren material items and the related data. I need to capture the values on this screen and compare them with the database values to identify any changes.
    I am working with BADI ME_PROCESS_PO_CUST , method CHECK and OPEN. Please tell me in which method parameter those screen values are stored and i can fetch them.
    Also please suggest me any other approach possible which i can use to capture the screen field values in the component screen.
    Any help would be deeply appreciated.
    Thanks in advance.
    Moderator message : Duplicate post locked. Continue with thread [BADI for ME22n - Component Object List|BADI for ME22n - Component Object List]
    Edited by: Vinod Kumar on Aug 9, 2011 12:25 PM

    Hi,
    Please check this thread
    User exit for component data in ME21n/ME22n
    Thanks

  • BADI for ME22N

    I have found the BADI for ME22N . It is ME_PROCESS_PO_CUST. In this BADI, when i double click on the interface PROCESS_ITEM, I go in the method where i can write code. In this code i want to fetch the PO item no. which i get at run time. This method has parameter IM_ITEM as parameter. How do i capture the value which comes at run time for this PO item. I am not able to write the syntax for it.
    When i debug , in IM_ITEM ,i get some class names one of which is CL_PO_ITEM_HANDLE_MM  and some variable name PO_ITEM_NUMBER which contains the value of PO Item. But i dont know how to write syntax .

    Priti,
    code looks like this:
    Sample code for a PO Badi:
    BAdI Name: ZCHECK_PO_LINE_ITEM (Implementation name) PO Account assignment
    Definition Name: ME_PROCESS_PO_CUST
    Interface Name : IF_EX_ME_PROCESS_PO_CUST
    Implementing Class: ZCL_IM_BADIN_ACCOUNT_ASSGN
    Method : PROCESS_HEADER
    METHOD if_ex_me_process_po_cust~process_header .
    DATA : re_data TYPE mepoheader.
    *get the item data
    CALL METHOD im_header->get_data
    RECEIVING
    re_data = re_data.
    re_header = re_data.
    IF ( re_data-bsart NE 'ZOC' AND re_data-bsart NE 'ZPC' ).
    IF ( re_data-bsart 'ZIC' AND re_data-bsart 'UB' ).
    IF re_data-bukrs NE '1001'.
    MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'Use only Sipchem Company'
    'Code for External Procurement'.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDMETHOD.
    Method : PROCESS_ITEM
    METHOD if_ex_me_process_po_cust~process_item .
    DATA: v_menge TYPE bamng, " PR Quantity
    v_statu. " PR Status
    DATA : re_data TYPE mepoitem,
    re_data1 TYPE mepoaccounting,
    re_accountings TYPE purchase_order_accountings ,
    header TYPE purchase_order_accounting.
    *get the item data
    CALL METHOD im_item->get_data
    RECEIVING
    re_data = re_data.
    IF ( re_header-bsart NE 'ZOC' AND re_header-bsart NE 'ZPC' ).
    IF re_header-bsart EQ 'ZRL'.
    IF re_data-konnr EQ space.
    MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You cant create a Release order'
    'without a reference to Outline Agreeement'.
    ENDIF.
    ENDIF.
    u2022     IF ( re_header-bsart NE 'ZOC' AND re_header-bsart NE 'ZPC' ).
    IF ( re_data-banfn EQ space AND re_data-anfnr EQ space ).
    MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You can create a Purchase order'
    'only with reference to a PR or RFQ'.
    ENDIF.
    u2022     ENDIF.
    u2022     
    o     call method IM_ITEM->GET_ACCOUNTINGS
    o     RECEIVING
    o     RE_ACCOUNTINGS = RE_ACCOUNTINGS.
    **get the accounting reference variable,this reference is needed to get
    **the GL account *number and Asset number
    *loop at RE_ACCOUNTINGS into header.
    **get the accounting info.
    u2022     call method header-ACCOUNTING->GET_DATA
    this one i have used for our requirement.
    Amit.

  • User exit/BADI for tracing change of User Status in IW22

    Hello,
    I am looking for a user exit or BADI that triggers whenever ther's a change made to User status field.
    eg. changing user status to APTC(Approved to be executed)
    I then need the exit/badi to trigger my workflow to send mails to list of reviewers. I can handle that but I am not able to find the suitable exit.
    I have seen BADI IQS0_STATUS_MAINTAIN, but no use.
    Can anyone help?

    Hi..
    Transaction Code - IW22                     Change PM Notification
    Enhancement/ Business Add-in            Description
    Enhancement
    IWO10026                                User check on setting status 'Do not perform'
    IWO10027                                User exit: Generate user-defined settlement rule
    IWOC0001                                Create PM/SM notification: Determine reference object
    IWOC0002                                PM/SM notification: Check whether status change is allowed
    IWOC0003                                PM/SM authorization check of ref. object and planner group
    IWOC0004                                Change single-level list editing PM/QM/SM ALV settings
      Business Add-in
    WOC_FL_DETERMINE                        Determine Date for Determining Installation Loc. Equi.
    NOTIF_AUTHORITY_01                      Additional Authorization Checks for the Notification
    IWOC_OBJECTINFO_CHNG                    Changes to Data of Object Info Screen
    IWOC_LIST_TUNING                        Performance Tuning for Lists in PM/CS
    IWO1_SUBSCREEN_0170                     Display Additional Data on Object Screen 0170 PhysicalSample
    IQS_MASS_CHANGE                         BadI for Mass Changes to Notifications
    IQS0_STATUS_MAINTAIN                    Control of Changeability of User Status
    No.of Exits:          6
    No.of BADis:          7
    Arunima

  • User-exit or BADI required for changing Plant-sp.matl status in MM02

    Hi Folks,
    Our user requirement is when standard price is 0, we should assign value 'Z4' to Plant-sp.matl status(in MRP1 and Costing1 tabsin MM02) . Could any one suggest me a user-exit name or a BADI name to change Plant-sp.matl status in MM02. <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Regards,
    Ramineni.
    Edited by: Alvaro Tejada Galindo on Aug 22, 2008 5:59 PM

    hi,
    u can use it.
    u can use this exit also.
    MGA00001
    EXIT_SAPLMGMU_001
    i hav done  this coding in this exit and it is working.
    not same of ur requirement but try somthing like this.
    tables : mara,makt.
    data : it_mara type mara occurs 0 with header line,
           it_makt type makt occurs 0 with header line,
           it_marc type marc occurs 0 with header line,
           it_mbew type mbew occurs 0 with header line.
           select * from mara into table it_mara .
           if it_mara[] is not initial.
           select * from makt into table it_makt for all entries
           in it_mara where matnr = it_mara-matnr.
           endif.
          loop at it_makt.
          if stext-maktx = it_makt-maktx.
           if it_makt[] is not initial.
          select * from marc into table it_marc for all entries
          in it_makt where matnr = it_makt-matnr.
          select * from mbew into table it_mbew for all entries
          in it_makt where matnr = it_makt-matnr.
           endif.
        read table it_marc with key matnr = it_makt-matnr.
          if wmarc-werks = it_marc-werks.
       read table it_mbew with key matnr = it_makt-matnr.
       if wmbew-bwtar = it_mbew-bwtar.  " 'VAL_OPEX' or wmbew-bwtar = 'VAL_CAPEX'.
          message e001(zgm_msg).
            endif.
            endif.
            endif.
            clear it_makt.
            clear it_marc.
            clear it_mbew.
            endloop.

  • What are the bad Effect of changing sap Standard Programs?

    Hi all,
    I want to know what are the Bad effects of changing SAP standard screen and reports.
    I need a bit theoretical Explanation.
    Please suggest me some good and effective matter link.
    Regards

    Hi sonal,
    If I write the theory here ,might be its going to mess up here.mm..try this link.There are good information in changing a standard functionality.
    http://software.feedfury.com/content/28535477-changing_the_sap_standard.html
    2. I can tell one of like ...
    To change a standard program or functionality or standard field in  sap,we have to go for related user,customer scvren exit etc.
    We have to find the right exit to that particular transaction and do our customized coding there.We have to be very careful,since we are going to change the standard exit.this user exit will be used in 'N' number of other screens and transaction.So when you change , that change will /may affect the other transactions also.If you corrupt that particular exit,there are chances for that transaction to go for a toss.I have experianced this personally.when I was working on particular userxit and editing,that particular transaction was not working properly for others,since i was doing from my login,everyone came to my place and started bugging me to stop working on it:)
    Regards,
    SanthoshSivanathan

  • User exit or BADI for standard change Log ?

    Is there user exit or BADI for standard change log update ?
    I want to update a customer fields into standard change log table.
    Could someone tell me about it?

    Could anbody tell me ?

  • Badi/bapi to change contracts

    hi gurus
    could you please provide me some function/badi/bapi to change contracts on ISM?
    In details I need a function to update the status:
    - JHTVKO-XBESTK confirmed
    - JHTVKO-XBEARB postprocess
    thanks in advance
    kind regards
    pesca

    Hi,
    ISM_AM_CONTRACT - IS-M: BAdI for Contract
    ISM_AM_COA_BAPI - IS-M: BAPIs for Contract (BUSISM012 BOR Object) try with this BAPI
    regards
    Saju.S

  • Disable or Hide or INACTIVE the CONDITIONS tab in ME22N(Change Pur.Order)

    Hello,
    We want to hide or Inactivate or greyed out all fields of CONDITIONS tab at 'Item Detail Level'  while editing or changing Purchase Order(ME22N) for particular PO type.
    I am not able to find the particular BADI or Enhancement or SCRREN EXITS, so that I can make greyed out all the fields of CONDITIONS tab at 'Item Detail' level while editing or changing Pur.Order(ME22N)
    Regards,
    Mahesh

    Hi Mahesh,
    [http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]
    [Hide Conditions|Hide conditions in PO;
    Create a transaction variant and try.
    Regards,
    Madhu.
    Edited by: madhurao123 on Aug 9, 2011 9:30 AM
    Edited by: madhurao123 on Aug 9, 2011 9:34 AM

  • User exit or BADI for ME22N transaction  (please read my requirement)

    In me22n transaction when i change a PO Delivery date for any line item and click on save The field latest GR date MEPO1313-LEWED in DELIVERY tab below should display date as per my requirement i.e (delivery date + 90 days)
    What uerexit is to be used else if BADI is used pleasee provide me step by step guide as i have never used vadi
    IT is urgent. plz helopp.

    Hi
    Find the available exits with the following program:::
    *& Report  ZFINDUSEREXIT
    report  zfinduserexit.
    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).
    Execute the report, give the transaction you want to find user exit, and query.
    <b>BADI</b>
    To search for a badi, go to se 24 display <b>class cl_exithandler.</b>
    double click on method get_instance, get a break point on case statement.
    execute and start the required transaction in new session.
    look for variable <b>exit_name.</b> It would show the available badi's.
    Please do reward if useful
    Regards
    Dinesh

  • ME22N: change of PO details in backend not getting replicated with SRM 7.0

    Hi All,
    We have created Purchase order using shopping cart in SRM 7.0 extended classic scenario. The PO created in SRM 7.0 is replicated into backend in ME21N using a Custom BDC program.
    But when the Purchase order is changed in SRM 7.0 the data is not getting replicated. We are not allowed to change the PO details in backend using ME22N (No change in SRM Backend is allowed ), So we are not able to write a Custom BDC program for that. Hence the PO is not getting closed and throwing error.
    Please suggest me an alternative.
    Regards,
    Lakshmi Narayana

    Hi,
    Being in Extended Classic Scenario, PO cannot be in change mode in R/3.
    This is due to check done on PO status (fied STATUS from EKKO table).
    When PO is created by SRM replication, its status is 'K' (Purchase Order from BBP). What you could do is to substitute this status with value 'I' (Purchase Order from BAPI) using BAdI BBP_ECS_PO_OUT_BADI.
    In this way, R/3 PO can be modified in R/3.
    Nevertheless, by doing this, you won't have your SRM PO output after modification(s) (as it is done in standard) because  changes are in R/3.
    To be able to get an R/3 PO output with ECS, see following note:
    883693 - ECS: PO output determination in R/3.
    Regards.
    Laurent.

  • UserExit/BADI for ME22N services tab

    Hi all,
         My requirement is that, I need to do validation of the Service Quantity of Purchase Items in ME22N transaction (ie. Change PO).
    I have tried a BADI  "ME_PROCESS_PO_CUST", but I am getting only the PO item quantity in this BADI, not the service quantity.
    Can any body suggest me a correct  UserExit/BADI  to to the validation of Service Quantity.
    Regards,
    Anbarasan K

    Thanks Charlie.
    The user exit SRVESLL worked.

  • BADI for PIQST00 - Change in classification

    Hi,
    We want to trigger an update to CRM whenever there is change in classification of student from PIQST00 --> Registration --> Change in Registration --> Updating classification.
    We have tried with following BADI , but it was not successful :
    1) HRPIQ00REG0010
    2) HRPIQ00REG0160
    3) HRPIQ00REG0090
    Could some one provide wih input for enhancing PIQST00 when change in classification
    Regards,
    Jigar Oza.

    Hi Prabhat,
    the reason for update is :
    In CRM z-tables we are maintaining the total number of seats available with regards to program & classification. When student is admitted first time he register for certain program and classification , once student admission is confirmed the total number of available seat in CRM z-tables is reduced by 1.
    Now student has option to request for change of classification, if seats are available. Thus if requested is accpeted for classification change the seats have to be increased by 1 in CRM.
    For better understanding I can explain with example. Suppose student takes an admission for BSc IT course. In Ztables of CRM once student admission is confirmed total number of seats available is reduced by 1. Now student want to change from BSc IT to BSc Electronic. College will transfer to new in SLcM now this should increase total seats available in CRM for BSc IT and reduce 1 seat for BSc Electronic. In SLcM BSc Electronic / IT are configured as classification
    Regards,
    Jigar Oza

  • User exit or BADI for ME22N

    Hi,
    I need a user exit or Badi for defaulting Plant at line item level.
    The scenario goes like this: when ever user tries to change an existing Purchase order and tries to add a new line item in it, I need to trigger USEREXIT or BADI , so that it reads the previous line Plant and updates the current line with the same plant.
    I tried with user exit MM06E005 but it didnt seem to work.
    Can any one please help me?
    I am new to BADI, so I am not sure how to find the BADI and use it. It would be great if anyone can help me i this.
    Thanks
    Ramya

    Hello
    The BAdI ME_PROCESS_PO_CUST is the right one. The method PROCESS_ITEM should be triggered whenever the user changes something in the purchase order at item level and executes any kind of function (e.g. ENTER, CHECK or SAVE).
    However, instead of overwriting the user input via the BAdI you should implement method CHECK ( Closing Check ) where you can validate the user input. If any of your validation fails you can send an error message and set CHANGING parameter CH_FAILED = 'X'. This approach is much more transparent for the user.
    NOTE: In order to "send" an error message you need to add the include mm_messages_mac to your implementing class. For an example see class CL_EXM_IM_ME_PROCESS_PO_CUST (should be available on ERP 6.0):
    METHOD if_ex_me_process_po_cust~process_item .
      DATA: ls_mepoitem TYPE mepoitem,
            ls_customer TYPE mepo_badi_exampl,
            ls_tbsg     TYPE tbsg.
      INCLUDE mm_messages_mac. "useful macros for message handling
    * here we check customers data
      ls_mepoitem = im_item->get_data( ).
      IF ls_mepoitem-loekz EQ 'D'.
    * check field badi_afnam
        IF ls_customer-badi_afnam IS INITIAL.
          mmpur_metafield mmmfd_cust_02.
          mmpur_message_forced 'W' 'ME' '083' text-003 '' '' ''.
        ENDIF.
      ENDIF.
    ENDMETHOD.                    "IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM
    Regards
      Uwe

  • BAdI for BP Change in ISA

    Hi Gurus,
    We are on CRM 4.0.
    We have a requirement where whenever a customer changes his personal details in ISA (B2C scenario), an activity should be generated.
    Can anyone help me with some workaround/ BAdI, to achieve this scenario?
    Reward is gauranteed.
    regards,
    -Yash

    Hi Prabhat,
    the reason for update is :
    In CRM z-tables we are maintaining the total number of seats available with regards to program & classification. When student is admitted first time he register for certain program and classification , once student admission is confirmed the total number of available seat in CRM z-tables is reduced by 1.
    Now student has option to request for change of classification, if seats are available. Thus if requested is accpeted for classification change the seats have to be increased by 1 in CRM.
    For better understanding I can explain with example. Suppose student takes an admission for BSc IT course. In Ztables of CRM once student admission is confirmed total number of seats available is reduced by 1. Now student want to change from BSc IT to BSc Electronic. College will transfer to new in SLcM now this should increase total seats available in CRM for BSc IT and reduce 1 seat for BSc Electronic. In SLcM BSc Electronic / IT are configured as classification
    Regards,
    Jigar Oza

Maybe you are looking for

  • AttributeValuePair settings for Subject of Policy Creation

    Hi, I am trying to create policies using the command line tool amadmin. At this point I can create the policy with the desired rule but the subject isn't created properly. I am using Identity Server 6.1 on Solaris 9 and Directory Server 5.2 on a diff

  • N96 won't detect my captured pictures

    hi i have nokia n96 and 2-days ago i got corrupted (mass) memory error so i restarted the phone and it was ok. But now Photos application won't detect my Captured pictures. The directory tree of Images was intact after corruption (probably) so nothin

  • Never ending "pseudo-device: devinfo0" messages in /var/adm/messages

    Hi, we are running a machine that generates the following two messages continously (with a time space of 5sec.). [...] genunix: [ID 936769 kern.info] devinfo0 is /pseudo/devinfo@0 [...] [ID 129642 kern.info] pseudo-device: devinfo0 During the machine

  • How to call linux command ?

    hi all, I wanna make java application which display the ouput of linux command (eg. ps -ax output in JTextArea). The problem is how to call "ps,kill,etc" ?

  • Standard SWCV not in SPROXY

    Hi Gurus, i am trying to get the SWCV ESA-ECC SE 604 into my ECC System. I already see a lot of other SWCV, Namespaces, Services, etc. in Sproxy e.g. IS-UT 604 with sap.com namespace and also other customer SWCV . I added SWCV ESA-ECC to Technical an