Change Data of Purchase Requisition or PO

Hello techies,
I'm trying to find an user-exit or BADI in order to change the Purchase Requisition item line. If possible it's also fine to change the item line of the Purchase order.
I want to change the material number.
Best Regards,
Frederik

Hi,
Check the BADi
ME_PROCESS_PO.
Hope it helps.
Regards,
Shashank

Similar Messages

  • How to change an Existing  Purchase Requisition Document in MM.

    Hi Folks,
    I want to write a program to change a existing  Purchase Requisition in MM.
    I found two BAPI's BAPI_PR_CHANGE and BAPI_REQUISITION_CHANGE , which could be used to change PR document in  ECC.
    I have following question:
    1) why we have two seprate BAPI's for changing PR.
    2) Do we need to use both BAPI's to change PR, depending on what value we are trying to change.
    3) Is it optional to use any of these two BAPI's
    Or do we have any other way to implement this PR change process.( Bcoz of when i tried to debug standard PR change process, none of these two BAPI's has been called)
    Which FM or method is called when, we try to change and save PR document manually.
    I would appriciate, if some one has any sample code to implement this PR change process.
    Regards
    PG
    Edited by: PG on Aug 23, 2010 3:10 PM

    >
    PG wrote:
    > I have following question:
    > 1) why we have two seprate BAPI's for changing PR.
    BAPI_REQUISITION_CHANGE is the older BAPI, the one based on the older ERP transaction (ME5x family), while BAPI_PR_CHANGE is the newest one, referring to the "recent" Enjoy transaction (ME5xN family).
    They both satisfy you task probably, but if you can chose, I'd go for BAPI_PR_CHANGE.
    >
    PG wrote:
    > 2) Do we need to use both BAPI's to change PR, depending on what value we are trying to change.
    > 3) Is it optional to use any of these two BAPI's
    You can use the first or the second one, it's indifferent. The newest one will also trigger user exits from ME5xN family. Which transactions are used by the users on the ERP? Choose with regards to the transactions used during the normal activity.
    >
    PG wrote:
    > Or do we have any other way to implement this PR change process.( Bcoz of when i tried to debug standard PR change process, none of these two BAPI's has been called)
    Normal PR change operativity doesn't use BAPI. BAPIs are used to create/modify docs from "external" systems (it's not properly true, but let assume it), they provide a simple interface to populate with PR data and the process of creation/modification will trigger every check/userexit already defined for the standard transactions on the ERP.
    In example, suppose that in ME51N you defined a custom check in a specific userexit which don't allow an user to create a material item which have odd quantity (odd example, I know ). Then using BAPI_PR_CREATE you will not be able to create a PR with items with odd quantity, because the same check will be executed.

  • Exit to change customer in purchase requisition

    Hello,
    I need an exit (user-exit/BADI) that can change the customer field (CMMDA-KUNNR) in purchase requisition.
    Can somebody please help?
    Sincerely,
    Ice

    SAPLMEWQ : Customer exit for processing of requisitions via BAPIs
    MEREQ001 Customers' Own Data in Purchase Requisition
    regds,
    kiran

  • Due date in purchase requisition

    Hi experts,
    I want to know in which table "Due Date" will be stored during the purchase requisition generation???

    Dear Nandakumar,
    Please check in table EBAN for the following fields
    BEDAT = Purchase Order Date
    BADAT = Requisition (Request) Date
    LFDAT = Item Delivery Date
    FRGDT =Purchase Requisition Release Date
    Check and revert back.
    Thanks & Regards,
    Hegal K Charles

  • Changes in approved Purchase Requisition

    Hi all,
    After a purchase requisition has been released the person that created it can still make changes. If changes are made the altered requisition does not have to be released anymore.
    Is is possible to prevent users from changing a released purchase requisition? (How?)
    Is it possible to require another release after changing an released purchase requisition? (How?)
    Thanks!
    Regards,
    Victor

    Hi Victor,
    Below are the possible settings for Release Indicator for PR which may work for your requirements.
    If the changeability value -
    Blank  --- Changeable, new release in case of new Strategy, 
    1---- Can not be changed
    2---- Changeable, no new release in case of new strategy.
    Confirm if it works for you.
    Thanks,
    PNR.

  • How to Change delivery date of Purchase Requisition created from PM  module

    Hi all,
         We are creating service PR from PM module. There is a need that user should be able to change the
    Delivery Date of the PR. When we use ME52N , the field is grayed out.
    If the PR is created with same data manually with ME51N, we are able to change the delivery date.
    Please suggest how to do this.
    Thanks

    I´m sorry, but my english, is not better.
    Why in the Scheduling for External Procurement, the Purchase Requisition take (or picks up) as Delivery date, the Basic End Date of the Maintenance Order (PM). 
    What must I do in the customizing so that the Purchase Requisition takes (or picks up) the delivery date as the Basic End Date of the Maintenance Order.
    Please, helpme..
    Cristian Torres

  • Assign document date to purchase requisition date

    Hi All,
    I have a question regarding purchase requisition. I have a requirement where i have to change the purchase requisition date based on certain condition. I tried to change it in the user exit "MV45AFZZ" when the sales order is released, but at this point the purchase requisition number is not yet created in the database though it is available in this internal table "XVBEP-BANFN" in the include "FV45EFMA_BESCHAFFUNG_SICHERN" of "SAPFV45E". Can anyone tell me when will EBAN table get updated and when should i change the requisition date? I hope the doubt is clear, otherwise let me know.
    Thanks and have a nice day.
    Cheers,
    Ashley

    Hi Ashley
       I have tried on my system and itz working, Can you
    place a break-point in MV45AFZB and see if the flow is
    reaching the place at the point where you need.
       Coming to the Customer Function in
    FV45EFMA_BESCHAFFUNG_SICHERN, have you checked as per
    the documentation of it:
    FU EXIT_SAPFV45E_001
    Text
    Update Purchase Order from Sales Order
    With this customer exit the standard system behavior
    regarding updating order data from the sales order can
    be expanded or restricted.
    The module is called up when the sales order is changed,
    as long as the conditions for changing the order have
    been filled. It transfers the document number, the
    purchase requisition number and a table for the fields
    to be changed in the order (T_PURCHASE_DATA). <b>This
    can be expanded or restricted in the existing
    Customizing.</b>
    <b>The rule is: To change a field with the name
    FIELDNAME, a subprogram (form routine) with the name
    POSITION_CHANGE_FIELDNAME must exist in the program SAPMM06E.</b>
    Try to find if POSITION_CHANGE_BADAT exists in
    SAPMM06E. If not found ask you functional consultant to
    expand it for purchase requistion date and see if it
    works.
    Hope your problem resolves.
    Kind Regards
    Eswar

  • Change customer for purchase requisition

    Hi gurus,
    i'm trying to change customer number for purchase requisition.
    i tried to enter this code in badi ME_PROCESS_REQ_CUST~PROCESS_ITEM but KUNNR is not changed:
      DATA : ls_item_data   TYPE mereq_item,
             ls_item_datax  TYPE mereq_itemx,
             lv_obj         TYPE REF TO object,
             lv_attr        TYPE string,
             lv_aktyp       TYPE aktyp,
             lv_kunnr       TYPE ekunnr.
      FIELD-SYMBOLS : <fs_lcl> TYPE any,
                     <fs_source> TYPE any.
      IF im_count EQ 1.  " to avoid infinate Loop"
    Access Attributes value of Local Class
    for getting the transaction mode of Line item
    H-> Create
        lv_obj ?= im_item.
        MOVE 'MY_STATE->AKTYP' TO lv_attr.
        ASSIGN lv_obj->(lv_attr) TO <fs_lcl>.
        lv_aktyp = <fs_lcl>.
        IF lv_aktyp EQ 'H' OR lv_aktyp EQ 'V'.        "While creating line item"
    Extracting existing Item Data and Modify the fields
    Requestor Name (AFNAM) & Source of supply details
          CLEAR : ls_item_data.
          ls_item_data = im_item->get_data( ).
         ls_item_datax = im_item->get_datax( ).
         MOVE ls_item_data-ernam TO ls_item_data-afnam.
          lv_kunnr = '0000100000'.
          ls_item_data-kunnr = lv_kunnr.
             ls_item_datax-kunnr = 'X'.
         im_item->set_datax(
         EXPORTING
         im_datax = ls_item_datax ).
          im_item->set_data(
          EXPORTING
          im_data = ls_item_data ).
        ENDIF.
      ENDIF.
    when trying changing other fields like AFNAM for example, the data is changed.
    the customer number exists in KNA1.
    any ideas?
    Thanks,
    Sagit.

    SEARCH  SEARCH  SEARCH  SEARCH  SEARCH  SEARCH  SEARCH
    Good work

  • Wrong Release date in Purchase requisition wh later than requisition date

    Hi,
    Purchase requisition created through Planned order then Source (contract) is assinged through Transaction ME57.
    After that in display of PR as found below mentioned below,
    Release date is 27.11.2008 and Requisition date is 04.12.2008. MRP type maintained in Material is Auto Reorder point.
    Checked In display changes of PR as Planned delivery time new value is 45 (45 maintained in Contract and contract assigned in source list) and old value is 0 (Material master-MRP 2 view) on 04.12.2008.
    My question is How come PR release date as past as 27.11.2008 when requisition (PR creation date) date is 04.12.2008. Suggest any setting required to check.
    Looking forward to your expeditious response.
    Regards,
    C. Sundar Rajan

    Hi,
    If I guess, there is an exception message "06" on the PR.
    check with MDO4,  if there is the exception message 06 that means :
    In order to get material at requested time you have to release the PR in the past. This message help the purchaser to detect the problem and try to reduce to lead time by calling the supplier.
    PR release date = Requested date - safety time- lead time - setup time - processign time- ....
    If you want to change the system behaviour you have to change to chage the item strategy ont the:
    MRP3/Planning/Strategy group.
    best regards

  • PM orders change already existing purchase requisitions

    How can we avoid that changes to an existing work order, e.g. adding a new service or component will reset already reased purchase orders. The system does not recognize if requisitions are already converted to purchase orders or approval steps have already been performed.
    The external procurement settings need to be on "collective creation of purchase requisitions".  Maybe there is a user exit available that anybody knows more about, within that we can control the status of requisitions and avoid above described behaviour?
    Many thanks for your help and replies,
    Heiko

    Hi,
    Yes, It is possible to change plant on existing PO's provided the particular PO line item is not doing GRN and MIRO.
    If not done GRN and MIRO, the particular PO opened in ME22N T-code and selected particular line item deleted and then you have to create new line item give input data material code,plant,quantity,gross price, storage location and SAVE the PO.
    Hope, it is very useful for you.
    Regards,
    K.Rajendran

  • Variable Size Item Data in Purchase Requisition

    Hi
    When ever the Purchase Requisition of the Variable size material is
    raised, how do i view,for reference,the Variable Size Item data from
    Bill of materials .
    Steps for the Reconstruction 
    1.Create a Variable size Item Bill of material.
    2.Run MRP agianst the Variable size material's dependent demand.
    3.View the Purchase requisition of the Variable size Item, to take a
    note of the Item Data.

    Thread closed

  • Need to get the Last Changed date in Purchase Order.

    Dear Experts,
    I need to get a table which stores the last/ latest change for a Purchase Order.
    For a Purcahse Order, last date  Changes need to be captured , where there was some sort of activity associated with that order. That activity could be a goods receipt, an invoice payment or a change to the Purchase order.
    Thanks in advance.

    Hi,
    You can use EKPO-AEDAT.
    Tables CDHDR and CDPOS contain what chnages you have made.
    Thanks,
    Ramakrishna
    Message was edited by: Ramakrishna Prasad Ramisetti

  • Changing quantities from purchase requisition to purchase order

    Hi MM friends,
    I've created a purchase requisition with some materials and quantities.
    When I create a purchase orer in reference to this purchase requisition, SAP modifies quantities for some materials.
    Why ?
    Regards,
    Bahia.

    Hi,
    This is standard functionality of SAP...If you create PR for say 100 qty, then while creating PO w.r.t. PR you can change quantity to 70....
    The same will be replicated in PR history.....
    Coming to your point If you do not want to make any changes in the quantity in the PO, then you have to make sure that your all PO's are only getting generated by PR....
    Spro-Materials Management-Purchasing-Purchase Order-Define Screen Layout at Document Level..Select ME21N...Quantity and Price--Make quantity as DISPLAY..SAve and come out..
    Now try, it will work..
    Also Be sure this will only work out if you are making your all PO's wrt PR...If you try to create PO manual (w/o any ref) then Quantity field will be in suppress mode.
    Utsav

  • Delivery Date getting Copied to Release Date in Purchase Requisition

    Hello,
    When i am releasing the Purchase Requsition, what ever the Delivery Date the system is proposing based on the Planned Delivery Days given in Material Master is copied to the Purchase Requisition Release Date.
    Is there any error in Customization ??
    Regards,
    Kumar

    Hello Shakthi,
    System is considering Delivery date as Release Date when you create the purchase requisition.
    Thanx & Regards,
    Kumar

  • Delivery Date in Purchase Requisition

    Hello all,
    This could be a kind of familiar post but i need a clear cut advice on this particular aspect.
    Delivery date in a purchase requisition is calculated based on PDT in material or purchasing info record. Date proposed would exclude the non working days as setup in the factory calendar. This is what my understanding with regards to the subject.
    let's take this case.
    #1. PR was created on 20th June so as per the Planned delivery time, delivery date should have calculated to 8th of august. But it's 30.07.2014
    #2. Planning calendar:
    Note: I do see an exception of 30 and rescheduling date is set to current date in the MD04 screen.
    Procurement proposal was triggered for a customer requirement (created on 19.06.2014) with requirement date : 24.06.2014.
    Please do help out.
    Regards,
    Rahul

    Hi Rahul
    Take a look on the following link, where the scheduling for external procurement is described:
    http://help.sap.com/erp2005_ehp_06/helpdata/en/f4/7d29f344af11d182b40000e829fbfe/content.htm?frameset=/en/f4/7d29e644af1…
    As explained here, the delivery date is firstly calculated to match the requirement date minus the goods receipt processing time. After that, the release date is calculated using the planned delivery time and the purchase processing time (defined on customizing). If you don't allow the start in the past on customizing, system switches to forward scheduling and the following procedure is used to schedule the order:
    http://help.sap.com/erp2005_ehp_06/helpdata/en/f4/7d2a0d44af11d182b40000e829fbfe/content.htm?frameset=/en/f4/7d29f344af1…
    BR
    Caetano

Maybe you are looking for