BAPI to create Purchase Requisition

Hi Experts,
I´m looking for a BAPI to create a Purchase Requisition (Tx ME51)
Hope you can help me!!
Regards,
MC.

Hello,
Check this.
  call function 'BAPI_REQUISITION_CREATE'
       exporting
            skip_items_with_error          = 'X'
       importing
            number                         = h_banfn
       tables
            requisition_items              = req_item
            requisition_account_assignment = req_acct
            requisition_item_text          = req_text
            return                         = return
       exceptions
            others                         = 0.
Vasanth

Similar Messages

  • BAPI to create Purchase Requisition for selective BOM Material

    Dear Experts,
    I need ur help, Actually I am developing a module Pool prg to create Purchase Requisition for selective Bom Material .
    Actually, standard T.Code (ME21N) create PR for a multiple BOM Materia lwhich are used to create a prepared material. But my requirement is PR should be generate for selective BOM material .
    Multiple BOM Material is used to prepared a complete Material .
    I have checked a particular BOM Material, for this matrial Purchase Requisition should be genrate.
    Please suggest me the related code and Bapi which helps me .
    Thanks & Regards,
    Swapnika

    Hi
    you can Use BAPI   BAPI_REQUISITION_CREATE
    Hope Its  help You.
    Regards
    Ajit

  • Problem with bapi to create purchase requisition

    I got a requirement that to upload details of procurement into Z table with a temporary PR. Could u please suggest the procedure or bapi to upload datainto Z table.
    Regards

    Hi all
    For above requirement i am suppose to develop a FM which upload the data from front end to DB. Forthat I am taking following steps is it ok or not suggest me.
    1.call function module bapi_pr_create
    2.fill local structure with bapi structure if PR number is created.
    3.update data into Z table
    Regards

  • A proxy and in that proxy we will call the BAPI for creating Purchase Requi

    HI all,
    I am explaining a situation please resolve if possible.
    I got source data to create purchase requisition .  the source data was not cleaned and requires lot of validations and crossmapping with actual sap tables . I did it for testing and used bapi ( bapi_requsition_create) and was able to test the data to create a pr in sap. but now as per the instructions from my onsite co-ordinator , they told thy will use  a proxy( in place of idoc) and in that we will call bapi to create purchase requisition in sap. please explain about what kind of proxy it may be and how we call bapi in it . thanx in adv..

    HI all,
    I am explaining a situation please resolve if possible.
    I got source data to create purchase requisition .  the source data was not cleaned and requires lot of validations and crossmapping with actual sap tables . I did it for testing and used bapi ( bapi_requsition_create) and was able to test the data to create a pr in sap. but now as per the instructions from my onsite co-ordinator , they told thy will use  a proxy( in place of idoc) and in that we will call bapi to create purchase requisition in sap. please explain about what kind of proxy it may be and how we call bapi in it . thanx in adv..

  • Creating purchase requisitions instead of planned orders after MRP run in MDBT

    When running regenerative planning in MDBT for plant with following details ,The system has to provides planned orders for the materials .
    Processing key:NEUPL
    Create Purchase requisition :3
    Schedule lines:3
    Create MRP list:1
    Planning Mode:1
    Scheduling :1
    But sometimes it provides purchase requisitions for certain materials.The problem happens for different materials at different times.
    I checked the material master and found that procurement type is external procurement.Business need to create planned order for the materials and then want to convert it to purchase requisition.
    MRP group is assigned to the materials but no creation indicator maintained for the MRP group.
    Please tell me why this run creates purchase requisitions suddenly and in the next run it disappears?

    Hello
    Maybe someonelse is running MRP in another transaction, such as MD02, with a different parameter. Check on transaction MD05 when was the last MRP execution and the user that ran it.
    Also check if there is any active implementation of BAdI MD_MRP_PARAMETERS.
    If you don't have a cretion indicator, maybe it would be useful to set it for your MRP group, with the parameter 3, in order to make sure that planned orders will be created.
    BR
    Caetano

  • How To Restrict Users To Only Create Purchase Requisitions with Item Catalog?

    Hi, everyone 
    Please help me, 
    How To Restrict Users To Only Create Purchase Requisitions with Item Catalog? is it possible? 
    Regards,   Manuel

    Hi Steenie Norman
    First click on the text item ---> Tools ---> Property Pallete ---->
    and change the Keyboard State to Local Only also this Depend in your OS
    hope this useful ....
    Regards
    Mohammed

  • IW31-Create Purchase Requisition automatically from PM order - Release 5.0

    Dear Experts,
    Currently we are working in the 4.6C Release but we are doing the migration for 5.0. In PM, in the 4.6C release when we
    create a PM Order in tcode IW31 we select a component and the system shows us the screen to inform the quantity and
    automatically the system shows us a  screen to Create Purchase Requisition where we can fill or select some fields.
    However, when we create a PM order in the  5.0 using the same tcode, the same material type, the system creates
    automatically the Purchase Requisition without to show us the screen to fill or select the fieds. I´ve checked the customizing
    comparing the systems but I couldn´t find something.
    I was wondering If you could help me with this issue?
    If my comments are not enough to understand me, please let me know...
    BR
    Valdevair

    Dear friend,
    Do check configuration node at
    plantmaintenance and custonmer service - maintenance and service processing -maintenance and service orders - functions and settings for order types - define change documents,collective pur.requisitionsindicator,operation no.interval
    here for your order type and plant  , check whether generation of PURCGHASE REQUISITION from maintenance order settings.
    there will be three options
    1) never
    2) from release
    3) immediatly.
    hipe this will help you.
    Regards,
    pardhu

  • Make item to create Purchase Requisition and Work Order

    I have a requirement for a Make item to create Back to Back Purchase Order from Sales Order. At the same time, need to create Work Order from Sales Order for the same item. I have done all setups for Back to Back order and able to create Purchase Requisition from Sales Order line. But how to create Work Order. What are the setups to achieve this? Thanks

    Ajith_Kz; Consultant wrote:
    I have a requirement for a Make item to create Back to Back Purchase Order from Sales Order. At the same time, need to create Work Order from Sales Order for the same item. I have done all setups for Back to Back order and able to create Purchase Requisition from Sales Order line. But how to create Work Order. What are the setups to achieve this? ThanksI guess it can't be done..when u say u created a purchase req?i was just wondering how did the system let u to create a POR when you say it is a make item?
    HTH
    Mahendra

  • While creating Purchase Requisition we need to send a mail for approvers

    Hi All,
    While creating Purchase requisition we need to send a mail to approvers.
    Dowe  need to create Function module ?
    if You know the steps can you please give me the steps.
    Thanks In advance
    Sriman.

    Hi Sriman
    Here we can try for 2 approach
    one is workflow and other his sending emails via user exit.
    I am not much aware about workflow, but you can explore for user exit.
    Try for enhancement component 'MEREQ001'.
    let me know, if you need further help
    Regards
    MD

  • Creating Purchase Requisitions from within PS (ie from network)

    When creating purchase requisitions from within Projects Systems (ie activating them from a network) is there a "standard" way to put a cost center on the Purchase Requisition?  Currently no cost center is put on the account assignment.  We are looking at doing a custom field on the network header to hold the cost center and then a user exit to take this cost center and put it on the purchase requisition (and reservations) but before we go to all this trouble thought maybe I should check to see if I am missing something obvious?  Is there a more straight-forward way to accomplish this?  We know that we cannot edit the account assignment in ME52N becuase the PR originates from the network and therefore can only be changed from the network.
    Any input welcome.  Thanks.

    Dear Laura,
    When you will create Purchase Requistion through Network, system automatically takes account assignment category as "N" i.e Network. This you can not change in ME52N transaction.
    So this is a standard practise for generating Purchase Requistion through Network in PS Module.
    As you said putting Cost Center in Network Header as a Account Assignment Category which will go up to PO creation by using some User Exit which will not be possible in PS Module as per my knowledge is concern.
    But you want to keep Cost Center as as a Account Assignement Category you need to create manual Purchase Requisition through ME51N transaction.
    Hoping this will be useful to you.
    Regards,
    Sandeep

  • BAPI to reject purchase requisition

    Dear All,
    Iu2019m looking forward a BAPI to reject purchase requisition. I found below BAPIs for purchase requisition but I couldn't  find any BAPI to reject requisition? I wonder whether a BAPI exists to reject purchase requisition or not. Thanks in advance.
    - BAPI_REQUISITION_RELEASE
    - BAPI_REQUISITION_RELEASE_GEN
    - BAPI_REQUISITION_RESET_RELEASE
    - BAPI_REQUISITION_RESET_REL_GEN
    - BAPI_REQUISITION_CHANGE
    - BAPI_REQUISITION_CREATE
    - BAPI_REQUISITION_DELETE
    - BAPI_REQUISITION_GETDETAIL
    - BAPI_REQUISITION_GETITEMS
    - BAPI_REQUISITION_GETITEMSREL
    - BAPI_REQUISITION_GETRELINFO

    aarioglu,
    I am facing to the same problem.
    Did you solve it?
    Thanks in advance.
    Felipe Fernandes

  • What program in SAP SD automatically creates Purchase requisition

    What program in SAP SD automatically creates Purchase requisition, and also please tell me the user exit that we can use to change the delivery address automatically from plant address to ship-to address during purchase requisition creation time...
    Your help will be appreciated.
    Thanks,

    Hi,
    The control to Create the PURCHASE REQUISITION is in the SCHEDULE LINE CATEGORY VOV6
    The Purchase requisition will be created  automatically for the THIRD PARTY and INDIVIDUAL PURCHASE ORDERS
    The field in VOV6 
    ORDER TYPE
    ITEM CATEGORY
    ACCOUNT ASSIGNMENT
    Will determine the  Document type for creating the Purchase requisition
    IFor both THIRD PARTY & INDIVIDUAL PURCHASE ORDER the standard Purchase requsition document type is NB and
    ITEM CATEGORY  5 will determine whether it is  third party or Individual PO.
    Hope it is clear,
    Please revert back if you need more details
    regards,
    santosh

  • Error while creating purchase requisition

    Hello
    I am getting following error when I try to create Purchase Requisition
    u201CField selection PT4B not definedu201D
    Cant progress any further due to the error
    Regards,
    sudhir

    Hi
    First Do you Have  created any new field selection for PR document types?
    IF not check your PR document type is attached with which field selection in Puchasing -> purchase requisition -> define document types -> check your document type and field selection. Is it PT4B?
    PT4B is not available then assign correct one in customization.
    If it is then check the settings for fields selection in purchasing -> PR - screen layout at document level -> field selection PT4B.
    Regards

  • Creating Purchase Requisition Automatically

    Hi all,
    Is there any way to create "Purchase Requisition"  (trcodeME51) automatically when create sales order(trcodeVA01) ? At ME51 screen required entries will be written by reference of screen VA01.
    Thanks&Regards

    in the functionality of schd.line cat. enter 'NB' in Item Category field.this would trigger the creation of purchase requisition automatically.

  • WHILE CREATING PURCHASE REQUISITION,THE AVAILABILITY CHECK FOR THE MATERIAL

    dear Friends,
    our users want to  WHILE CREATING PURCHASE REQUISITION,THE AVAILABILITY CHECK FOR THE MATERIAL SHOULD BE ENABLE,
    at present we maintaing KP in Material Master.  if we activated what will happen?
    please advice.
    with regards,
    Rajesh G

    Hi,
    The availability check is generally used for goods movements(GR,GI,reservation) & not for PRs.
    Regards,
    Vijay

