Purchase requisition change

Hi Experts,
I need a report for a purchase requisition, if a PO already exists against it, I need to change the flag for the purchase requisiton as closed. Is there any sample report to do this?I have checked BAPI BAPI_REQUISITION_CHANGE. Do I need to also use the GETDETAIL bapi before using this.
Please advise.
Thanks,
Raj

Is the sales order a third party order?
What did you change in sales order?
What want you change in PR ?
Do you get an error or why do you ask?
If you got a message, which one? Double click the message and post the message number here.

Similar Messages

  • Purchase Requisitions Change after create existing document.

    Hi,
    We want to restrict System not allow to change the Purchase Requisition Quantity after create the existing document RFQ & PO with reference of PR.
    Regards
    Aamir

    Dear Amir,
    We had also faced same problem in our organization 2 years back. Then I have change the screenlayout of ME52N as follows.
    SPRO -> Materials Management -> Purchasing - > Purchase Requistion -> Define screeen layout at document level -> Create new entry ME52N by coping ME52. Then goto qty & price field, tick the Qty field as display.
    Due to this changes in PR Qty in ME52N will not be possible. If any change in PR QTY before creation of PO has to be done then user has to delete that line item in ME52N & create new line item in same PR.
    This development is successful at our end.
    Regards,
    Shekhar Gaikwad.
    SAP MM Consultant

  • Purchase order referencing released purchase requisition change

    Hello everybody
    When we create a purchase order making reference to a released purchase requisition, I can still make changes on the item such as changes on the quantity, value, etc.
    We would like to know how to restrict changes of purchase orders when they reference purchase requisitions already released.
    Thank you in advance and regards,
    Alejandra Álamo B.

    Hi,
    For meeting this requirement, you will have to create a new document type (If the same requirement exists for all the Purchase Orders, do not create additional document types).
    Next create a new Field selection where the fields that are copied from PR are made non editable (display). Assign this field selection to the new document type.
    Normally, PO fields are editable because the quantity and values may change based on the negotiation with vendor, or to club requirements.
    Hope this helps
    Priyadarshi

  • ME52N: Purchase Requisition Change GL Account Number

    Requirement: ABAP auto-change the GL Account field number in a Purchase Requisition after the Material Group is changed.
    Background: This custom logic has been successfully applied to all types of Purchase Requisitions using  BADI ME_PROC_REQ_CUST, with the exception of a Purchase Requisition type that is called a 'Service Limits'. There are differences that are important to note between a 'Service Limits' Purchase Requisition and the other Purchase Requisitions that had custom code added without any problems.
    1)This type of Purchase Requisition uses a item category of 'B', and the logic has a tendency to flow through SAP differently.
    2)This type of Purchase Requisition's GL Account number is under-intensified on the 'item' subscreen, and cannot be changed manually on that screen like the others..
    3)In order for the GL Account to be changed manually, or for the GL Account to be changed once my code has changed the GL Account Number, the user must select the 'Limits' tab and select the Account Assignment arrow, then a popup appears where the GL Account can be changed manually, or, my coded GL Account number change then occurs.
    Problem: I want the custom code to be able to change the GL Account NUmber without having to go into thge 'Limits' tab, where the icon has to be selected. I believe the problem is that the field is protected, because it displays as under-intensified, thus, preventing my new GL Account NUmber from displaying. I also have the subsequent SAP code below that appears to reject set_exkn because protect is set to 'X'.
    CODE1: Is my custom code.
    CODE2: Is the SAP code that my will flow into where this field appears to be unchangeable.
    My question:
    I am thinking that this GL Account field is protected and cannot be changed because it is under-intensified on the subscreen on the Purchase Requisition. Can it be changed with custom code, a way to 'unprotect it'? Or, are there settings that should be changed in SPRO for the Purchase Requisition to allow this functionality to change the GL Account number.
       Thank-You
    (CODE1)
    METHOD IF_EX_ME_PROCESS_REQ_CUST~PROCESS_HEADER.
    *Purchase Requisition Item Declarations
      DATA: LT_ITEMS        TYPE MMPUR_REQUISITION_ITEMS.
      DATA: LS_ITEM         TYPE MEREQ_ITEM.
      FIELD-SYMBOLS: <FS_ITEM> TYPE LINE OF MMPUR_REQUISITION_ITEMS.
    *Purchase Requisition Accounting Declarations.
      DATA: LT_ACCT         TYPE MMPUR_ACCOUNTING_LIST.
      DATA: LS_ACCT         TYPE EXKN.
      DATA: LS_SETX          TYPE MEPOACCOUNTING_DATAX.
      FIELD-SYMBOLS: <FS_ACCT> TYPE LINE OF MMPUR_ACCOUNTING_LIST.
      CALL METHOD IM_HEADER->GET_ITEMS
        RECEIVING
          RE_ITEMS = LT_ITEMS.
      LOOP AT LT_ITEMS ASSIGNING <FS_ITEM>.
        LS_ITEM = <FS_ITEM>-ITEM->GET_DATA( ).
        LT_ACCT = <FS_ITEM>-ITEM->IF_ACCT_CONTAINER_MM~GET_ITEMS( ).
        LOOP AT LT_ACCT  ASSIGNING <FS_ACCT>.
          LS_ACCT =  <FS_ACCT>-MODEL->GET_EXKN( ).
          LS_ACCT-SAKTO = 'N500300   '.
          LS_SETX-SAKTO = 'X'.
          <FS_ACCT>-MODEL->SET_EXKN( LS_ACCT ).
          <FS_ACCT>-MODEL->SET_EXKNX( LS_SETX ).
        ENDLOOP.
      ENDLOOP.
    ENDMETHOD.
    (CODE2)
    METHOD if_accounting_model_mm~set_exkn.
      DATA: ls_buffer     LIKE LINE OF my_data_input_buffer,
            ls_bufferx    LIKE LINE OF my_data_input_bufferx,
            l_buffered    TYPE sy-subrc,
            l_data_old    TYPE exkn,
            l_data_oldx   TYPE mepoaccounting_datax,
            l_data_newx   TYPE mepoaccounting_datax,
            l_indx        TYPE sy-tabix.      "1478013
      *PROTECT EQ 'X'
      CHECK my_state->protect EQ mmpur_no.
    Edited by: Tom Matys on Dec 12, 2011 10:55 AM

    Your PO release strategy must have been based on Cost Center as one of characteristics.
    Pl check & confirm.
    Regards
    Bhavesh Mistry

  • Problem in Purchase requisition change BAPI

    Hi Techies
    When using BAPI  "BAPI_REQUISITION_CHANGE" for AFS for changing the purchase requistion,   the changes are getting affected only in the purchase request line item level.  whereas the schedule line (AFS size Breakup)  is not getting changed.
    CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
              EXPORTING
                number                         = va_prno
              TABLES
                requisition_items_old          = it_itmold
                requisition_items_new          = it_itmnew
          REQUISITION_ACCOUNT_OLD        =
          REQUISITION_ACCOUNT_NEW        =
          REQUISITION_TEXT_OLD           =
          REQUISITION_TEXT_NEW           =
                return                         = it_return
                requisition_afs_data_old       = it_liold
                requisition_afs_data_new       = it_linew.
            IF sy-subrc = 0.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                EXPORTING
                  wait = 'X'.
              CLEAR: flg.
            ENDIF.
    please suggest.
    Regards,
    PRASAD.

    Hi,
    Yes, in the AFS BAPI these parameters are exits..
    ofcourse,i got the Solution..
    Best regards
    Prasad.EV

  • BAPI / FM for Purchase Requisition Change

    Hello All,
    I need to add items to the existing requisition. I tried <b>BAPI_REQUISITION_CHANGE / ME_UPDATE_REQUISITION / BAPI_PR_CHANGE / FMFG_MM_REQ_CHANGE</b>, but none of them seem to be working fine for me. Anybody worked on this task or any other thoughts?
    Thanks,
    Chandni

    BAPI_REQUISITION_CHANGE has table parameters REQUISITION_ITEMS_OLD, REQUISITION_ITEMS_NEW , REQUISITION_ACCOUNT_OLD, REQUISITION_ACCOUNT_NEW, REQUISITION_TEXT_OLD, REQUISITION_TEXT_NEW. But, there is no indicator field in these old or new structures that you are creating a new line item.
    In BAPI_REQUISITION_CREATE, there is a field to block requisition (BAPIEBANC-REQ_BLOCKED) , but in BAPI_REQUISITION_CHANGE the structure BAPIEBANV does not have a field to block or unblock a req. however, this is taken care by BAPI_PR_CHANGE.
    <b>My concern is how add new line items to the existing requisition?</b>

  • Changing purchase requisition with processing status B

    How can I restrict purchase requisition changes with processing status B regardless release indicator. Rel 4.7

    Hi Mitra,
    You will find your answer here.
    MRP controller for PR document type
    Do let me know if it helped, as I might have to explore this option for an upcoming requirement.
    Thanks
    Shailesh

  • 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.

  • How to change line type on EAM Purchase Requisitions

    When an EAM Work Order is released, we get Purchase Requisitions with the Line Type as the Purchasing Options default. This can be changed on the req but there is no option to select the req line type on the EAM Work Order page.
    There's a Line Type field on the EAM Work Order page but it's different from the Requisition Line Type.
    Just wondering what are our options to give users the ability to select req line type from EAM Work Order page. We know personalization is an option but we'd need to add a brand new field and even if we do, we are unsure that ReqImport will actually use this new field.
    Workflow extensions could also be a solution and was hoping that someone out there would have some tips and tricks to share.
    Regards,
    Sanjib

    I think the only way is to:
    1) read the address data from Matrix 178 and keep the data in your Add-On
    2) delete the original address (activate the menu item (ID = 1293) or send Ctrl-K via Application.SendKeys)
    3) "click" on "Define new"
    4) and enter the data you have read in 1) into the cells of Matrix 178 again...
    HTH

  • Changes in Budget checking during creation of purchase requisition

    Hi Experts,
    My client wants changes the current  Internal Order BUget checking. Currently Budget checking happens with availability control ie. 105% Suppose current budget is 8000. It will add 5% and Purchase reqn checks the fund available with 8400 less budget utlised, but client wants 8000 less budget utilised as they want to keep 5% aside for the unforseen cases.
    Cilent does not want to change the current availability setting i.e 105%, retaining that availability check, client wants to check the availability excluding tolerance. What is the solution for this.
    Appriciate your immediate response.
    Thanks & regards
    Veda Pandit

    Hi,
    I think you shall set 100 % limit for purchase order and purchase requisition and 105% for good receipt.
    You can do so in customizing "Define Tolerance Limits for Availability Control" , using the activity group.
    Paolo

  • User Exit/BADI to change the Purchase Requisition date,creating threw MD02

    Hi,
    I've a requirement to change the Purchase Requisition creation date.
    I'm using MD02 to create Purchase Requisition.
    Based on the requirement if the available qty is less than the required quantity,we can change Purchase requisition date.
    Please let me know if any BADI's/User Exits we can use for this purpose.
    I've checked EXIT_SAPLMEREQ_010. I've kept debugging point nad i run MD02, but it is not stopping in the exit.
    we are using SAP 4.6c.
    Thanks,
    Adi.

    Hi Experts,
    Could you please give me a suggestion for the above problem???
    Thanks,
    Adi.

  • Error in Bapi : Change Purchase Requisition

    Dear All,
    We have requirement where we need to update the Purchase Requisition Quanity.
    For this purpose, I am using Bapi  '/AFS/CHANGE_AFS_PR_DATA'.
    In this I want to change Sheduled Qty. (AFS Grid Qty.), but I m getting error like
    "Line item 0010 : different quantities in item  and schedule line". (Sy-subrc = 3)
    Can any one help me out with this.
    Thanks in advance.
    Regards ,
    Vishal.

    Hi,
    Refer:
    * BAPI to change the PR details
        CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
          EXPORTING
            number                = v_banfn            "<--PR Number
          TABLES
            requisition_items_old = it_old_detail      "<--pass in old PR details
            requisition_items_new = it_new_detail      "<--pass in new PR details
            return                = it_return_change.  "<--return table
    *   "read for error message while changing details for PR
        READ TABLE it_return_change INTO wa_return_change WITH KEY type = 'E'.
        IF sy-subrc = 0.
          "check for ERROR
        ENDIF.
    Hope this helps you.
    Regards,
    Tarun

  • 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

  • Purchase requisition document type change after Enhancement pack 4

    HI,
    we have recently upgraded to enhancement pack 4, after which i am not able to change purchase requisition document type.
    In change mode ME52N, the system is allowing to make change but when i goback and display the same PR again the change is not visible in change history also.
    I am able to make other changes. facing the problem with change in document type only.
    Regards,
    Raghu

    Hi,
    One thing please note that once you select the document type and draft the PR and save the PR, you will  get the doc number.
    Once you get the document number you cannot change the PR document type .
    The reason is document type is linked with number range so it cannot be changed because different seriers of document number is assined to differentdocument type. 
    And moreover document type is linked with the screen settings also. So I would request you to check the settings for each doc. type

  • How to change the Purchase requisition when control key is PP02

    Hi Exports:
      I want to change the  purchase requisition which was created after  production order was  released . The  control key is  pp02.
      I  changed the purchase requisition in OPJP .but I got an error .
      the error message is
      " Acct. assign. cat. "Q" for purchase req. Project Stock does not exist. "
      I don't know what should I do . would you like to give me some advice? thank you  very much.

    Hi, Umesh:
         Picture1 is  my OPJP initial screen ,I want to change to be Picture B . but I got an error .
         In fact , I  don't have project stock . but I have sales order stock.
         I try to change 'Q' to other option . but I got the same error.
    picture 1
    picture 2

Maybe you are looking for

  • Bluetooth connection problem X6

    My phone will not connect to my bluetooth headset anymore, I tried it on a friend's headset (same phone and model) nor will it connect to my company vehicle bluetooth device. It seems to be since I started using bluetooth connection to load pictures

  • Table name for language

    Hi I would like to know the table name for language

  • NFL Mobile on a tablet

    I have NFL Mobile and pay the $5 a month for the service. I was wondering if it is possible to use it on a tablet? I downloaded the NFL Mobile app on my Nexus 7, but when I go to sign in through Verizon in the app to watch videos, it always fails. An

  • Can't publish -- ".mac member name is not correct"

    Hi everyone, I am no stranger to iCal publishing, I have been using it for many years for business and personal use. I came across a confounding issue today: my personal calender wouldn't refresh to my .mac account. I thought it might just be an issu

  • Wake Up Dear - What's That Noise?

    We had one of those moments very early Saturday morning. My wife woke me up with that question. Sure enough, there was an odd sound. It took a few minutes to get fully awake, and begin to explore the source. I tracked it down to water running down th