Production order creation & updation in co02 transaction takes long time

Hi experts,
I am creating production order using the below logic whiich takes more time.can u please help me with some logic.
1. I am taking recut and rejection last completion date for the material from zee table.
2. Based on the date to till date iam taking all the document number(mblnr) from mkpf.
  SELECT mblnr
         mjahr
         vgart
         bldat
         cputm
    FROM mkpf
    INTO TABLE it_mkpf
    WHERE vgart = 'WF'
      AND ( bldat GE wa_zrjrcpoc-zdate
      AND bldat LE c_date ).
3. Then fetching mblnr from mseg
    SELECT mblnr
           mjahr
           bwart
           matnr
           werks
           lgort
           menge
           j_3asiz
           j_4ksca
      FROM mseg
      INTO TABLE it_mseg
      FOR ALL ENTRIES IN it_mkpf
      WHERE mblnr = it_mkpf-mblnr
        AND mjahr = it_mkpf-mjahr
        AND ( bwart = '101' OR bwart = '102' )
        AND matnr IN s_matnr
        and lgort in s_lgort
        and werks in s_werks
        AND ( j_4ksca = 'REJ'
         OR j_4ksca = 'RCT' ).
The above logic takes more time for Production order creation.
can u please help me with a new logic...
A.Jenifer

Hi Abhi..
Thanks for reply...
Yes i am taking material number and date from zrjrcpoc table & reading it.
Then iam passing it to mkpf & then to mseg.
In zrjrcpoc for 2 materials zdate is 01.05.2010 & 30.06.2010.
To create PO for this 2 materials it takes all mblnr from 01.05.2010 to sy-datum.
Finally after comparing it creates PO for document number from 01.07.2010 to 30.07.2010.....
whether any other logic to take material number from mkpf & mseg from 01.07.2010 to 30.07.2010....

