Dispatching of Orders same as in CM25

Hi ,
I have a requirement to develop a custom report to DISPATCH the prod/planned orders same as it is done in CM25. Can anybody please let me know the logic behind the same or any FM or BAPIs or any related information .
I did Debugging but could not understand the logic.
Thanks in advance.
Adar.

You can change the details of operation by using table parameter 'CLOI_ORD_OPRU_IMP'. you will put data as
DATA: li_ord_opru_imp TYPE TABLE OF CLOIOPERU WITH HEADER LINE.
** if you want to change execution start date
    li_ord_opru_imp-aufnr = orderid.
    li_ord_opru_imp-aplfl = sequence.
    li_ord_opru_imp-vornr = operation.
    li_ord_opru_imp-field = 'SSAVD'.
    li_ord_opru_imp-value = EXEC_START_DATE.
    APPEND li_ord_opru_imp.
** if you want to change execution start time
    li_ord_opru_imp-aufnr = orderid.
    li_ord_opru_imp-aplfl = sequence.
    li_ord_opru_imp-vornr = operation.
    li_ord_opru_imp-field = 'SSAVZ'.
    li_ord_opru_imp-value = EXEC_START_TIME.
    APPEND li_ord_opru_imp.
** if you want to change work center
    li_ord_opru_imp-aufnr = orderid.
    li_ord_opru_imp-aplfl = sequence.
    li_ord_opru_imp-vornr = operation.
    li_ord_opru_imp-field = 'ARBPL'.
    li_ord_opru_imp-value = WORK_CENTER.
    APPEND li_ord_opru_imp.
** if you want to dispatch this operation
  li_ord_opru_imp-aufnr = orderid.
  li_ord_opru_imp-aplfl = sequence.
  li_ord_opru_imp-vornr = operation.
  li_ord_opru_imp-field = 'METHOD'.
  li_ord_opru_imp-value = 'DISPATCH'.
  APPEND li_ord_opru_imp.
** Please specify data in CLOI_IF_PAR [Interface Parameters]
DATA: lv_cloi_if_par LIKE CLOIIFPAR.
lv_cloi_if_par-commitflg  = 'C'.
lv_cloi_if_par-r3_version = '46'.
lv_cloi_if_par-metlog_req = 'X'.
lv_cloi_if_par-msglog_req = 'X'.
lv_cloi_if_par-msgobj_req = 'X'.
lv_cloi_if_par-ord_req    = 'X'.
lv_cloi_if_par-ordseq_req = 'X'.
lv_cloi_if_par-ordopr_req = 'X'.
lv_cloi_if_par-plord_req  = 'X'.
** in this example, i call this function by pattern.
  data: lv_ret_val LIKE CLOIRETVAL.
  CALL FUNCTION 'CLOI_CHANGES_UPL_31'
    EXPORTING
      CLOI_IF_PAR                = lv_cloi_if_par
    IMPORTING
      CLOI_RET_VAL               = CLOI_RET_VAL
    TABLES
      CLOI_ORD_OPRU_IMP          = li_ord_opru_imp
      CLOI_MAP_EXP               = CLOI_MAP_EXP
      CLOI_METHOD_LOG_EXP        = CLOI_METHOD_LOG_EXP
      CLOI_MESSAGE_LOG_EXP       = CLOI_MESSAGE_LOG_EXP
      CLOI_MSG_OBJ_LOG_EXP       = CLOI_MSG_OBJ_LOG_EXP
      CLOI_PLORD_EXP             = CLOI_PLORD_EXP
      CLOI_ORD_EXP               = CLOI_ORD_EXP
      CLOI_PLORD_OPR_EXP         = CLOI_PLORD_OPR_EXP
      CLOI_ORD_OPR_EXP           = CLOI_ORD_OPR_EXP
      CLOI_ORD_SEQ_EXP           = CLOI_ORD_SEQ_EXP
Regards,
Thitima