Maybe you are looking for

  • IPad cuts out and stutters on AirPlay music but iPhone does not?!

    Hi folks, hope you can help with this problem, it's a little weird. I bought an Apple TV a few days ago and have been enjoying streaming music from my apple devices onto the hifi system connected to the TV.  It works great except for one particular u

  • Unable to Connect to iTunes Store for Apple TV Purchases

    For the past 2 days I have been unable to make purchases from the iTunes store with Apple TV. I get the message "Unable to connect to iTunes Store. Temporarily unavailable. Try again later."  Despite this message, I have a valid internet connection a

  • Calendar app icon is stuck on date of upgrade

    Since upgrading on Saturday to Yosemite, the calendar app icon is stuck on Saturdays date (8 NOV), but if I open the calendar the correct date is highlighted (Nov 11).   I have tried quitting and restarting calendar but that doesn't do anything   Oh

  • Finder crashing when in Cover Flow view

    I installed Leopard a few days ago and have noticed that whenever Finder is on Cover Flow view, it crashes and restarts. This happens at least 50% of the time but only in this view mode. In the other 3 view modes, it is stable. Has anyone else experi

  • System performance measurements

    I just finished the snow leopard upgrade without a hitch. While my macbook pro appears to be slightly faster I would like to see some numbers. I have looked around and I can not find any information on memory utilization. As simple as it sounds I wou