Similar Messages

  • Sales order creation, standard event trigger is taking long time .

    We have a requirement where we are sending data to CRM system using RFC function module. This data is sent while sales order creation or change. We have used standard event BUS2032.CREATED to trigger CRM FM in sales order creation mode. In sales order change mode, we are using custom event. In production system, our custom change event is getting triggered fine and data is sent to CRM system with small time lag of around 1 minute. But, while sales order creation, standard event trigger is taking long time ( sometimes about 20 minutes) in production system.
    We tried triggering same custom event at the time of sales order creation using FM u2018SWE_EVENT_CREATE_IN_UPD_TASKu2019 as well but, still we are not able to improve performance of the event trigger at sales order creation.
    Regards,
    Sushee Joshi

    HI,
    we have written SWE_EVENT_CREATE in update task
    I think instead of calling in update task simply call to function module CALL FUNCTION "SWE_EVENT_CREATE" might trigger the event immediately.. Did you try to check in this way..
    OR
    And I also suggest you to check the entry in SWE2 txn with respect to your workflow tempalte, may be you have enable the option ENABLE EVENT QUEUE, this could be one of the reasons.. If it is enabled please disable it (uncheck)
    Please check..
    Regards
    Pavan

  • Serial number in production order creation CO01 Transaction

    Dear All,
    we are maintaining serial numbers for each product by using serial number profile .
    For some products we creating serial numbers automatically during production order creation.
    For some products we are selecting predefined serial numbers from IQ03,during production order creation.
    But some products , we are maintaining serial numbers in excel sheet ,when ever production order created , we used to copy the required
    serial numbers from excel and pasting in CO01 serial no provision fields.Here it is allowing to paste 20 serial no's at a time, but we want to
    give more than 20 serial no's at a time
    please find the attached screen shots and provide solution
    Production order creation
    Execute Transaction : CO01
    After entering qty , we usually go to Header and select serial numbers
    then it will populate provision to enter serial number for 30 sets
    Here we are entering  required serial number manually fro few products
    The serial number to be used for this production order against this product like below
    M1001
    M1002
    M1003
    M1004
    M1005
    M1006
    M1007
    M1008
    M1009
    M1010
    M1011
    M1012
    M1013
    M1014
    M1015
    M1016
    M1017
    M1018
    M1019
    M1020
    M1021
    M1022
    M1023
    M1024
    M1025
    M1026
    M1027
    M1028
    M1029
    M1030
    Then we will copy all 30 serial number and try to past in below screen
    But it allowing only 20 serial number at a time not for 30
    After pasting 20 serial no's , user manually selecting remaining 10serial numbers and pating in the same screen by scrolling the page
    For example if production order quantity is 500 , then user put serial numbers 25 times it consuming more time
    Requirement:
    System should allow to paste all serial numbers at a time
    Regards
    Satya

    Hello Satya,
    I checked this requirement and did not find anything relevant.Even for MIGO there is a note  1883420 - In the transaction MIGO only 6 serial numbers can be entered at the same time .So as per my view you can either
    1. Create serial no's before hand which you want to paste from Excel or
    2. Some custom/alternate  development for CO01,discuss with your Abaper. or
    3. Raise OSS messge to SAP.
    Regards,

  • Exit for production order creation that update BOM explosion date

    Hi Guros
    does any one know a user exit for production order creation that update BOM explosion date = AUFLD.
    or a UE that run before the BOM explosion.
    thanks.

    Dear,
    I dont think user exist will work for you,
    You need to find BAdi for it, cl_exithandler=>get_class_name_by_interface .
    Or try with SE84,
    Enter the package name and check the " Enhancements"
    Regards,
    R.Brahmankar

  • Production order creation , release and confirmation cycle

    Hi All SAP Gurus,
    I am trying to set Production order creation , release and confirmation cycle integrated  to  xMII.
    I am sure there must be many among you who worked on this before.
    So can you please share your experience.
    Thanks in advance
    Regards
    Ritesh

    Hi Ritesh,
    I'll give you what I have been using:
    - Transferring orders to MII
      You can trigger the orders by tcode POIT or an equivalent BAPI (BAPI CLOI_DOWNLOAD_TRIGGER_TRANS) or have the iDOC being sent automatically whenever someone creates a new production order in R/3 (using change pointers). In both cases you will receive an iDOC in XML format from SAP with the production order information on it. After receiving this file a BLS transaction will be required to read the XML file and store it in your local DB.
    - Releasing orders from MII
      You can release the orders from MII using the BAPI BAPI_PRODORD_RELEASE (it will update the order status in R/3 to REL). After that you might want to update the production order status in MII local DB as well. Usually I have the bapi BAPI_PRODORD_GET_DETAIL in place in order to read the production order details whenver I need.
    - Doing confirmations from MII
      After the PO was released, you can do confirmations against each operation using the BAPI BAPI_PRODORDCONF_CREATE_TT. You can send up to SAP good quantity, scrap quantity, labor/machine time, etc. It's a pretty intuitive BAPI.
    If your system is not ready to do goods movement automatically you will need to use BAPI_GOODSMVT_CREATE.
    This is basically what I use in this kind of project. If you have any questions please let me know.
    Regards
    Ricardo

  • FM for creation of production order creation

    Hi All,
    Can anyone tell me the BAPI for the production order creation.
    BAPI for creation of production order through CO01 transaction code.
    Thanks in advance
    Ramesh.

    Hi,
    Please check this FM CO_ZF_PRODUCTIONORDER_CREATE.
    Regards,
    Ferry Lianto

  • Manual production order creation in MTO

    Dear collegues,
    I am stuck in a scenario:
    I have a finished item A. strategy 20 is used.I created sales order for A in plant 1000. MRP run in plant 1000 happens. Through special procurement key 40, system generates planned order in plant 2000. Planned order is converted to production order. I can see in assignment tab of production order,  Production plant is 2000 and planning plant is also 2000. Till here it is ok. I will do GR against production order in plant 2000 and through SD route I will send it to Plant 1000.
    But when I create manually production order in CO08, always system sets in assignment tab of Production order , production plant as plant 2000 and planning plant as 1000. How to avoid this? Why manual production order is not like MRP generated planned u2013production order?
    Kindly help.
    Regards.

    Give below a try in sandbox (Not from experience, so not sure if it works):
    At the time of production order creation, maintain the production plant in Sales Order & ensure the demand flow to MRP is switched off at schedule line (If you're not sure, take help of your SD person).
    The order created in CO08 should now have production & planing plant as same. Once that is done, switch back the plant in Sales Order & release the demand to MRP. (I hope the cut over plan has addressed the sales & MRP flows, so no inputs from my end)
    If the above does not work, then revert with details.

  • Mandatory field in Production order creation field

    Dea All,
    I want to have a field mandatory at the time of production order creation. in CO01 Goods Receipt Tab there is a field of Goods Recipient in the second last row. Please guide me how can i make it mandatory field.

    Dear,
    Yes it is possible through the user exist, input check is carried out for enhancement PPCO0018.
    User exit PPCO00018 should use ful for order header screens GENERAL ASSIGNMENT, GOODS RECEIPT and CONTROL tab.
    Or go to SE51 enter program  SAPLCOKO Screen No 5190 click on change and the Lay out here you can define it as Input field Take help from technical person.
    Regards,
    R.Brahmankar

  • BOM Explosion based on Production Order Creation

    Hi PP Guru,
    My client wants the BOM Explosion date to be based on Production Order creation date. Could you help to advise how to set-up this requirement?
    I have showed them these possible System Configuration in BOM explosion, but none of these options are applicable to their current business practice.
    <OPPQ> BOM Explosion:
         BOM explosion number/order start date
    1     Order start date
    2     Order finish date
    3     BOM explosion number/order start date
    4     BOM explosion number/order finish date
    Looking forward to you reply.
    thanks,
    John

    Hi Sundaresan,
    Thanks for your reply.  So do you think there's any other way to fulfill the client's requirement?  I was thinking to do the "PP Master Data" instead, in order to choose the date of explosion.
    Actually the scenario is this:
    Initially the Material XXXXXX has a valid BOM on 03.01.2011 to 12.31.9999, but then, some changes has been made, maybe the user has changed the component or added new component using 04.01.2011 to 12.31.9999 as validity date.
    For example, the user created the Production Order (manually in CO01 or from Planned Order conversion) on 03.20.2011 and the Order Star date is 04.01.2011, so the system will copy the updated BOM which is valid on 04.01.2011 to 12.31.9999 (based on Order Start date).
    However, the client wants to explode the previous BOM instead (03.01.2011 to 12.31.9999).
    Please advise.
    Thanks,
    John

  • Creditor in Production Order Creation

    do you know any FM or BAPI to create production order with creditor like in
    transaction co01?
    note :  creditor is at the Operation-Details --> Ext. processsing tab

    German,
    Follow path SPRO- IMG- Production - Shop floor control- Master data--- Define production secheduling profile T code OPKP.
    Go into details of plant & prod. scheduling profile combination.
    Under batch management, for 'Automatic batch creation in order' either select 1 or 2 as per your requirement.
    Hope this helps you.
    SmanS

  • APO: RRP3 automate Production order creation from planned order ?

    Hi everyone ,
    I have got a business requirement in APO where in Open sale orders uploaded in R/3, needs to be converted to Planned order and subsequently to Production order in APO-PPDS tcode RRP3 at all stages. They want to automate this process rather than doing it
    manually.
    Can anyone tell how is this possible . Any BAPI or function module available to do this . Please help.
    Regards,
    Syed

    Hi,
    1.You need to run the heuristics Planning of standard lots SAP_PP_002  in /SAPAPO/CDPSB0 by specifying the time profile
       and  strategy profile, planning version and propagation range, product and location.
    2. Convert PPDS Planned Orders created to process orders thru /SAPAPO/RRP7 by specifying the product location start date of the order for production order creation.
    Out put of step 1- For sales order requirement, PPDS Planned orders gets created.
    Out put of step 2- PPDS Planned orders are converted to production orders.
    Thanks,
    nandha

  • IDOC/BAPI for Production order creation from Legacy system

    Hi all
    We are using an interface to create Production orders from legacy to SAP. Would you recommend an IDOC or a BAPI to create Production orders. If IDOC or BAPI then could you please mention which one?
    thanks a bunch

    Hi John,
    For your purposes, please use BAPI for production order creation from legacy system. There is no standard inbound IDoc available to use. SAP has an IDoc for outbound interface only (message type LOIPRO).
    If there is an inbound IDoc available, I would recommend to use an IDoc.
    IDoc technology has excellent error handling and will allow you to reprocess an error (if any).
    BAPI is also good approach to use and fast in term of  processing.
    For BAPI approach, you can use BAPI BAPI_PRODORD_CREATE.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Selection Of BOM & Routing at the time of production order creation

    Hi guys,
    Please clarify how i can go about for the following mentioned scenario
    I have one Master BOM(Finished Product Level) & alternative BOMs for that,similarly i have one Master Routing & alternate routings for the same finished product
    At the time of production order creation is it possible for me to choose one of the BOMs & One of the routings of that particular finished product without creating a production version?
    Awaiting for a quick response
    Vijai

    Hi vijai prasad shanmugam ,
                                              In the material master MRP-4 view under the BOM selection you can maintain on what fatcors you want the BOM to be selected  Viz. Selection by order quant.,Selection by explosion date.Selection by production version etc.
    As far as the master recipe is concerned ........ I guess that if there are more than one valid master recipe maintained then SAP will prompt to select the one manually.........
    But it the standard practice to maintain the production version ....... for the similar situation to the one that you have mentioned.
    Please Let me know if I can help you in any way regarding this........
    Please reward the points......... in you find the ans helpful.....
    Thanks
    Kaushik

  • IDoc Configuration for Production Order Creation and Change

    Hi All,
    Please Help me out for IDoc Configuration for Production Order Creation and Change
    I have found the IDoc for Production Order
    Messgae Type : LOIPRO and IDoc type : LOIPRO01
    Actually my requirment is to send the (LOIPRO01 )IDoc from SAP R/3 to XI system ,when ever the Production Order Created and Changed,
    I have done following Configurations:
    1. RFC Destination created for XI system
    2. PORT was created for XI
    3. Partner profile created WE20 and LOIPRO01 IDoc is added in OutBound Perameter.
    I need to know how to do the followning.
    1. How do i configure the outbound Production order idocs when Production Order is created or changed.
    2. in NACE (Output control) which is the Application for Production Order.
    3. How can I set IDoc as output Type for Production Order Creation.
    Thanks in advance
    Dhanabal T

    Hi Michal,
    I know that it is the old thread but still want to get clarified from you out of curiosity.
    Unlike other IDOC, i actiavated change pointers for LOIPRO
    1.message and idoc type is linked
    2.function module , message type , idoc type is linked
    function module used is CLOI_MASTERIDOC_CREATE_LOIPRO
    3.BD64, distribution model is created and distributed
    4. port and partner profile is in place.
    5. IDOC is not getting generated after creating the process order.
    do we need to activate the change documents for the message type in BD52,
    if yes can you please provide the object types for the same.
    or i am missing something else. please guide me in this regards.
    Thanks in advance for your time.
    S.Janagar

  • Notify of Production Order Creation service

    The SDN WIKI for Integration of Manufacturing Execution Systems states that...
    "Now, as of Enhancement Package 4, each time a production order is created in SAP ERP, that action automatically invokes the Notify of Production Order Creation service operation, which informs the MES system of all the details of the new production order. "
    I am not able to locate any further documentation and definition of the Notify of Production Order Creation service.   Please provide assistance on where to find documentation of this service.

    Look at these links , may get some help ....
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/espackages/create%252bproduction%252bplanning%252border
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/espackages/find%252bproduction%252border%252bby%252belements
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/espackages/change%252bproduction%252border
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/espackages/find%252bproduction%252bplanning%252border%252bfor%252bapproval%252bby%252belements%252b(SCM)
    Regards
    Abhishek

Maybe you are looking for

  • How to get each node in tree?

    how to get each node in tree? Message was edited by: NikisinProblem

  • Integrating SCCM 2012 SP1 Endpoint Protection Manager with SIEM

    Team, Does anyone know how to expose the central SCCM antimalware reporting data to external sources?  I would like to take all centrally collated security events and load the data into Arcsight express, e.g. client malware detection events.  Are all

  • Adobe Form Hanging in WDA

    Hi All, I have a requirement in my current development to display the list of HR forms(Payroll) to the end client. I am successfully able to carry out the scenario for a single Record Type but when I use the multiple scenario the Adobe Form keeps han

  • Popup in a Screen

    Hi, In a dialog screen when the user selects a storage location I'd like to display batches as a popup and give the user an option to select a batch. Thanks for any help..

  • Itunes 11.1.4 doesn't sync app's after last update in Iphone 5S

    Hello dear Apple boys I found a problem after last Itunes update I can't sync app's anymore everytime I tryed to sync app's in Iphone 5S I received a mesage needs to Authorize this computer I had outhorized a lot But, is curious, my Ipad Mini (first