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

Similar Messages

  • Purchase Requisition for Order BOM components ?

    Dear Members :
    Can I generate purchase requisition for Order BOM components from VA01 ? Mine is TAQ - the header itm cat and TAE for sub-items (finished prod) . While navigating within Sales Order and branching to a particular component's shced. line - the pruch req col is blank. The schedule line cat for the sub-item is CT.
    Could someone please explain the configuration steps I need to maintain for the above ? What I am expecting is when I save the Sales Order it should create Purch Req for the components which do not have enough stock.
    Thanks
    Atanu

    Hi :
    Thanks for your advice. Couple of things :
    1. In my system in auto acc assignment, I already have consumption acc under posting key GBB. Now I am getting error in VA01 - which states that "The system was not able to determn a consumption acc for purchase order item with acc assignment" and also suggesting to address "GBB posting key". I made the following changes for CT :
        movt : 101
        order type : NB
        item cat : 0
        acc assignment cat : F/C
    2. Obviously SAP is expecting a consumption GL acc, which though is there under GBB-AUF from my existing setup. For generating purch req this is strange becoz I haven't yet gone upto PO generation step nor released the supposed to be Purch Req.  for BOM component - and this is before I save the Sales Order .
    3. In spro->acc grouping for mov type; I don't see the following combination in SAP  ie,
    101(MvT) - B (MvT) - GBB (TEKey) - AUF. I need B instead of F which is already there and is for production order but the BOM comp has to be for PO but the combination is not there.
    Do you think this could be the reason that SAP couldn't find the GL acc ?
    4. Also my purpose was not just to raise a purch req every time the sales order is created for the BOM components - only if there is shortage in stock - but then again for CT once I assign the above, it doesn't allow to check the boxes like Availbility , Requrmnt etc. (??)
    Am I clear and could you please suggest me what I am missing or doing wrong ? What movement type do you siggest to enter in CT fields.
    Thanks so much for your time.
    Atanu

  • How to create Purchase order for non valuated material with fright charges

    Dear Guru,
    When i have creating purchase order for non valuated material then GR non valuated tab should be in display mode.And how to load fright charges.
    Regards,
    Abhijit

    hi,
    while creating the PO, u have the option FREE indicator in the right corner of the line item.(u can have separate Valuation type for the same, for valuation purpose)
    even u can create the UNBW material type.
    check the material type customization in oms2
    hope will get the clarity

  • Purchase Requisition for non valuated material

    Hi,
    We have defined a material as non valuated in ECC, we are doing planning vfor the material in APO and generating Purchase Requisition on vendor for the material. Now the issue is that we are not able to CIF the Purchase requisition to ECC and system is giving account assignment error.
    For the same plant vendor locatio n combination Purchase requisition is getting CIFed for valuated material.
    Canm anyone please help regarvding how to CIF purchase requistion for non valuated material from APO to ECC.
    Thanks & Regards,
    Sanjog Mi shrikotkar

    Hi Sanjog
    Agreed : the material is non valuated so we have not extended accounting view for the material, also we cannot allow financial posting for non valuated material.
    But  an accounting view is required for a material, no matter whether it is a valuated or a non valuated material
    I am sorry about not being able to transmit any positive reply to you, i am not aware of other way of getting it
    Best Regards
    Vinod

  • 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

  • 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

  • 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

  • Batch job not creating purchase requisitions

    I have a batch job that runs every day at 5 pm.  The point of this job is to run the MRP and create purchase requisitions for materials that have more demand than current supply.
    Programs ran within the jobu2026
    RWPOB001
    RVV50R10C
    RMMRP000
    My problem...
    Purchase Requisitions are not being created for random materials after the batch job has been ran.  When the MRP is run by itself (MD01), ALL materials will have purchase requisitions created for them without fail.  There is no order to it, and no one has kept track of any material numbers that have not had purchase requisitions created, so I cannot check the configuration.
    How I would like to investigateu2026
    1 u2013 Obtain a list of ALL purchase requisitions created in the timeframe AFTER the batch job has been ran
    2 u2013 Export this list into Excel
    3 u2013 Run the MRP manually to create purchase requisitions for ALL materials
    4 u2013 Obtain new list of ALL purchase requisitions created in the timeframe AFTER the MRP was manually ran
    5 u2013 Export this list into Excel
    6 u2013 Compare both lists; remove duplicates, display materials and requisitions that were created AFTER the batch job missed them.
    How would I go about getting a full list of purchase requisitions that have been created within the time frame the batch job has been ran, then export them into excel?  I understand that ME5A is the standard transaction for displaying lists of purchase requisitions, but how would I go about pulling all purchase reqs CREATED within a certain time period?
    Please, include specific SAP transactions and details in your answers.
    Also, if anyone has any good advice regarding how to get to the bottom of this specific issue, Iu2019m open to suggestions.  All good suggestions will be rewarded promptly.

    Cameron Lawrence Dunbar wrote:
    >
    > You mention that RMMRP000 should be ran before requirements planning.  Is it possible that our positioning of the program at the end of the job is causing these issues?  Or is it most likely the varient/parameters of one of these programs?
    >
    > Also, how can I display a list of purchase requisitions CREATED over a certain period of time?
    No, I did not say that RMMRP000 should be ran before requirements planning. I said it is the requirments planning. So you just run it twice if you execute it with MD01 again after this job.
    Running it twice should not end in different results if it is run with the same paramters (selection variants)
    As you are saying you get different results, I think you are running it actually with different entries in the selection screen.
    So you need to compare both selection screens. MD01 is obvious as you see it directly.
    Compare it with the selection variant of the batch job, that you can display  via the menu after you displayed the job in SM35
    ME5A transaction can give you a list of requisitions. alternative you can just use SE16 at table EBAN.
    Edited by: Jürgen L. on Apr 25, 2011 9:08 PM

  • Planned Order and Purchase Requisition for total Plan

    HI
    As per my client requirement whenever i am giving a plan in Demand Management in MD61 say for quantity 100. System should create purchase requisition for quantity 40 and Planned Order of 60.
    Please let me know if it is possible.
    Regards,
    Anand

    HI
    Thanks a lot. Its working with quota arrangement.
    Regards,
    Anand.

  • LOGIC FOR CREATING Purchase Order FOR repective Purchase Requisiton URGENT

    hi all,
    guys i have got all the purchase requisition for the materials  from EBAN table.
    now i have to create the PURCHASE ORDER  for these PURCHASE REQUISITIONS.
    so how should i proceed.
    what logic i should use to create the PO for These PR.
    if anyone of u have any code regd this requirement then plz share it with me.
    its very urgent, i have to deliver it by today evening.
    plz help me .
    i will award ur efforts.
    Thanks
    Sanjeev

    hi,
    Automatic Conversion of PR to PO
    You created purchase requisition for various material. During creation of purchase order you used the following path:
    Purchase Requisition
    .......Follow on function 
    .........Create Purchase Order
    ............automatic via purReq. 
    When you mentioned required purchase requisition number and execute, system give error that purchase requisition does not contain any suitable item. 
    Is there any setting in customization where you can monitor and use that function.
    In an effort for you to successfully use the Transaction Code ME59 to automatically convert the current PR into PO, then the following criteria should be met: 
    1) In the Purchasing View of the material master data, the "Autom. PO" field must be clicked; 
    2) In the Purchasing View of the Vendor Master Data, the "Automatic Purchase Order" field must be clicked; 
    3) The Outline Agreement or Purchasing Info Record shall be maintained which will allow the automatic copying of unit price and other conditions into PO; 
    4) The Source List shall be maintained for the nominated vendor which was shown in either the Outline Agreement or Purchasing Info Record. 
    or 
    it might be PR subject to release strategy and not yet released
    or 
    If you're not using a source list or automatic creation of PO, you may need to assign the requisition to a purchase information record using transaction ME56. Then it should appear in ME58. 
    reward points to helpful answers.
    rgds

  • MRP - Single Purchase requisition for multiple Items

    Hi
    We have recently introduced MRP module in SAP .In some specific scaeanrios , we want to create a single Purchase Requisition for multiple items .Standard SAP generate different Purchase requisition for each item
    Is there any way out

    Sandeep,
    This topic has been covered numerous times in this forum and in the MM forum.  You evidently have not used the search feature.  There are thousands of posts in these forums, and the search function will be very helpful for you in future questions.
    To answer your question, No, nothing is available to make standard SAP MRP create Purchase requisitions for multiple items.
    Most companies address this issue during the conversion of Purchase Requisitions to Purchase orders.  During this process, you can add many items to a single purchase order.
    Rgds,
    DB49

  • MRP creating additional purchase requisitions for the existing sales order

    Hi,
    We have scenario where we switch materials from POD material to ARP material. POD material is just like make to procurement which creates purchase requisition and purchase order upon saving the sales order. ARP (Auto replenishment) material creates purchase requisition based on sales order and re-order point while running MRP.
    When the material is POD title, it created purchase requisition and purchase order (example: 4500000110) while saving the sales order (example: 1000000010) for the quantity 10. After some time this material is switched to ARP and it has open sales order (1000000010) and purchase order (4500000110).
    We have special MRP run for ARP materials based on MRP type, which creates purchase requisition.. What is happening is when we run MRP; it is creating new purchase requisition for the old sales order (1000000010) for the quantity 10. But old sales order (1000000010) is already having purchase order (4500000110) to fulfill. So we donu2019t want to create new purchase requisition for the old sales orders. It should create purchase requisition only for new sales orders.
    Please advise
    Thanks in advance
    Srinivas

    Mangesh,
    If the components are Inhouse production then you can think of using collective orders by assigning special procurement key 52. If raw material exists then your requirement cannot be met..as i think your scenario is of assembly processing. The idea of assembly processing is that component materials will always be available and only assembly will be done based on Sale Order.
    Regards,
    Prasobh

  • How to create a Purchase Requisition for a material component in WBS or NW?

    Hello All,
    I have created a project with the following structure:
    Project Defination (Construction of Sub station)
          Main WBS
                   Level 1 WBS
                             Level 2 WBS
                                       Network for level 2 WBS
                                                      Activity  (Procuring Material)
                                                                 Material Component - MATXXX (Stock Item)
    Now in the above structure i have a activity where in i am procuring all the materails required to construct a Substation.
    So under this activity i have assigned all the materials which are needed to build Substaion.
    After i change the status of the project to release, there  a reservation created for the quantity of the material which i have mentioned in the material component under the activity.
    Now my querey is, how should i create a Purchase requisition for the reserved materail quantity in order to bring in the stock against the WBS / network / Project ?
    Awaiting your reply.
    Thanks and Regards,
    Sudarshan.

    Hi Sudarshan,
    In your case you can run Me5J to check the list of PR created against your project.
    Then Create PO and similarly you can check list of PO in Me2J.
    Then followed by GR and check if any GR release exist in MIGO. Then once after doing GR you can check the Material in Stock which will move material from Unrestricted stock to Project Stock which you can check it in MMBE.
    Then you can do the Good Issue in MIGO itself and run MIRO to complete the cycle.
    Regards'
    syed

  • 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

  • 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

  • Macbook Pro Freezing, Can't back up files either to external hard drive either..

    Hi, I'm not entirely sure what happened but my Macbook Pro, (Lion/Mac OS X 10.7.5) just started to freeze a lot. I can hardly browse the web or sometimes browse folders. In some ocassions its even difficult to  check the Activity monitor or go to Dis

  • In Adobe forms - the space between items more

    Hi Experts, While displaying the ouput through adobe forms , the space between the items is more. Please suggest me how to reduce the blanklines inbetween the items. Even I made the subform content as 'FLOWED' and also in context for some fields i ad

  • How to run Test Configuration in XI

    Dear all experts, I am new in SAP Netweaver and I am trying to get certify my products. Thus, I have some questions and appreciate you can help to clear my doubts below. 1. I have finished configuration in XI, but when I try to run Test Configuration

  • Where is the Apple Photos library to import into LR6 - it's seemingly vanished...

    On my Mac, in import sources on LR6, there is no Photos option to select.  I had Aperture, then imported this library into Photos a few week back.  Hated Photos and now wish to use LR6.  But no Photos library to be found to import...Any ideas?

  • H264 HD Color Shift

    I've searched the forums and found some references to something similar having to do with h264's encoding for HD and SD differently with rec601 and rec709 (http://forums.adobe.com/thread/769015) but we seem to have the opposite problem where outputti