BAPI_PO_Create with reference purchase requisition

Can someone help with the BAPI_PO_Create with reference to a purchase requisition step by step procedures?
Any kind of assistance will be appreciated
Thank you

Hi
BAPI_PO_CREATE is an old BAPI, you can try using BAPI_PO_CREATE1 -
Function module BAPI_PO_CREATE1 enables you to create purchase orders. The BAPI uses the technology behind the Enjoy purchase order transaction (ME21N).
Alternatively, the IDoc type PORDCR1 is available. The data from this IDoc automatically populates the interface parameters of the function module BAPI_PO_CREATE1.
in SAP please use Transaction BAPI for details & example.
in BAPI -Materials Management -> Purchasing -> PurchaseOrder -> CreateFromData1  or CreateFromData
Checkout the documentation of the BAPI, it will have all the details with example.
For testing the BAPI goto SE37 -> Enter the FM name BAPI_PO_CREATE1 & click on test poulate the fields as specified in the example & check the results.
Thanks & Regards
Kishore

Similar Messages

  • Contract with Reference Purchase requisition

    Hi experts,
    i created one pr from project system , pr quntity  1000 ea , i created quantity contract with reference to pr, quntity contract quantity is equal to pr quantity,now i am creating another contract with reference to same pr but i am not getting
    any warning and error message like already contract exits for this pr, is any option  to get error message when i am creating second contract.
    regards
    G.vijay kumar

    Hi
    Kindly check following any one of the message would works.
    Materials Management > Purchasing > Environment Data > Define Attributes of System Messages
    06     042     Target value of contract & exceeded by & &
    06     060     Document type/item category &/& (PReq) <-> &/& (contract)
    06     106     No requisition items selectable for contract type &1 item category &2
    You need to set error or warning message:
    Regards
    Shrinivas

  • Problems with a purchase requisition interface via SAP XI

    Hello.
    We are integrating the purchase requisition from external aplication to SAP through SAP XI. SAP XI send a IDOC to SAP R3 to create the purchase document. The conection is made with rfc conection which has set the comunication user and logon language. The purchase requisition is created with the logon language and if the material has not short text in this language in material master the error ME095 is generated.
    I don't understand this error because in the interface we set the PR short text which is posible to change. Also, we have set this system message like warning in T160M.
    We don't find any way to skip this message and we think if the interface allow to set a short text in the PR it's the same that the material master isn't updated with the short text in logon language.
    Thank you very much.
    Alberto

    Hi.
    I don't want to change the short text in Material Master. I only want to change this short description in PR, but if I don't mantain the short description in material master the error ME095 is generated. I need to be able to create a PR independent of logon language.
    Thank you for your answer.
    Alberto

  • How to link Idoc generated with the Purchase requisition?

    Hi All,
    I have created a program wherein idocs are generated. Its gives rise to Purchase requisition.
    Can you please tell me how to show the PR created against the idocs that are generated in the spool list?
    Please note the function module creating the idocs does not return the PR no. generated.
    Any alternate solution to this is welcome.
    Thanks,
    Abhhishek

    Triple-post = Triple-lock.
    Please read the forum rules before posting any further.

  • Problems with Framework Purchase Requisition to Purchase Order Process

    Am in a 4.7 environment, and have configured the FO PR document type with FOB as the document screen default settings.  When I try to use ME59/ME59N to take to FO PO type, I get an error message that I have to have a Validity Start date.  I can see that this is a required default setting in the FO PO Document Type, but am unable to locate same in the FO PR configuration.  Any ideas would be appreciated!

    Hi
    These fields are not there in the PR, Validity dates are not applicable to PR , they are applicable only to PO as these are used for controlling the PO.
    You amy have to use some derivation rule to determine the Validity Start date and end date for PO conversion process. by using any of the user exits/ BAdi to default data in PO screesn like ME_PO_PROCESS_CUST
    Thanks & Regards
    Kishore

  • PO creation with reference to Purchase Requisition

    Hello,
    Is anyone aware of a control in SAP that allows for a warning message  when you create one or more PO's form the same requisition and the total quantity on the PO(s) is over the quantity on the original purchase requisition?
    Also can BAPI be used to check the same?
    For example if I am creating PO using BAPI_PO_CREATE1 with reference to Requisition created.
    Can I check for errors using BAPI for PO creation in TESTRUN mode for quantity exceeded, different REQ types mixed in one PO and delivery date in PO match REQ?
    Any thoughts here would be appreciated.
    Regards,
    Madhura

    Hi Madhura
    have u tried message  06 076  to warning or error  in
    SPRO>Materials Management>Purchasing>Environment Data>Define Attributes of System Messages-->System messages
    Vishal...

  • Report with purchase requisitions and purchase orders: how?

    Hi,
    I need to get a list of items bought with their purchase requisitions and purchase orders (when they exist). This can be done looking at each purchase order (ME23N), ou purchase requisition (ME53N), and writing it down. But in some cases, I have to do it on about 450 operations. I'd like to get this list without having to search for each requisition ou order. I can get a complete list of orders and requisitions, but without any relationship between them (they are mixed as if they were the same thing, but there´s a field telling it that row is an order or a requisition). Using some macros in excel, I can find this relationship in 40% of the cases (for example, if item 421351 was purchased only once, an order for item 421351 is related to a requisition for item 421351). Is there any way to get this list automatically? Or is there any field that tell me this relationship?
    Thanks,
    Francisco Morbiolo
    Votorantim Cimentos
    Votorantim, SP - Brazil

    Sorry, I forgot to tell this: I don´t have access to SQ01/SQ02/SQ03.
    I get the orders and requisition reports using ZGLPS020.
    Thanks,
    Francisco Morbiolo
    Votorantim Cimentos
    Votorantim, SP - Brazil

  • Regarding material wise purchase order creation with reference to pr

    Dear sir
    I have a scenario depending on the  material wise pos creation
    I have two type of material
    1) raw material
    2) consumables
    When user will create purchase order for raw material, system should ask purchase requisition. ( i.e with out purchase requisition for raw material , system should not allow to create the purchase order)
    Where as for all consumables materials system should allow to create the purchase order
    Without purchase requisition also, for user.
    Regards
    Jrp.

    You have to create two different document type for purchase order.
    1) Raw Material Purchase
    2) Consumables Purchase
    You can create two different document type for purchase order with below mention path: -
    SPRO >> Materials Management >> Purchasing >> Purchase Order >> Define Document Types.
    After define two different document type, You can change field status for two different document type with below mention path.
    SPRO >> Materials Management >> Purchasing >> Purchase Order >> Define Screen Layout at Document Level.
    Select document type and change field status of purchase requisition.
    Regards,
    Mahesh Wagh

  • Best Practice while creating Contract, Purchase Requisition, Purchase Order

    Hi
    What is the best practice with respect to Contract & Purchase Requisition?
    IN T Code ME31K, there is a button Reference to PReq, meaning that we can create contract with using Purchase Requisition. (We have done the same)
    While creating the Purchase Order using Contract, we could find Purchase Requisition reference in the Purchase Order; similarly when we created the Purchase Order using Purchase Requisition, we could find Contract reference in the Purchase Order.
    I have done the following:
    1. Create a Contract.
    2. Create a Purchase Requisition
    3. Assign Requisition and Create Purchase Order using T Code ME57.
    4. Create Purchase Order
    Here in this case we could find references of both Contract & Purchase Requisition.
    I just want to know what Practice should we adopt / advise while creating Contract, Purchase Requisition. & Purchase Order?
    Regards,

    Hi,
    In ME51N Screen, enter Contract number in the "AGREEMENT" TAB and if more items in the contract, you can mention the item number in the next TAB to the AGREEMENT TAB and then proceed with creating PR by entering other details. This TAB you can find in the 4th column from extreme right end of PR screen.
    Regards,
    Biju K
    Edited by: Bijay Kumar Barik on Sep 10, 2009 2:23 PM

  • Purchase Requisition - Validate Cost Center

    Hi,
    I need to check the data when creating a Purchase Requisition with reference to an existing Purchase Requisition. Currently, I am using the user exit EXIT_SAPLMEREQ_005 to carry out these checks.
    One of the checks that I need to do is to validate Cost Center. However, in this user exit, there is no cost center found in any of the imported parameters. Hence, I tried to use the function module 'COBL_RECEIVE'. However, the Cost Center retrieved is not refreshed and is incorrect. Are there any other ways where I can retrieve the correct Cost Center that is populated from the reference Purchase Requisition?
    Will appreciate any help in resolving this issue.
    Thanks lots.
    Cheers,
    Liyan

    Hi
    use the BADI in SE18 Tcode
    ME_REQ_POSTED
    implement this and use
    the Method POSTED has the parameter IM_EBKN which has KOSTL field
    this will work
    see the sample code for this BADI
    BAdI Name: ZPUR_RFQ (Implementation name) Purchase Requisitions
    Definition Name: ME_REQ_POSTED
    Interface Name : IF_EX_ME_REQ_POSTED
    Implementing Class: ZCL_IM_PUR_REQ
    Method :            POSTED
    METHOD if_ex_me_req_posted~posted .
      TYPE-POOLS: pgrt.
      DATA: t_txpdat TYPE STANDARD TABLE OF txpdat.
      DATA: s_txpdat TYPE txpdat.
      DATA: t_ident  TYPE pgrt_t_obj_ident.
      DATA: s_ident  TYPE pgrt_obj_ident.
      DATA: ident_tmp TYPE eketkey.
      DATA: nmrid_init TYPE txpdat-nmrid.
      DATA t_obj_event TYPE pgrt_t_obj_event.
      DATA s_obj_event TYPE pgrt_obj_event.
      DATA t_event     TYPE pgrt_t_event.
      DATA s_event     TYPE pgrt_event.
      DATA change_yes  TYPE c.
        IF l_s_eban-estkz NE 'B'.
          CLEAR v_mtart.
          SELECT SINGLE  mtart INTO v_mtart FROM mara WHERE matnr = l_s_eban-matnr.
          IF v_mtart EQ 'ZERS' OR v_mtart EQ 'FHMI' OR v_mtart EQ 'UNBW'.
            MESSAGE e000(zm_msg) WITH 'You are not allowed' 'to create PR for stock items'.
          ENDIF.
        ENDIF.
        IF  l_s_eban-knttp NE 'F' OR l_s_eban-pstyp NE '9'.
          IF l_s_eban-knttp NE 'A'.
            IF ( l_s_eban-pstyp NE '9' AND l_s_eban-pstyp NE 'D' )  AND l_s_eban-matnr EQ space.
              MESSAGE e000(zm_msg) WITH 'You cannot create' 'a PR without material number'.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDMETHOD.
    reward points if useful
    regards
    Anji

  • 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

  • RFQ with reference to PR

    When I am creating RFQ with reference to Requisition- the inormation from requisition is not getting copied on to RFQ. What am I missing in config?
    Thanks
    Raj

    Hi,
    Try this -
    SPRO>Materials Management>Purchasing>RFQ/Quotation>Define Document Types
    Then, select the RFQ document type that you are using.  Then, select "Allowed Item categories node on the left.  Select the Item category that you are using in your RFQ.  If the one that you are trying to refer from PReq to RFQ doesn't exist here, make the new entry.  Then, select the item category and select the subnode Link purchase requisition - document type on the left.
    Do you see the combination of PReq document type and RFQ doc type that you are using? (with item categories)
    Regards

  • Purchase Requisition conversion into Purchase Order

    Hi,
    We are developing an intercompany process and we have a problem with the purchase requisition conversion.
    When we convert the PURCHASE REQUISITION into PURCHASE ORDER we need to mantain purchase requisition ITEM number/s.
    For example:
    PURCHASE REQUISITION: 10015720 / 50 / 60 ---> PURCHASE ORDER: 210515 / 50 / 60   
    We are trying to do it with some enhancements but we have not found any solution. Is posible to customize this requirement ?
    Thanks in advance.
    Regards,

    Hi Orion
    I suggest you to translate it to english before somebody feels awful. Orion's customer wants mantain a kind of register to trace or manage the traceability for this flow from SO to PO in a cross company scenario.
    If a understand you, you do this flow:
    SO from a customer not cross company-> request from this SO to other company cross company -> PO with ME59 (is the third part customer if I'm right)
    Do you check all flow in VBFA table? I suggest to see the SAP Note 627846 - AFS: Purchase order document flow for
    sales order incorrect, although it's so older, it gave me ideas in the past. I suggest you to avoid 'handle' the fields related with key fields (number of documents, number of items, and so on). Create reports or create customer tables and populate records for this trace. After, you can create lists for your customer to know about this traceability.
    If you are agree other possibilty is enhance SAP tables with customer fields and see them in the documents. There a lot of tools to do it (VOFM subroutines in the copy rules, BADI's and enhancemetns to see customer fields in new tabs in SO, PO and so on).
    I hope this helps you
    Regards
    Eduardo
    Edited by: E_Hinojosa on Sep 26, 2011 6:42 PM
    Edited by: E_Hinojosa on Sep 26, 2011 6:42 PM
    Edited by: E_Hinojosa on Sep 26, 2011 6:43 PM

  • Convert Purchase requisitions to Purchase order

    Hi,
    Need help. How can I Convert Purchase requisitions to Purchase order in one line (automatically created purchase requisitions in sales order), when I adopt purchase requisitions in delivery schedule tab it gives me an error: Requisition 10000###, item 000##, assigned to other order account? With normal purchase requisition it works.
    Thanks in advance

    Sorry,
    Again, pls. can somebody tell me is there any other way to convert purchase requisition items in one purchase order, it is logical that when you send a purchase order to a vendor to say I need 10 packages of paper and 10 of paper clip etc.. and to sum it in one line, because if it is same material it is unconvinient to devide it in several items like 1 package of paper, 3 package of paper, 3 package of paper, 3 package of papaer etc...because it is different purchase requisition but for same delivery date and same vendor...
    Thanks

  • Rounding Values while creating purchase requisitions using ME51N

    Hi MM Experts,
    I have created some materials with a Rounding Value maintained in MRP1 View of the material master.
    Whenever I raise a purchase order, the order quantity rounds off to the value maintained in the material master which is the correct functionality.
    But when i try to create a purchase requisition using ME51N, the rounding functionality doesn't work.
    Example: Rounding value (in MRP1 view) of a material is 25.
    The order quantity entered is 4. But before saving the PURCHASE ORDER the order quantity will be changed to 25(which is the rounding value). This is the correct functionality but doesn't happen with the PURCHASE REQUISITION (ME51N)
    Can someone guide me on how to make the rounding value work for purchase requisitions when using ME51N?
    Thanks in advance.
    cheers,
    Randi

    Hi!
    i had the same problem with a company.
    i did not find any customizing possibilities.
    I solved it with BAdI ME_PROCESS_REQ_CUST
    Method PROCESS_ITEM.
    I hope this helps
    Flo

Maybe you are looking for

  • Using 3rd party tags in JSF application

    I have a 3rd party tag library used previously in a Struts application to check if an user is authenticated / has logged in. The tag looks like this: <authn:authenticate userVarName="user" scope="session" errorPage="error.jsp" successPage="/faces/Pag

  • How do you change the grid spacing in the Piano Roll?

    I've looked all over, and can't find how to create more divisions for finer alignment of midi notes.

  • In Contacts if I enter a birthday.

    In Contacts if I enter a birthday it automatically registers that birthday in Calendar. Is there a way to also have Anniversaries saved in the Calendar? I do not want to have multiple contacts for the one person just so I can add their anniversary an

  • Read transaction log

    hello, I have seen that a user is using too much ressources on my exchange server 2010 (used Exmon to get the user) the point is, i do not know whats going on. I see on each log file on the server that is name is coming a lot of time, but the file is

  • Call manager and type of Voip phones

    Just wanted to thank everyone for the help. My background is Telepresence and minimal on Call Manager 8. Just wanted to ask if I can somehow pull a list of all type of phones connected to the call manager - we currently have 7942 and 7975. I need the