Auto creation of purchase orders in background

Hi,
Can anyone help me with auto creation of purchase orders in background while saving production order as in standard sap only purchase requisition is getting created.

Hi,
Yes according to standar SAP only requisitions get created while saving production order ..........if you want to have Purchase order also to be created you can approch this way...
1.     use exit PPCO0001
2.     fm EXIT_SAPLCOBT_001
create a background job id in SM36 .....call the methof for external event triggering
CALL METHOD cl_batch_event=>raise
    EXPORTING
      i_eventid                      = 'ZME59'
      I_EVENTPARM                     = V_MANDT
    EXCEPTIONS
      excpt_raise_failed             = 1
      excpt_server_accepts_no_events = 2
      excpt_raise_forbidden          = 3
      excpt_unknown_event            = 4
      excpt_no_authority             = 5
      OTHERS                         = 6.
Thanks,
Shailaja Ainala.

Similar Messages

  • Auto creation of Purchase order by heuristic

    Hello Experts,
    In my project, Heuristic is creating "Purchase orders" automatically, which should have been created by planners only.
    Sometimes, it creates it without even creating "Purchase requisitions" and sometimes with PurReq.
    Has any one faced similar kind of issue earlier ?
    Thanks.

    Hi Pratiksha,
    SNP Heuristics cannot create Purchase orders. It can only create purchase requisitions, or planned orders (in case of production).
    Unless you are using Deployment or TLB and convert the Purchase Requisition to Purchase Order with the same, you should not be getting Purchase Orders from APO. (Assuming you don't use PPDS - I don't know much about PPDS aspect)
    If the supply is not sufficient to meet the demand, then Heuristics would create the receipts to meet the demand as per your settings. This is the expected behaviour.
    Could you please explain if you have a different expectation of the behaviour?
    For whatever Purchase requisitions/Purchase Orders you have the doubt that they are created by APO, go to ME23N in R/3 and see in the changes from the menu path Environment-> Header changes (or item changes). This could give you some information.
    Also, for purchase Order the header itself gives information on who created the PO.
    For purchase requisition, you could select an item and click on the tab "contact person" to find out who created the PReq.
    This could help you in cross-checking whether the PO/Preq was indeed created by APO or by someone in R/3 itself.
    Thanks - Pawan

  • Automaticf creation of purchase order through pr

    Dear Consultants,
    system is not creating automatic  purchase order. in me59n i am getting the following error
    Requisition could not be converted
    i have done the following setting for automatic creation of purchase order
    1. in materil master record i have checked auto po.
    2. in vendor master record i have checked automatic purchase order
    3. i have created purchase info record with the combination of material vendor purchase organization.
    4. in source list i have fixed the vendor in me01
    5. in source determination under define regular vendor i have checked the box against the required plant.
    kindly let me know what all other configurations are required for creating automatic purchase order through purchase requisition
    Regards/ Siri

    Hi
    Is this purchase requisition created during MRP run??
    If yes then have you marked the sourcelist record for this vendor as MRP relevant??
    If the purchase requisition is generated manually then whether the source of supply was assigned in the PR??
    In ME59N, the PR would be converted to PO if the PR has the assigned source of supply.
    Regards
    Prasad

  • Automatic creation of purchase orders at goods receipts

    Dear guru ,
    I want to create purchase order when i execute GR Returns (mvt 161).
    Where I define the purchase order document type that I want to automatic create ?
    Thanks.

    Dear,
    Before configuration of setting for creation of Purchase Order automatically, consultant needs to under stand the business requirement and he should be aware of the difference between the different components of Material Management. Such as difference between creation of purchase order automatically in Purchasing and creation of purchase order automatically in Inventory Management. In SAP we can take this activity in both the sub components (Purchasing as well as in Inventory Management).
    By this time, I hope that you have understood that there are different settings for each of these components and we have to configure two different set of information to meet each requirement separately. Hence let me define this activity as follows:
    Create Purchase Order Automatically in Purchasing
    For creation of purchase Order automatically from Purchase Requisitions we need to do the following additional settings in addition to our standard ones.
    Activate u2018auto PO' indicator for material master
    Activate u2018auto PO' indicator for vendor master
    Create Purchase Requisitions using T Code ME51 or ME51N
    Use T. Code ME59 or ME59N for auto conversion of PR into purchase order
    Create Purchase Order Automatically in Inventory Management
    For creation of purchase Order automatically in Inventory Management we need to do the following settings which are independent of the setting what we do in Purchasing for creation of automatic PO from PR.
    Define one of the purchase organizations as Standard Purchase Organization
    Assign your plant to Standard Purchase Organization
    Maintain purchasing information record with price
    Maintain the indicator for movement types 101 & 161
    Define Default Values (MB01) for Document Type
    Now you can enter a goods receipt without entering the purchase order number, a purchase order will be created automatically when you post the goods receipt. All such goods receipt will be valuated at the price maintained in the purchasing information record.
    First you can try this with T. Code MB01 if it is working then try with T. Code MIGO, if you face any error or functionality is not working check with your basis consultant some authorization or some patches may be missing. Ask him to apply all relevant patches.
    Try using automatic PO for 161 movement for transaction MB01. For MIGO Goods return, its not allowed to create automatic PO due to system settings. This info as I know.
    Regards,
    Syed Hussain.

  • Regularly auto creation of sales order

    Hi All,
    Is it possible to define or set auto creation of sales order ? e.g. there 2000 customers that every biweekly Monday will have sales orders created automatically by system, so the user just only see and copy to delivery or A/R invoice. TIA
    Rgd,
    Mark

    This can be performed if you use activity management and set sales quotation as a linked document. use one sales quotation but contains multiples row line of items that have different delivery dates can make it possible, but only as reminder, to create sales order,.although manually, you just use copy to and the add the SO. You could also develop addon to make SBO auto creation of sales order.
    Rgds,

  • Creation Of purchase order

    I want to create purchase orders using LSMW. But i am unaware of standard object or BAPI to do the same. I got it in the list present in LSMW but i am unable to use them..getting errors.So can anybody tell me process for creation of purchase order using LSMW?

    Check this thread.
    LSMW For T-code ME21N
    Regards,
    Maha

  • Creation of Purchase order - set net price in display mode

    Hello,
    During the creation of purchase order from contract or DA (ME21N-ME59N),  I want to set the net price in display mode (under any conditions) .
    Is there a parameter setting or a point of modification to make ithis?
    Thanks for your contribution.
    JLC

    Check for existing screen layout name from below settings -
    Goto SPRO -> IMG Settings -> Materials Management -> Purchasing -> Purchase Order -> Define Document Types
    Check for Field selection key against the PO Type.
    Then goto below setting -
    SPRO -> IMG Settings -> Materials Management -> Purchasing -> Purchase Order -> Define screen layout at document level
    Select the screen layout / Field selection key in this setting and modify the field selection group Quantity and price. Make Price and price unit as display only as per your requirement.

  • Authority check on Creation of Purchase order usin badi BBP_ITEM_CHECK_BADI

    hi all,
    i have to apply authority checks on creation of Purchase order and shopping cart in SRM using badi BBP_ITEM_CHECK_BADI.
    i have applied checks on creation of shopping cart   using this badi which have some filters but how to apply on purchasing order using BBP_ITEM_CHECK_BADI.

    hi,
      You can use the BBP_DOC_CHECK_BADI.
    BR,
    Disha.
    Pls rewar points for useful answers.

  • Creation of  purchase order automatically  by taking  purchase requesition

    Hello Gurus
    Is it possible to create purchase order  automatically  by taking purchase  requesition  no from  sales order?
    i checked in all the  forms  couldn't find  any answer .
    thank you  in advance
    regards
    venkat

    Hi Venkat,
    When you save a sales order that contains one or more third-party items, the system automatically creates a purchase requisition in Purchasing. Each third-party item in a sales order automatically generates a corresponding purchase requisition item. During creation of the requisition, the system automatically determines a vendor for each requisition item. If a sales order item has more than one schedule line, the system creates a purchase requisition item for each schedule line.
    Purchase orders are created from purchase requisitions in the usual way. But If you want the Purchase orders to be created automatically, then you should automate the creation of purchase order by creating a job or using workflow. Other wise to create a PO from PR use ME57. A third-party order is usually created referencing a third-party item in a purchase requisition. You can create purchase orders in this way individually or collectively. For Configuring Automatic PO kINDLY PLEASE LOOK into this.
    "http://help.sap.com/saphelp_47x200/helpdata/en/94/da2e3b2bdab96be10000000a114084/frameset.htm"
    Kindly please let me know If you need any more information on this.
    Regards,
    Ram Pedarla

  • Auto Deletion of Purchase Orders

    Hello
    Is anyone aware if there is a process available for auto delettion of purchase orders which have not been goods receipted within a given time frame
    Cheers
    Prakash

    Hi,
    As far as I know, there is no automatic report for deletion of purchase orders. Document deletion should be done manually, since it requires the user acknowledgment.
    Kind regards,
    Ricardo

  • Automatically creation of Purchase Order from MRP

    Material type = ROH (raw material)
    In MRP1 I have mentioned
    1. RP type =VB ( manual reorder point planning)
    2.Reorder point = 1000
    3.Lot size =FX (fixed order quantity)
    4. Fixed lot size = 300
    In purchasing I have checked the automatic P.O. option
    I have created a source list for the material and fixed the vendor for the material
    Quantiy of the material in stock = 0
    But Purchase Order is nor automatically generated during the MRP run ( MD03)
    IS there any step missing ? please suggest if any .
    Thanks in advance .

    Hi,
    As others suggested standrad SAP will not create PO as output of MRP.
    You need to check why you need AUTO FUNCTION.however you can use T code ME59n to create auto PO from Preqs.
    About AUTO PO
    One example is that while  taking delivery of the raw materials which are delivered by trucks and since it is not possible to capture the actual receipted quantity at the time of PO creation.
    To create AUTO PO
    Check in customizing whether you have maintained creation of automatic PO during good receipt.
    Menu path : MM -> Inventory Management -> Goods Receipt -> Create Purchase order Automatically -> Activate Auto PO creation for Mvt type and then activate Auto PO creation in vendor master.
    Hope this helps.
    SCMBEE

  • Automatic creation of Purchase Order from Sales Order

    Hi,
    please is it possible to know the use of flag "Create PO automatically" into Sales Order Item Category customizing setting? Perhaps automatic creation of PO for Third Party sales process.
    Thank you very much
    Kind Reards
    Andrea

    Hi friend,
    You are right that chekbox is used for third party only. And it will be used when you are using ALE when you have distributed system where your sales order is supposed to be created in different system and PO will be raised in different system.
    If you activate this field, the system automatically generates both a purchase order requisition for third-party schedule lines as well as a purchase order in the background when you save the sales order. This function has been designed for Application Link Enabling (ALE) but you can also use it when working with distributed systems.
    To avoid errors caused by incorrect system settings, we recommend that you carry out the SAPEVENT OCU_LINK\DS:TRAN.BD86 for your third-party material. If you SAPEVENT OCU_LINK\DS:TRAN.PFTS tasks 8097 (create)and 8114 (change) (by choosing "Extras -> Employee assignment -> Maintain"), you will receive workflow objects in your inbox, should any errors occur.

  • How to retrieve the vendor number during creation of Purchase Order?

    Dear SAP experts,
    For our Purchase Orders, during PO creation (t-code ME21 or ME21N) we want to achieve the following:-
    1) default the delivery address to our plant A address if the vendor is local and
    2) default the delivery address to our plant B address if the vendor is foreign.
    At the moment, we are trying to use the user exit enhancement "MMDA0001" to achieve the above.
    The problem is how to retrieve the vendor number from the screen so we could pass the vendor number to ZXM06U32 to check the ktokk field in LFA1 table in the whether the vendor is foreign or local.
    Thank you in advance.
    Regards,
    Alex

    u can do one thing, create 2 partner function, like 1 for local, and second for import vendor.
    or make 2 batch  n activate vendor batch and make mandatory field from SPRO. 
    then goto SHD0, and do one by one step. first time take 1st requirement and second time take second . like that make two variant .
    i dont know how much it will be helpful. bt i want to suggest smth like that only.
    or, go for ABAPER help
    thanks
    nisha

  • Sales order -  automatic creation of purchase order - problem on Credit Che

    Hello,
    We have a problem in sales order.
    For one item, we have an automatic creation of Purchase requisation, but we have to give manually the price in the purchase requisition.
    The problem is when we have give the price, the automatic credit check is executed, and the purchase requisition is not created if we block on this credit check.
    When the credit controller, released the Sales order (VKM1), the purchase is not created automatically because the field for the price in purchase requisition is empty and required.
    And when we come back to the sales order, we need to fill the value and the credit check is running a new time. .....
    and we have a loop.
    I have check in OSS Notes, and I not find a solution.
    How can we solve this problem
    Regards
    Jean-Claude Onderbeke

    Hello Buddi,
    It's impossible to change the price in PO, because the PO is not created.
    The problem is on the creation on the PR in the Sales Order.
    I'm not able to create the Purchase Requisition due to Credit Check, and I'm not able to make an automatic credit check because the value price in the PR is not filled automaticaly, and it's required.
    It's a loop known by SAP, but not solve.
    I hope that someone has found a solution to this strange behaviour.
    Regards
    Jean-Claude

  • Problem by creation of purchase order

    Hi guys,
    after implementing SP 9 and 10 we are not longer able to create purchase orders automatically with WF WS14000075. In transaction bbp_pd we get the error message
    "System  of purchasing organization XXX differs from target system XXX". But we have assigned our product categories for the relevant backend system to the purchasing groups. We also wanted to implement the notes 913831 and 832097 with transaction snote but we could not because these notes were already implemented. In transaction bbp_pd the status for Workflow WS14000075 is "Waiting".
    Thanks in forward for your help. We appreciate your help a lot.
    BR,
    Bernd

    Hi Yann,
    i have checked the WF14000075 with transaction SWUD. After I have created an event with the user who has created the SC I have checked the Display of event traces. There the following error message appears:
    "Check FM with exception",
    Event Instance ID    16067
    Object Type          BUS2201
    Object Key           7100000124
    Event                SAVED
    Event Creator        US PROD1          PEK
    Creation Time        23.11.2006 14:12:19 CET
    Receiver Type        WS14000075
    Object Key
    Receiver FM          SWW_WI_CREATE_VIA_EVENT_IBF
    RFC Destination      WORKFLOW_LOCAL_010
    Check FM             SWB_CHECK_FB_START_COND_EVAL
    Receiver Type FM
    Message              Operator 'LT': The value of the left operand cannot be determined
    Trace Date/Time      23.11.2006 14:12:20 CET
    User Name            PROD1          PEK
    Main Program         SAPLSWUS
    Action               Check FM ends with exception
    BR,
    Bernd