Similar Messages

  • Dispatch planned orders CM25

    Dear experts,
    Is it possible to dispatch planned orders in the capacity planning board CM25?
    In which profile do I change the settings to make this happen?
    Many thanks,
    Tim
    PS: will award points!

    the following  profiles can be used for viewing capacity over load
    SAPSFCG001     SFC: View work center/capacity (2 graf.)
    SAPSFCG002     SFC: View work cntr./capacity (tabular)
    SAPSFCG003     SFC: View order/capacity      (tabular)
    SAPSFCG004     SFC: View order/capacity     (graphical)
    SAPSFCG005     SFC: View Individual cap.    (graphical)
    SAPSFCG006     SFC: View work cntr/ind.cap.  (tabular)
    SAPSFCG007     SFC: View order/individual cap. (graph.)
    SAPSFCG008     SFC: View order/individual cap. (tabul.)
    SAPSFCG009     SFC: View line               (graphical)
    SAPSFCG010     SFC: View setup optimize     (graphical)
    SAPSFCG011     SFC: View work center/capacity (3 graf.)
    SAPSFCG014     SFC: GANTT view wkcntr/capacity (3 grph)
    SAPSFCG015     SFC: Evaluation, standard overview
    SAPSFCG016     SFC: WC/Capa (2 temp.save graphical)
    SAPSFCG020     SFC: Standard overview in work cntr view
    SAPSFCG021     SFC: Standard overview in order view
    SAPSFCG022     SFC: Standard overview in indiv.cap.view
    SAPSFCG023     SFC: Standard overview + actual cap.rqts
    Usually the following std profiles are used.
    SAPSFCG021     SFC: Standard overview in order view
    SAPSFCG022     SFC: Standard overview in indiv.cap.view
    <b>Dispatch of capacity is carried out in the following transaction</b>
    CM21, CM22
    CM27, CM28
    CM31, CM32

  • CM25 : adjust setup time automatically when i dispatch production orders

    Dear guru ,
    I dispatch the production orders according to a specific sequence.
    After the dispatching I can adjust setup time automatically using setup matrix.
    Does exist a chance to adjust setup time automatically when i dispatch production orders ?
    Thanks.

    no replies

  • BAPI or FM to DISPATCH PLANNED ORDERS

    HI Gurus,
    We have a requirement to automatically dispatch planned orders instead of manually going to CM25/CM21 screen to manually do it.
    Is anybody aware of any BAPIs, FMs or anything to be able to dispatch planned orders.
    I was going to use BDC but the table control has restricted me to do this.
    Thanks for you help.

    Hello Basil,
    I am looking for the same solution, can u plz update if u hav some information how to approch for the requirement.
    Thanks in Advance.
    Adar

  • Dispatch production orders/planned orders

    Hello:
    Is there a standatard function module available to dispatch production orders/planned orers? Equivalent to MF50, where an order is dispatched.
    Sarita.

    HI Saritha,
    I have teh same requirement , can you please share how did u met the requirement.
    Thanks & regards,
    Adr

  • CM40 dispatch planned order among different work centers

    Hi
       we have a finish material ,which can be manufactured using 3 different work centers.Then I create 3 production versions to link each work center .
    PV1   Routing 1(work center1)   BOM 1    production line:work center1
    PV2   Routing 1(work center2)   BOM 1    production line:work center2
    PV3   Routing 1(work center3)   BOM 1    production line:work center3
       Is it possible to create a batch job to dispatch planned order between work centers in CM40?I am able to manually dispatch planned orders between different work centers in CM22..
       CM40 use the same selection/strategy profile as CM22 and the planned orders are dispatched to other period if current period get overload..But I expect CM40 to dispatch the planned orders to other available work centers..Anyone has any suggestions?
       thanks very much..
    Edited by: Monst Yang on Jan 10, 2012 9:59 PM

    Hello,
    With CM40 also you can dispatch planned orders as like CM22
    Please look into the below link for more functions performed with the transaction:
    http://help.sap.com/saphelp_46c/helpdata/en/f3/0869a3a6ae11d183d00000e83235ee/content.htm
    Hope the information was useful
    Regards,

  • Can't dispatch planned order (LA), but can dispatch production order

    Hello,
       I'm new to capacity planning and all of the related configuration screens.  I'm probably missing something simple.  We've configured our work centers and routings.  We've configured our production order types (tcode OPU3, type US01) and planned order types (tcode OPU5, type LA) so that all create capacity requirements and are relevant to 'detailed scheduling'.  Requirements are being generated for production orders and planned orders.  We can see correct setup and production times in the graphical planning table CM21.
       Here's the problem: When we try to dispatch a planned order, nothing happens.  There is no error, but the order is not dispatched.  If we convert the planned order into a production order, accepting all SAP proposed defaults, and then try to dispatch the production order, it works fine.
       What configuration are we missing?  My first thought was to look in OPU5 for order type LA.  In the detailed scheduling section, scheduling horizon is zero (is this Ok?), SelID: Detailed is 01, 'scheduled' and 'generate capacity reqs' are checked.
    Thanks,
    Randy

    Randy ,
    Please analyse the below note related to your issue.Hope this will help you to sort out the problem.I have cheked the configuration area.I hope u are correct .In fact , it may related to your production version if you do automatic dipatch.Please reade the note and come back.
    If an error arises when automatically dispatching planned orders (for example, a capacity overload at a work center) then the system schedules the affected planned orders to another production line.This function is available in both types of planning table. It is of interest for all areas that use planned orders, for example in repetitive manufacturing or in MRP/MPS. It can also be used in production control when later converting planned orders to production orders.
    this function the following conditions must be met:
    The dispatching function Change production version on error must be set in the strategy profile.
    The original work center
    must be entered in the production version of the material as the production line (not necessarily in the current production version).
    can only be assigned to one operation in the routing for this production version
    The alternative work center can only be assigned to one operation in the routing for the alternative production version
    If an error arises the system copies the production version with the version key that is next alphanumerically into the planned order. The planned order is rescheduled with this production version. However, it is not dispatched to the new production line but remains in the pool. In this way you can dispatch the rescheduled planned orders together with other planned orders in the pool to the new production line.
    To give you a better overview and to improve handling you should choose a sort key with which the planned orders in the pool are sorted according to work center and, for example, latest start date. All orders that are to be dispatched to a production line are then placed next to one another in the pool. If an error arises during automatic dispatching to the new line every planned order affected is rescheduled with the next production version
    . If the conditions are not met then the following occurs depending on your settings in the strategy profile:
    Dispatching is terminated
    Dispatching to the same work center is continued and error messages are written to the planning log
    You can only dispatch main operations with this function, but not sub-operations. Operations are always dispatched with the full quantity to the new work center
    Reward point if useful
    Regards
    Jia

  • Capacitity leveling - Dispatching production order considering PM block

    Dear friends,
    I am trying to dispatch a production order of large Qty by using transaction CM21.
    The order will take 15 days to complete.
    Two days are blocked by plant maintenance order on that work center in future. They are shown as black in CM21.
    When I try to dispatch, system is automatically dispatching the order in such a way that its end date is before PM block date or start date is after PM block date.
    e.g. Order will run from 10th August to 25th august.
    PM has blocked dates 20 & 21st August.
    Hence the expected result is start the order on 10th and will end on 27th.
    But when I dispatch the order on 10th, system automatically takes it to 22nd (First day after PM block).
    Can we not plan orders with PM block period in between?
    Best Regards,
    Avinash

    You need to enable splits in the operation (routing definition).

  • Cisco Load balancer and Web Dispatcher to the same portal

    Hello Experts,
    We have implemented intranet portal with Cisco as the load balancer. Now we need to expose this intranet to the outside world as an extranet portal. So the same portal will be accessed from both intranet and from outside. We are thinking of installing a web dispatcher in the DMZ so that outside users can access the Web Dispatcher URL to access the intranet portal. In effect intranet users will use load balancer and extranet users will use Web Dispatcher to access the same portal. Now my question is if we configure Load Balancer and Web Dispatcher to the same portal, will the portal be able to load balance properly? Is this the right approach?
    Thank You,
    mansooralip1

    Dear Andrew,
    We need to provide access to our intranet to some outside companies for them to also use some of our portal applications. As per your answer, I understand that I can configure Web Disptacher to talk to the Cisco Load Balancer of our portal. In this case Web Dispatcher will work just as a reverse proxy. But when I discussed this with one of our basis resource, he told me that when we install and configure Web Dispatcher, it always ask for the Message Server URL and Port number, even if I just want to use Web Dispatcher as a Reverse Proxy. If his concerns are valid, I do not think I will be able to configure Web Dispatcher to access the cisco Load Balancer because I cannot put Cisco load banacer URL and port instead of the Message Server URL and Post Number. Can you kindly share your comment on the same?
    Now the second part of my question, if Web Dispatcher cannot be configured to talk to Load Balancer(as mentioned by our basis resource), I will have to use two load balancers. One web Dispatcher in DMZ as a Load Balancer *** Reverse Proxy for the external users. Second the internal Cisco Load Balancer for the intranet users. So the same portal will be accessed by two load balancers. My question here is, in this set up, can the portal work efficieintly here by distributing equal loads two both the server instances?
    Thank You,
    mansooralip1

  • Tcode CM25:BDC or function module to dispatch planned orders

    Hi all,
    Could you please suggest a BAPI/FM for CM25 -dispatching the planned orders.
    While i try BDC, it requires the line selection for dispatch,which does not get captured in recording.
    Can anyone throw light on this or suggest any alternative.
    thanks
    kiran
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Oct 23, 2009 11:28 AM

    reposting it

  • BDC for CM25 tcode or a function module to dispatch planned orders

    Please suggest a way for BDC of CM25 tcode as the selection of planned/process order in the tcode is not captured in recording.
    or provide FM/BAPI for dispatch of planned orders.
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Oct 23, 2009 11:27 AM

    reposting it

  • Material availability check be switched off for during dispatching of order

    Hi All,
    Material availability u2013 can the material availability check be switched off during  dispatching of production order but kept when order is created? 
    Is there any implications on availibilty check.
    How can we do this?
    Regards,
    Vidyasagar

    Dear
    If you want to do Material Availablity Check only at the time of order creation , please choose Availability Check Business Function 1  with your order type  /plant combination .Keep No Check  in Capacity  and do not assing  the Overall Capacity Profile Here .
    Where as keep the Capacity Overall Profile for Production Order Type with Availablity Check  -2  and Mark No Check to material availablity  option in the same .
    In OPKP -make sure that you have Capacity Profile assinged and do not mark Confirm Partial Available Qty .
    How ever , in capacity requirement , material availablity is the intregrated part  and while dispathcing production order with in the available capacity of any operation in work centre , system tries to make sure the materials are available for processing just before actual operation starts .
    Check in CM21-Setting-Strategy -Dispatch Control -Check if you have option to un-check the Material Availability .
    Regards
    JH

  • Open item in PS reporting for shop floor order (same as PO's or PR's)

    Hi Guys,
    I have a question simple but I could till now find any solution in standard Report Writer or in Report Painter and I donu2019t want to create a specific report with an ABAP.
    In the system we have set quit complex projects with WBS, Networks and Activities. In each project there are also material which are standard material consumed from collective stock and specific material produced internally or purchased externally. The specific material are consumed through specific stock project.
    In Report Painter/Writer there are ratios for the open line items for purchase orders or requisitions but I am not able to find the same values for the shop floor orders made internally. Further I get the values for the planned shop floor orders and of course the complete actual (coming from both requirements) but I will know what are the values which are between (nat yet actual and plan).
    Has anybody already faced this situation or do anyone the solution to my problem?
    I thank you for your replies.
    Best regards

    Hi
    Please use table EKAB for your search instead of using EBAN Or EKKO
    Thanks & Regards
    Kishore

  • Sales order same plant different storage location

    Hi
         We are doing a sale order for a material that is storage in two storage location.
    Storage location A:
    2 units
    Storage location B:
    3 units
    We did a sale order for 5 material. Stock availability asigned 5 unit in one position of the purchase order. Then the system create just one delivery for 2 units.
    Which procedure or customizing we have to do to get two deliveries, one for each storage location.
    Thanks in advance for the help
    Regards
    Enzo

    thanks SAJU SOM
    We need to create two deliveries from one sales order, that have quantities for differents storage locations.
    Example:
    Sales order A: 5 units
    We have, 2 in storage location C and 3 in storage location D under same plant. The storages locations are in differents places, so we need two deliveries, one from C and the other one from D.
    I suppose that this situation is normal and occurs in many companies.
    So, we have to create a sales order with 2 positions, or the system split the deliveries during deliveries creation?
    I think the system should split the positions automatically in the sales order creation.
    Thanks for your help
    Regards
    Enzo

  • How to avoid that two or more people alter the same Sales Order same time

    I'm looking for a way to avoid that two or more people altering the same Sales Order at the same time.
    If someone has entered a Sales Order in the system and something needs to be adjust it can be done by two or more people at the same time. The problem is that when someone is saving these changes, the changes of another person, who is still working on the same order, get lost.
    So what we need is an alert that someone is already using this order and that no other person can make any changes at that time. So the order needs to be blocked for altering for any other person at that time.
    To avoid this I think you have to do something with the Stored Procedure. Or has someone a more simple and better solution.
    I've already put this thread in the Business One forum and someone suggested to put it in the Business One SDK forum, as there isn't a solution in Business One itself.
    So if someone can give me a direction for a solution I would be very pleased.
    Best regards,
    Tim

    Hi Tim,
    The only thing that comes close to what you want in standard SBO is Data Ownership. However, this can't stop someone editing a document that is already being edited.
    You can't use stored procedures to track which document is open because the SBO_SP_TransactionNotification proc (which is the only one that you are able to customise) is triggered when a document is updated or added (or cancelled or closed) and not when the document is actually being edited in the user-interface.
    You could do this by writing an addon that uses the UI API to trap events in the sales order form. In theory, a sales order is being edited if the sales order form is in Update mode (ie in order for the form to be in Update mode, the user must have selected an existing document and changed the value of at least one field). You can trap the event of the user changing a value and then log the user and document in a table. When other users try to edit the same document, you could check the table and then prevent them changing values. When the first user clicks on the update button (or cancels the update or closes the form etc etc) you can remove the lock on the document. However, I have doubts as to how robust it would be. The problem with this kind of locking solution is that you sometimes get 'stranded' locks (eg user was editing a document when their workstation crashed) and the solution can end up being more troublesome than it is worth.
    Kind Regards,
    Owen

Maybe you are looking for

  • Missing menu:

    At last I figured out how to post this! My problem is: When playing the slide show created with iDVD on my 'Sony Bravia' TV it skips the menu and begins at the first chapter. So I put in a lead image set at 10 seconds but it still misses the menu whe

  • Filters are incomplete in Photoshop cs6

    I noticed when I went to filters that several of the choices are not highlighted, i.e. not  available.  These filters include: filter gallery, artistic, brush stroke, distort, sketch and texture.  How do I get access to these?

  • QI INSPECTION LOT

    hi FOR CONSIGNMENT PROCESS FOR CONSIGNMENT FILLUP AND CONSIGNMENT ISSUE INSPECTION LOT IS CREATED? BUT THE STOCK WILL NOT BE THERE IN CONSIGNMENT ISSUE STAGE REGARDS

  • Shared asset copying

    We are having problems when copying a shared asset (a very small image) from one part of a page to another. This is not a problem when logged on as administrator, just for other users. An error message is generated saying that the image exceeds maxim

  • Reversal of 122 which will be posted through usage decision

    Hi expert             i have done mistakenly  Usage decision of Semi finished product against order and post stock  122 (return to vendor) through usage decision. Now i want to reverse document  123( reversal of return to vendor)  but when i am going