Want a UserExit or a BAdi that gets triggered while saving a PO

Hi Gurus,
  Can anybody help me by telling which UserExit or BAdi gets  triggered while saving a Purchase Order.
My requirement is:
  While I create a PO using a Purchase Requisition that was created for a Process Order and save it, I want to update the Vendor Batch Number of the PO  to the  Vendor Batch Number that I created in the Customer screen of the Process Order.
Hence for this I want a UserExit or a BAdi that gets triggered while saving the PO....

Hi
Use the BADI
ME_PROCESS_PO_CUST and the method
PROCESS_HEADER
for your requirement
Reward points if useful
Regards
Anji

Similar Messages

  • I need a Badi that is triggered when saving Sales order in both Va01 and Va

    Hi
    I need a Badi that is triggered when saving Sales order in both Va01 and Va02
    I tried with the following BADI's
    BADI : BADI_SD_SALES
    Implementation : /BEV1/SR_SALES_ORD_1
    Method SAVE_DOCUMENT
    Now when i want to put my peice of code in this (SAVE_DOCUMENT) method.
    It is asking for Access key. Which i do not have.
    Should i create a implementation and then create a method and then put my code there?
    Anybody plz help.

    You will probably not find a BADI to suit your needs.  However if you look at include program MV45AFZZ you should find two subroutines:  USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_SAVE_DOCUMENT.  You can put the code you need directly into these subroutines.  If these have not been changed yet on your system, you will need an access key to make these changes.
    Please read the documentation in the header of the subroutines for furtner information on when they are called.
    Best Regards,
    Chris H.

  • BADIs which get triggered in ME25 transaction

    Hi ,
    I want to know the list of BADIs which get triggered in ME25 transaction ONLY.
    Please provide me the list.
    Thanks,
    Shivaa......

    List of BADI's for ME25
    EXTENSION_US_TAXES   Extended Tax Calculation with Additional Data
    ME_ACTV_CANCEL_PO    BAdI for Activating the Cancel Function at Header Level
    ME_BAPI_PO_CUST      Customer BAdI for BAPI_PO_CREATE1 and BAPI_PO_CHANGE
    ME_BAPI_PR_CUST      Customer BAdI for Enjoy Purchase Requisition BAPIs
    ME_BAPI_PR_IBS       BAdI: Enjoy BAPIs for Purchase Requisitions
    ME_BSART_DET         Change document type for automatically generated POs
    ME_CCP_BESWK_AUTH_CH BAdI for authorization checks for procuring plant
    ME_CCP_DEL_DURATION  Calc. of Delivery Duration in CCP Process (Not in Standard)
    ME_CHANGE_CHARACTER  Customer-Specific Characteristics for Product Allocation
    ME_CHECK_ALL_ITEMS   Run Through Items Again in the Event of Changes in EKKO
    ME_CHECK_SOURCES     Additional Checks in Source Determination/Checking
    ME_CIN_LEINRF2R      BADI for CIN India - Delivery charges
    ME_CIN_LEINRF2V      BADI for LEINRF03 excise_invoice_details
    ME_CIN_MM06EFKO      Copy PO data for use by Country version India
    ME_CIP_ALLOW_CHANGE  Configuration in Purchasing: Changeability Control
    ME_COMMITMENT_STO_CH BadI for checking if commitments for STOs are active
    ME_COMMTMNT_PO_REL_C Check for Commitment-Relevance of Purchase Orders
    ME_COMMTMNT_REQ_RE_C Check of Commitment Relevance of Purchase Requisitions
    ME_DEFINE_CALCTYPE   Control of Pricing Type: Additional Fields
    ME_GUI_PO_CUST       Customer's Own Screens in Enjoy Purchase Order
    ME_HOLD_PO           Hold Enjoy Purchase Orders: Activation/Deactivation
    ME_MMPUR_EINM_CUST   BAdI Methods for Processing IDoc Data in the SUS Scenario
    ME_PO_SC_SRV         BAdI: Service Tab Page for Subcontracting
    ME_PROCESS_COMP      Processing of Component Default Data at Time of GR: Customer
    ME_PROCESS_PO_CUST   Enhancements for Processing Enjoy Purchase Order: Customer
    ME_PROCESS_REQ_CUST  Enhancements for Processing Enjoy PReqs: Customer
    ME_PURCHDOC_POSTED   Purchasing Document Posted
    ME_RELEASE_CREATE    BAdI: Release Creation for Sched.Agrmts with Release Docu.
    ME_REQ_OI_EXT        Commitment Update in the Case of External Requisitions
    ME_REQ_POSTED        Purchase Requisition Posted
    ME_TAX_FROM_ADDRESS  Tax jurisdiction code taken from address
    ME_TRIGGER_ATP       Triggers New ATP for Changes in EKKO, EKPO, EKPV
    MM_EDI_DESADV_IN     Supplementation of Delivery Interface from Purchase Order
    SMOD_MRFLB001        Control Items for Contract Release Order

  • User exit that gets triggered at the press of 'Enter' in IW42

    Hi,
    Is there any user exits that gets triggered at the press of Enter key in PM order confirmation IW42 transaction. Basically the requirement is to give a customized message at the order confirmation screen when the enter key is pressed.
    Regards,
    Prabaharan.G

    Hi,
    You may try the following enhancement points and exit respectively.
    CMFU0001        E            EXIT_SAPLCMFU_001
    CMFU0002        E            EXIT_SAPLCMFU_002
    Pls reward points if useful.
    Regards,
    Renjith Michael.
    Edited by: Renjith Michael on Jan 12, 2008 12:57 PM

  • Does apple replace devices that get bent while in your pocket?

    Does apple replace devices that get bent while in your pocket?

    As long as you pay for the exchange:
    If your iPod Touch, iPhone, or iPad is Broken
    Apple does not fix iDevices. Instead, they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
    ATTN: Beginning July 2013 Apple Stores are now equipped to do screen repairs/replacements in-house on iPhone 5s. In some cases while you wait. According to Apple this is the beginning of equipping Apple Stores with the resources needed to do most repairs for iPhones, iPads, and iPod Touches that would not require major replacements. Later in the year the services may be extended as Apple Stores become equipped and staffed with the proper repair expertise. So, if you need a screen repaired or a broken screen replaced or have your stuck Home button fixed, call your local Apple Store to see if they are now doing these in-house.
    You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
    iPod Service Support and Costs
    iPhone Service Support and Costs
    iPad Service Support and Costs
    There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task. Start with Google to search for these.

  • BADI/Exit which triggers while PR check : ME51n

    Hi Experts,
    I am stuck up with an critical issue which is like an show stopper.
    Is there any BADI/Exit which triggers while Purchase Requistion check i.e. ME51N?
    Cheers
    VJ
    Edited by: Vishal Jindal on Apr 7, 2011 12:33 PM
    Moderator message: moved back to ABAP forums.
    Edited by: Thomas Zloch on Apr 7, 2011 1:58 PM

    Thanks a lot Vinod!! It's was helpful.
    I have coded to retrieve the item data as well. Please see the below code .
    METHOD IF_EX_ME_PROCESS_REQ_CUST~PROCESS_ITEM.
    TYPES : BEGIN OF TY_EBAN_EBKN,
               BANFN          TYPE EBKN-BANFN,
               BNFPO          TYPE EBKN-BNFPO,
               WBS_ELMNT      TYPE ZPS_BOQ-WBS_ELMNT,
               MAT_CODE       TYPE EBAN-MATNR,
               MENGE          TYPE EBAN-MENGE,
             END OF TY_EBAN_EBKN.
      DATA:LT_ITEMS TYPE MMPUR_ACCOUNTING_LIST,
            LS_ITEM TYPE MMPUR_ACCOUNTING_TYPE,
            LS_ITEM_DATA_WBS TYPE EXKN,
            LS_ITEM_DATA_WBS1 TYPE EXKN,
            LT_ITEM_DATA_MAT TYPE TABLE OF MEREQ_ITEM,
            LT_ITEM_DATA_WBS TYPE TABLE OF EXKN,
            LT_ITEM_DATA_WBS1 TYPE TABLE OF EXKN.
    LT_ITEMS =  IM_ITEM->IF_ACCT_CONTAINER_MM~GET_ITEMS( ).
    LOOP AT LT_ITEMS INTO LS_ITEM.
        CLEAR LS_ITEM_DATA_WBS.
        LS_ITEM_DATA_WBS = LS_ITEM-MODEL->GET_EXKN( ).
        APPEND LS_ITEM_DATA_WBS TO LT_ITEM_DATA_WBS.
        CLEAR LS_ITEM_DATA_WBS.
      ENDLOOP.
    ENDMETHOD.
    I am facing one problem here. I am getting only one record in LT_ITEM_DATA_WBS internal table although there are 2 line items at item level.  Actually what I want to exactly is, I want to combine the Material and WBS element in one internal table.
    Can you please help me out how can i proceed with that and let me know if you need any further relevant info.
    Cheers
    VJ

  • Outbound IDOC not getting triggered while new master data is created

    Hi Experts,
    I am trying to trigger an outbound idoc for Cost Center master data when ever cost center is being created or cost center is being changed. (Usinf COSMAS)
    I have successfully made use of change pointers and now able to trigger the idoc when ever Cost Center is getting changed. But while creating new Cost center, IDOC is not getting triggered.
    I used the function module MASTERIDOC_CREATE_SMD_COSMAS for triggering the idoc.
    Could one of you please let me what would have gone wrong? Since IDOC is getting triggered while changing the master data but not getting triggered while creating new master data.
    Thanks in Advance,
    Vinoth

    Hello,
    when you activate BD21 for a message type, it creates a entry in the SAP tables. that these Cost Centers have been sent already and any susequent changes to this will trigger a IDoc.
    As for BD16, scheduling it wont help as, you need to specify the selection criteria, and i do not see how you will be able to dynamically get the selection criteria.
    Try BD95, and BD59 to create a change pointer for a field, so when ever this fields is modified (new/updated) an idoc will be triggered.
    regards,
    Abhishek

  • User exit that triggers while saving in transaction F-02

    Can any one please tell which userexit trigers while saving The document in transaction F-02.
    I have tried some exits but they are not triggered while saving.

    Hi Satya,
                   These are the User Exits for that T-Code.
    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
    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).
    Out of these, i am expecting one of the below is triggered while saving.
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    Regards,

  • Print program is not getting triggered when saving the application

    Hi all,
    My requirement is when i save the invoice using VF01 the print program should get triggered.
    The print program is not getting triggered when saving the application even when i have configured the outtype and have attached the print program.
    The setting "send immediately (when saving application)" is also checked.
    I need to configure it for VF01 transaction.
    The error message displayed was " please maintain output device in master data".
    Regards,
    Umesh

    Hi Umesh
    Please check if you have missed any of the following:
    1. Defining Access Sequence(can use existing).
    2. Defining Output Condition Type(can use existing). - Assigning the Driver Program and Form in processing routine.
    3. Output Determination Procedure
    4. Assign Output Procedure to Billing Types
    Kind Regards
    Eswar

  • BADI which triggers while saving Marketing Attribute Set

    Hi,
    Could you please help me out with any BADI which triggers while saving Marketing Attribute Set.
    Thanks,
    Sandeep

    Hello Sandeep,
    Can you trt this bad CACL_VALUE_CHANGE
    thanks

  • Issue in workflow workitem that gets triggered to two users at one time.

    Hi All,
    Below are the query  details:
    Module:  HR
    Area:      Workflow
    Process: Hiring
    There is an workflow in HR module that is triggered when an hiring action is run against an candidate.
    There are two or three maximum approvers  which is based on the position to which the candidate is hired.
    Issue:
    During the hiring process some times the workitem is getting triggered to two users at once.
    One is the actual approver who should receive the workitem in his UWL and other is the user of our service center who is no where involved in the approval process.
    Analysis Done:
    We checked the workflow log and found that the actual approver's ID is getting displayed under agent and workflow is complete. But the other user's ID is no where shown in the log but he has received an workitem in his UWL that makes the issue still confusing.
    Awaiting for experts suggestions.

    Reply to Susan Questions:
    You say that 'the workitem is getting triggered to two users at once' - do you mean that there are two workflow instances that are being kicked off at the same time when the hiring action is performed? Or is it that the workflow is generating two tasks that go to these different users?
    Ans : There is a single task attached to the activity.
    Is this a custom workflow?
    Ans : Yes.
    Are you certain that the erroneous task is only going to the user in the service center, or is it perhaps going to everybody (marked as a general task)?
    Ans : The task is marked as general but the workitem is received by only one user of the service center at a time.
             As this issue has taken place 4 times in the past year all the 4 receiver were different belonging to different position.
    Reply to Pavan Questions:
    1. Did you try to check the SPRO settings with respect to Hiring Process ,is there any where based on the position does workflow is forwarding the workitem to the other user.
    2. Check the other user Roles and in the Org Structure where he is located , there could be a possibility of wrong position holding.
    Ans : We checked the org structure, but org structure of both the centers are different and independent there is no linkage    between the two.
    *3. IF you are using custom workflow then check if any standard workflow is also getting triggered. Check *
    Ans : Yes this is a custom workflow, but no other Standard workflow is being called.
    4. Check in the SWEHR3 is any custom entries maintained.
    Ans : No, entries are maintained in SWEHR3.
    Additional Info :
    The task that triggers the workitem has an send mail step before it.
    The send mail activity is to notify receiver that there is an workitem lying in the UWL.This mail is received by the actual user and not by the other one.The next step is the task that creates workitem which gets triggered totwo different IDs.
    This scenarios mostly has come up when the number of approver is 1. If the approver is more than 1 the  workflow runs fine without  deviating the workitem to any worng user.

  • Getting Error while saving Slot in ACC..?

    Hi All,
    I'm getting Error "Error saving component state /atg/registry/Slots/TestSlotOne" while saving a Slot created in ACC.. What could be the reason..?
    Thanks in Advance,
    VishnuVardhan Bovilla & Nithin Kayithi

    There could be many reasons and only the server logs can explain that.
    In the ACC console you should be able to see the error message or in the ACC error dialog, click on "Details" instead of Dismiss which will give you the stack trace.
    Peace
    Shaik

  • User exit not getting triggered while creating the vendor

    Hi all,
    I wanted to extend the idoc(crermas01) according to my reqiurement.
    But when I am trying to create a vendor using the IDOC cremas01 the user exit EXIT_SAPLKD01_001 is not getting triggered.
    Can anybody tell me the reason why it is happening so...........
    Thanks and regards,
    Vinil.

    Is your Idoc generated after the execution?
    Where is you break-point, it is inside EXIT_SAPLKD01_001. Please note FM EXIT_SAPLKD01_001 will not be called unless it is implemented using project (CMOD) and project is active.

  • I want to move the little house that gets you to your mail on the left hand side where it was. It is now on the far right

    There is a little box on the toolbar that was next to the http bar and the "back" bar. It is now over on the far right side. Have no idea how it got there, but I would like it back on the left

    https://support.mozilla.com/en-US/kb/How+to+customize+the+toolbar <br />
    http://kb.mozillazine.org/Toolbar_customization

  • BADi not getting triggered

    Hello Everybody,
    I am using the transaction MILL_CUT_LBA.
    In that I am trying to assign internal number ranges.
    In the FM VB_NEXT_BATCH_NUMBER a BADi is being called.
    The BADi name is BADI_BATCH_NUMBER_INT.
    But I see an exception there saying the BADi is not implemented.
    Can someone tell me whats wrong with the BADi.
    How do we implement a BADi.
    Thanks,
    Sneha Singh.

    >
    Sneha Singh wrote:
    > How will I know if the BADi has been properly implemented or not?
    >
    > Thanks,
    > Sirisha Matta.
    To see all implemenations of a BADI (at least in ECC6), display the BADI definition in SE18 and then go to the Implementation -> Overview screen.

Maybe you are looking for