Maybe you are looking for

  • Itunes download says I don't have sufficient admin to make changes to computer yet I am logged in as admin

    Trying to download itunes software to my PC, error message comes up saying I don't have sufficient admin to make changes to computer, I am looged in as admin? windows7 64bit

  • CASE in the FROM clause ?

    Hello, I need to query a table which (unfortunately) its name is depended on the date. (Year, Month, and every 15 days (Fortnight FN) My tables is STAT_VEHICLES_YY_MM and if it refers to the fortnight report it becomes STAT_VEHICLES_YY_MM15 For examp

  • Calling a function in child window from parent window

    Hi, How can I call a method in child window from parent window in adobe air using javascript. In the following example I need to call mytest() function in child.html from parent.html file. Thanks, ASM //parent.html <HTML><HEAD> <script> var initOptio

  • EJB and Dictionary Deployment Problem

    Hi, I am new to SAP J2EE engine. I tried deploying a simple EJB application with one entity(CMP) and one stateless session bean but cud not succeed. These were the problems: 1. When I used SAPDB for CMP, it said the table TMP_EMPLOYEE (which the CMP

  • IBooks on iOS5.1.1

    The current version of iBooks in the iTunes App Store will not install on iOS 5.1.1 you get a message to the effect that you need a later operating system. The problem is that I have a first generation iPad and the last update to the iOS for that dev