BADI for ME51N  purchase requisition

Dear All,
i want to use user badi for transaction ME51N as i want to put a check for cost centre with plant such that if it does not belong to a particular plant it should throw an error message
i hav found one BADI
ME_PROCESS_REQ_CUST
wherein in one of the methods(PROCESS_ITEM) i m getting
Plant directly but i have searched all method and i m able to get costcentre(*KOSTL) in methods like 
IF_ACCT_CONTAINER_MM~LOOKUP
now if i m trying to use this method its saying either method unknown or private or protected
can anyone plz help me with the syntax of using methods having such format as above i know the syntax to access normal methods like getdata or getitem and so on.
Ronak

Hi Ronak,
Your input parameter in PROCESS_ITEM (IM_ITEM) is an object of class IF_PURCHASE_REQUISITION_ITEM. You can get all item data by using:
DATA:
  zls_item TYPE MEREQ_ITEM.
zls_item = IM_ITEM->GET_DATA( ).
Regards,
John.

Similar Messages

  • 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

  • SRM Workflow for external Purchase requisitions ECC

    Dear experts,
    We are in SRM 7 Classic scenario , ECC 6. Using SRM process controlled workflow . We want to enable SRM workflow for external Purchase requisitions. As per SAP note 505030 topic 16 , approval is not triggered in SRM for external requirements. So we need to find a new solution as it's a clinet requirement.
    Current  scenario:
    External purchase requisition created from ME51N or Plant maintenance are sent to SOCO for buyer completion. External PRs generate a SC BUS2121 EXTR in status approved.
    Desired scenario:
    We want those external requirements to be sent to SRM for approval (approval with completion + approval)
    After implementing changes suggested in Prasannau2019s document (http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/5082a622-7310-2c10-1a9b-ef31dd69a770 ) , the Workflow is still not triggered for the external PRs, the SC is created but remains in status awaiting approval. No work item is created (neither in BBP_PD not in SWI6, not in SWIA).
    Can anyone provide some guidance on what else need to be changed in order to activate SRM Workflow for external PRs?
    Many thanks in advance,
    Nuria
    Edited by: NuriaUB on Dec 28, 2011 5:14 PM

    Hi Any one got answere this issue. I also implemented the steps provided in the document created by Prasannau2019s. The workflow is getting triggered for external requisitions now but when we are changing the PR in ECC and transferring again that time its not gettign triggered neighther its restarting the exisiting approval workflow in process (if any).
    Thanks,
    Swapnil

  • How to create a purchase order for a purchase requisition

    Dear Experts,
       Explain the steps for creating purchase order for a purchase requisition.
    and where can i find this purchase requisition field in PO creation.

    Hi Ravi,
    Check out these documents:
    http://www.olemiss.edu/projects/sap/MM_Create_PO_with_Ref_to_a_PR.pdf
    http://www.sap.com/africa/services/education/pdf/Work_Instruction.pdf
    Regards,
    Chandra Sekhar

  • Material Number mandatory for PR exceptP for Service Purchase Requisition

    Hi All,
         Our client's new requirement is we need to give material number mandatory for Purchase Requisition. But it should not affect for Service Purchase Requisition (as we don't have material number with material type DIEN. Till now, we were using Acc Assignment Category K and Item Category D with only Short Text description). We have separate document type for Service Purchase Requisition(ZSRV).
        In order to make Material number mandatory, in PR, we need to give in "Define Screen Layout  at Document Level for PR",right? Is there any way to give, "Material Number Mandatory at Document Type Level"?
    Please suggest.
    Regards,
    rosh

    hi sridhar,
      Thank you for your answer. So as you said, there is no possibility to make material number as mandatory at DOCUMENT TYPE level through Customzining, right?
    Regards,
    Rosh

  • How can i develope a report for getting purchase requisition details

    how can i develope a report for getting purchase requisition details like mrp controller release date unit of measure

    Hi,
      Go to Tcode ME53(Purchase requisition display). Give any preq number and click the item overview button..
    in the next page click select one item and press item details button(or F2 button)..In the next page all your requiresd fields will be there.. put cursor in reqd field and press f1.. in the pop up box press techical details(hammer button) to get the field name as well as the transparent table.. Use those fields and table in ur program..
    hope it helps
    Award points if it helps

  • ENABLE SRM WORKFLOW FOR EXTERNAL PURCHASE REQUISITIONS

    Hi,
    Iu2019m creating a shopping cart using an external approver.  We require external requisition to be completed by the purchasibg manager.
    The changes were implemented as outlined in the document
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/5082a622-7310-2c10-1a9b-ef31dd69a770
    I create the purchase req in the external system and the transfer the requisition to SRM.  A shopping cart is then created. This  shopping cart goes to the purchasing manager for completion. Upon completion by purchasing manager, a message appears to say 'External requisitions do not require an approval process' and
    the workitem remains in their inbox.
    This workflow processed correctly for normal shopping carts.   I canu2019t understand why it does work for external purchasing requisitions.
    thanks
    Ann

    Hi Any one got answere this issue. I also implemented the steps provided in the document created by Prasannau2019s. The workflow is getting triggered for external requisitions now but when we are changing the PR in ECC and transferring again that time its not gettign triggered neighther its restarting the exisiting approval workflow in process (if any).
    Thanks,
    Swapnil

  • How to configure an automatic vendor assignment for a purchase requisition

    hi guys,
    how to configure an automatic vendor assignment for a purchase requisition in sap
    Thanks in advance

    hi Swathi,
    Check these Links out
    http://help.sap.com/saphelp_erp2005/helpdata/en/75/ee11e655c811d189900000e8322d00/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/5e/372e3b7532394ce10000000a114084/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/4d/2b912a43ad11d189410000e829fbbd/frameset.htm
    Regards,
    Santosh

  • How to create new requisitioner in sap mm for raising purchase requisition?

    How to create new requisitioner in sap mm for raising purchase requisition?

    Hi Dear,
    There is some link will help you to create Purchase Requisition and other MM Documents.
    http://www.docstoc.com/docs/11307932/SAP-MM-Manual-Create-Purchase-Requistion
    http://www.r3.duke.edu/training/stepbystep/#purch
    http://sapdocs.info/sap/materials-management-2/download-sap-purchasing-user-training-ppt-material/
    Regards
    Aamir

  • Any userexit or badi for Me51n or me52n

    Any  user exist  or badis for  Me51n or me52n if
    Material Profit center ,v/s Plant profit center  or v/s WBS profit
    center not matched then PR should not saved.
    Moderator message: please do some own research before asking.
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Feb 21, 2011 2:01 PM

    Hi,
    Please check this thread for the procedure to find the BADI for a transaction
    http://searchsap.techtarget.com/tip/0,289483,sid21_gci1276392,00.html#
    Or
    You goto se24 and specify the class CL_EXITHANDLER and in that double click on GET_INSTANCE method in that put a break point on the line 
    CALL METHOD cl_exithandler=>get_class_name_by_interface
    and run you transaction... for almost every action you will get this method trigger and in that check the exit name... And that's the BADI for the interaction made in that transactation.
    Please go through this link for Finding BADI using class CL_EXITHANDLER in detail.
    [Finding BADI|http://abapreports.blogspot.com/2008/06/badi-finding-in-abap.html]
    Hope this would help you.
    Good luck
    Narin
    Edited by: Narin Nandivada on Aug 19, 2008 5:30 PM

  • Badi  for ME51N Item changes

    Hi ,
      Is there any Badi or user exit to make changes to the line item data in the purchase requisition create/change ME51N or ME52N transactions. We would want to populate few fields automatically on the item data, so would request if any of you have worked on any Badi for this transaction, please do post in immediately.
    Thanks,
    Sowmya

    Hi,
    1)BADI to be implemented: ME_PROCESS_REQ_CUST.
    Method to be used: PROCESS_ITEM.
    Place the below code in your implementation.
    data : l_item type MEREQ_ITEM.
    CALL METHOD im_item->get_data
    receiving
    re_data = l_item.
    *C-- L_ITEM-BEDNR is requirement tracking number
    2)Exit in ME51N
    MEREQ001 Customers' Own Data in Purchase Requisition
    You can implemet by this way
    You add your customer fields, which should be saved in the database, to
    the include CI_EBANDB (in table EBAN). You can also add customer fields
    that you want to use during the program run to the include CI_EBANMEM
    (in structure MEREQ_ITEM) These fields are not stored in database table
    EBAN.
    <b>Reward points</b>
    Regards

  • How to de-activate Qty and Price fields for Service purchase requisition

    Dear all,
    We have a request to de-activate (leave it as "Display") the fields of quantity and gross price when changing a service purchase requisition of a specific document type.
    In example: We want that purchase requisition type NB, allows in change mode (ME52 or ME52N) to change the quantity and gross price of the services. On the other hand, these two fields must be only visible for order type ZNB. Besides this must be happening only for services.
    Changing PT9 or PT9B will affect also the creation, and if we only configure based on transacction and document type does not work.
    Any help will be highly appreciatted.
    Cheers

    Hi,
    You may have to write a output requirement routine and assign the same to the output type in NACE.
    But i don't think you will get the old and new data of Purchase order in requirement routine (program : SAPLV61B).  You may have to export the data into memory from either a BADI method or User exit and then import the same in requirement routine.
    Regards
    Vinod

  • Workflow for MM purchase Requisition steps required

    Dear all,
            I am trying to configure purchase requisition Workflow.
            I am working with Work flow, WS 00000038
            I have assigned agents to TS 20000162
            Now how to proceed further, do i need to maintain some more settings
            or i should try to test system.
            Regards,
            Gaurav sood

    Under the assumption that things have not changed much since 4.70, here's quick introduction:
    The workflow is started only when a relevant release strategy is found, so customizing of release strategies is a very important (first) step here.
    In the Implementation Guide you find the customizing in the following path:
    Materials Management
    -- Purchasing
    -- -- Purchase Requisition
    -- -- -- Release Procedure
    -- -- -- -- Procedure with Classification
    Only the procedures with classification are relevant if you want to use workflow to notify about requisitions waiting for release.
    First you must set up a classification class if that has not already been done. Derive your characteristics from the structure CEBAN. The online help is not too bad, I had never set up classifications before and managed to get it working.
    If you need data that are not available in CEBAN, or you want to modify them for the purpose of determining the release strategy there is an enhancement you can implement, and there are customer fields you can use. The enhancement definition's name is M06B0002.
    As an example of what you can do, I have used it to set the company code in one of the customer fields, and to change the account assignment type. However, whether you need this enhancement or not depends strongly on what data you use to determine your release procedures (a step in customizing you will get to later).
    When that is done you define release groups and release codes. Release codes are defined within each release group. Whether you should use one group or several groups is often a matter of choice.
    I myself prefer using several groups even if I don't have to, so long as it doesn't lead to having to define duplicate release strategies (which you will soon get to). So, if there is some characteristic that clearly separates your release strategies, e.g. the highest amount that does NOT require release etc, you can define one group for each value (group) of this characteristic.
    For instance, if some company codes require release for everything worth more than 100EUR while the default is to require release from 10.000EUR you could create to release groups. None of your release strategies will be duplicates since the value from which release is required will be different and you thus need to have that as a characteristic.
    You then check that the set-up of release indicators is OK, and then you are ready to start defining the strategies. Release stragies are defined within each release group, and use one or more release codes (two or more release indicators).
    It is fairly self-explanatory once you get into the screens. The thing to be observant about is to not define overlapping strategies, as this will prevent the solution from working.
    When you are done, and have tested the solution in DEV it is time to transport it to the QA system. That's when I got a rather unpleasant surprise. The classification data are not transported, so both the characteristics and class, as well as the classification data in each release strategy had to be redefined. And in roughly two hours I have to do it again in production.
    It is possible to transport classification information, it is described in SAP OSS Notes (different solutions for different versions).

  • UserExit/ Badi for me51n ( Version Details )

    Hi Experts,
    In transaction ME51n for Purchase Requistion for line item in Version TAB , I want to capture the Status "version completed" checkbox in a User exit or BADI and want to put a validation on the checkbox. I have  list of all UserExits and Badi's
    which are available for me51n. But none of them capture the Version TAB details in me51n. Version Details are available in EREV table.  EREV table details are not available in any of the UserExits and BADI's. No structure is available for that in User exits / Badi's.
    Also I want to know about BTE's. What are BTE's? Can BTE be used for ME51n transaction? If yes . what is the procedure  for the same?
    Please suggest a solution for the same as soon as possible.
    Thanks in Advance.

    Hello Priti,
    For BTE ref following doc-
    http://help.sap.com/saphelp_erp2004/helpdata/en/ee/e87988027a11d5a7d60000e83dda02/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/207835fb-0a01-0010-34b4-fef1240ba9b7
    Thank You,
    Nishikant.

  • Layout settings for a Purchase Requisition

    I want to create a Layout for the PUrchasse Requisition and want to make this layout the Deafult Layout that all users must use without choosing the layout themself, where do imake these settings.
    Thank you.

    Hi,
    Spro>MM>Purchasing>PR>Define screen layout at document level> change the layout and assign the same to a transactions. Like me51n,me52n and me53n.
    So that it wil be default for the users.

Maybe you are looking for