Break Order overriding my ORDER BY clause

Hi Experts,
I have created a report in Oracle 6i where I am getting the ORDER BY clause at runtime. And in the datamodel query, I am using a lexical parameter to say, order by the column selected in the parameter.
The problem am facing is, at runtime, the ORDER BY clause is being ignored by the report and it takes the column mentioned with break order property as 'Ascending' and sorts by that column.
I am not able to set the break order property to None to all of the columns as the reports builder is erroring out asking me to have atleast one column set to Asc or Desc!
Have anyone faced this problem before ? Is there anyway to get rid of this and make the report use by columns mentioned in the ORDER BY clause.
Please note: I tried an explicit ORDER BY <columnname> in the data model query but still the report uses the break order value mentioned and sorts by that columns.
Appreciate your help on the same.
Thanks!

Hi,
there's a simple rule how this works. For every query you have one or more (hierarchic) groups in the data model. For the lowest group the ORDER BY is choosen for sorting and for the groups, not beeing the lowest group, the BREAK ORDER is choosen (and vice versa ignored).
Regards
Rainer

Similar Messages

  • Order data as in IN clause

    Hi,
    Is there a way to order the result set to display in the same order as data supplied in IN clause
    example:
    select * from t_cu where cno IN (
    220,
    120,
    900,
    350,
    99,
    1,
    34
    );I would like to display the data in the same order as
    220,
    120,
    900,
    350,
    99,
    1,
    34I know this can be done using UNION ALL, however if 50+ records are there in the IN clause, then it is quite a task.
    Thanks

    Example of one possible method..
    SQL> ed
    Wrote file afiedt.buf
      1  with req as (select '7844,7698,7782,7499' as en from dual)
      2      ,ord as (select REGEXP_SUBSTR (en, '[^,]+', 1, level) en, rownum rn
      3               from req
      4               connect by level <= length(regexp_replace(en,'[^,]*'))+1)
      5  --
      6  select emp.*
      7  from emp join ord on (emp.empno = ord.en)
      8* order by ord.rn
    SQL> /
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
    SQL>This takes a comma seperated string that specifies the required values in order, breaks that string up into individual values giving them an associated order number (rn) and then uses those values to restrict the main query and the order values to order the results.

  • Setting a JTree renderer breaks the focus traversal order

    Hello,
    I am not sure what's wrong, but when I set a customize JTree renderer it breaks the focus traversal order of my UI. Can someone tell me what's wrong and also how to prevent it from changing the order of my components?
    For instance, if I have component order 1, 2, 3, 4, 5 to begin with and after I call JTree.setCellRenderer(new SomeRenderer()), the order would change to something like this 1, 2, 4, 5, 3
    To give you an overview of what I am creating, I am customizing a UI that will be plug into JFileChooser to replace the default UI. I know I can create my own FocusTraversalPolicy, but the thing is that I don't know some of my components ahead of time. As long as I can prevent the order change, I think it would be fixed.
    Regards,
    Soot

    Try creating a Short, Self-Contained, Compileable, Executable
    program which has this problem. Right now it would take a
    mind-reader to solve your problem.

  • Pegging gets broken after conversion planned order to production order

    Hi All,
       I am getting pegging of finish product and dependent product planned order in MRP after taking MRP run.......But after converting the planned order to production order all order gets start from today by breaking the  relationship of each other..........can anybody explain me why this is happening.............your answer will be appreciate ........thanks in advance.........waiting for reply........
    Best Regards
    Sharad

    If it is backward scheduling, system takes the requirement date and starts going back…
    If the start date calculated is less than today date, then there are two ways system will do the adjustment.
    If in scheduling setting for production order, if there is a setting – start date allowed in past and you have entered some days, then system will go back to that date and schedule so that production order will start from past i.e. from today.
    Now if past days are not allowed then system will switch over to today scheduling I.e. the start date is today.
    In your case production order start date is today….this may be your case.
    Just for the case of testing see what is the production lead time and calculate the start date manually and see whether it is going beyond today?
    What is the exception message you have in the production order line in MD04…this also will give some idea…

  • Change normal order into expire order

    Hi,
    I am oracle apps developer working in istore 11i module and i new to this forum.My question is i need to change normal order into expire order for this what are all the profile i need change .Please guide me.
    Thanks,
    Bala

    You can get the coordinates of the mouse "drop" relative to the scene in the onDragDropped handler with
    event.getSceneX() and event.getSceneY().
    You can get the location of the top left of a node relative to the scene with
    private Point2D getSceneLocation(Node node) {
         if (node.getScene() == null) {
              return new Point2D(0,0);
         double x = 0 ;
         double y = 0 ;
         for (Node n = node ; n != null; n=n.getParent()) {
              Bounds boundsInParent = n.getBoundsInParent();
              x += boundsInParent.getMinX();
              y += boundsInParent.getMinY();
         return new Point2D(x, y);
    (and you can get the other corners of the node simply by adding the width and/or height from node.getBoundsInLocal() to the result of that if you need.)
    So if you ensure every tab has a graphic, you can iterate through the tabs and do something like
    int dropIndex = 0 ;
    for (Tab tab : tabPane.getTabs()) {
         Point2D tabLocationInScene = getSceneLocation(tab.getGraphic());
         if (tabLocationInScene.getX() > event.getSceneX()) {
              break ;
         } else {
              dropIndex++ ;
    tabPane.getTabs().add(dropIndex, tabToBeAdded);
    Ensuring every tab has a graphic probably just means setting the text to an empty string and setting the graphic to a Label containing the text; or I guess you could just use a zero width and height Rectangle, or some such.

  • ORDER BY list order

    Is there a way to retrieve information from a database that is ordered by the order in which a list is sent? For example:
    USE MyDB
    SELECT * FROM MyTable
    WHERE Person IN (Sam, Katy, Beth, Donald, Marci) ORDER BY Person
    However, instead of getting the data in alphabetical order by Person, I'd like the list in the order of the list of names I sent: 
    Sam
    Katy
    Beth
    Donald
    Marci
    Gina

    >> Is there a way to retrieve information from a database that is ordered by the order in which a list is sent? For example:
    <<
    The short answer is “no”, but the right answer is “Hell NO!”
    SQL is a set-oriented language; Tables model sets; set have no ordering by definition. There is no concept of a list in RDBMS. Your mindset is locked back in the 1950's magnetic tape files and punch cards. 
    Another problem is that you think ORDER BY is part of a query. No, it never has been. You perform the query and get a result set. This set is then converted into a sequential file with an implicit cursor in a host program. 
    Before you try it, here is something that will fail. 
    CREATE TABLE Foobar
    (fake_record_seq INTEGER fake_record_seq 
        IDENTITY(1,1) NOT NULL PRIMARY KEY, 
    person_name VARCHAR(20) NOT NULL);
    INSERT INTO Foobar (person_name)
    VALUES ('SAM'), ('KATY'), ('BETH'), ('DONALD'), ('MARCI');
    The IDENTITY will not help you! The entire set constructed in the VALUES clause can be re-arranged anyway the optimizer wishes. If you insert the names one at a time, then the proprietary IDENTITY will increment. It would be better to use a CREATE SEQUENCE
    today. But you have just destroyed all the advantages of 40+ years of RDBMS. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking in
    Sets / Trees and Hierarchies in SQL
    Cheers for the explanation.. hats off sir!
    web: www.ronnierahman.com

  • Necessary Fields For Creation of Service PO of Order Type Relaese Order.

    Dear Guru,
    I have encountered an issue which i am trying to resolve...
    My this requirment will seem little okward the way i am asking but i have no way...
    The issue is I have to create a Service PO of Order type Release order (RO) using BAPI Function Module .BAPI_PO_CREATE1.
    The service PO should be of multiple Item and services for particular line item should be multiple.
    When I am creating this using ME21 or ME21N i am facing no issue.
    But when i am using BAPI Function Module .BAPI_PO_CREATE1
    i am getting following errors ;; The error which i am getting as below                                                                               
    T ID                   NUM MESSAGE                                                                               
    E BAPI                001 No instance of object type PurchaseOrder has been created. External reference:
    E MEPO              000 Purchase order still contains faulty items                                    
    E SE                   029 Please maintain services or limits                                            
    E SE                   140 Service HIRING OF LCD: please specify unit of measure
    But I am failing to findout in which field services  or limits and unit of measurement have to maintain.
    What are the necessary fields have to pass in Bapi import parameter and the table i am unable to findout.
    Please show some way how to resolve this or give me some guideline to resolve this
    Dear Moderator request your kind intervane to move this qurry into correct forum if i have asked this in wrong forum
    Thanks and regards
    saifur rahaman

    Hi Saifur
    Can you please elaborate how did you resolve the issue we are also facing same problem when we are trying to create the PO for service items through SRM it is throwing same error while creating the PO in SAP.
    Email Id : [email protected]
    Thank you in advance!!
    Regards
    Deepika

  • Planned Order to Purchase Order report in SAP

    Dear All
    The Business process is Planned Order - Converted to Purchase Requsition - Converted to purchase order .
    Is there any report in SAP , which shhows the direct link between Planned order to Purchase Order ?
    Regards
    Shyam

    I have never seen a standard report, build a query based on tables PLAF, EBAN and EKET should be involved

  • Purchase order and sales order table name

    hi al,
    i want to know purchase order and sales order table name in abap.
    thanks
    varun
    Moderator message: please do some own research, this should not take too long.
    Edited by: Thomas Zloch on Jan 27, 2012

    Hi Sunrag......
    If your PO is linked with SO. Then you can fetch customer name easily by FMS in PO.
    From there you ca gte the Customer Name into your PLD and it wont hang also.....
    Regards,
    Rahul

  • Production Order and Internal Order for each item of the sales order

    Hi
       I am developing Make To Order Report where I have to display the MTO Line Items and non MTO Line Items. For non MTO Line Items I have to display Internal order with Planned and Actual Costs and also Production Order with Planned and Actual Costs. Could anybody tell how to get the Internal order no and production order with Planned and Actual costs for each line item for a sales order.
    Thanks
    Naga

    Hi,
    You can get the Production orders, Planned orders, Internal orders generated for Sales order item from AFPO table (use fields KDAUF-Sales order number & KDPOS-Sales order item). Then to identify the order type use order category (AUTYP) from table AUFK.
    Once you have the Production/internal order, you can ge the cost from COSS and COSP table. Use the object number from AUFK to get the cost entries from COSS & COSP.
    You can use the following sample code as reference.
    Hope this is helps.. (Don't forget to mark it... )
    Form GET_COSTS                                                       *
    Get the material cost, labour hours and the labour cost for the      *
    sales order material.                                                *
    There are no interface parameters to be passed to this subroutine.   *
    FORM GET_COSTS.
      DATA V_OBJNR LIKE AUFK-OBJNR.
    DATA v_menge LIKE vbap-kwmeng.
      SELECT SINGLE OBJNR
        INTO V_OBJNR
        FROM AUFK
       WHERE AUFNR EQ AFPO-AUFNR.
      SELECT * FROM COSS
       WHERE OBJNR EQ V_OBJNR
         AND WRTTP IN ('01', '04'). " p_wrttp. "Labour Cost ( Plan, Actual)
        PERFORM GET_VALUES_FROM_COSS.
      ENDSELECT.
      SELECT * FROM COSP
       WHERE OBJNR EQ V_OBJNR
         AND WRTTP IN ('01', '04')         " p_wrttp
         AND KSTAR NE '0000510033'. " EQ p_kstar2.      "Material Cost
        PERFORM GET_VALUE_FROM_COSP.
      ENDSELECT.
    Get the unit cost of the production order by dividing the production
    cost by the order quantity. The result will be multiplied by the
    GL posting qunatity (Delivery quantity) to get the production cost
    for the quantity being deluivered.
      IF NOT AFPO-PSMNG IS INITIAL.
        OUT_REC-LABOUR_HOURS_ACT = OUT_REC-LABOUR_HOURS_ACT / AFPO-PSMNG.
        OUT_REC-ADDNL_LABOUR_HOURS_ACT =
                          OUT_REC-ADDNL_LABOUR_HOURS_ACT / AFPO-PSMNG.
        OUT_REC-LABOUR_HOURS_PLN = OUT_REC-LABOUR_HOURS_PLN / AFPO-PSMNG.
        OUT_REC-ADDNL_LABOUR_HOURS_PLN =
                         OUT_REC-ADDNL_LABOUR_HOURS_PLN / AFPO-PSMNG.
        OUT_REC-LABOUR_COST_ACT = OUT_REC-LABOUR_COST_ACT / AFPO-PSMNG.
        OUT_REC-ADDNL_LABOUR_COST_ACT =
                         OUT_REC-ADDNL_LABOUR_COST_ACT / AFPO-PSMNG.
        OUT_REC-LABOUR_COST_PLN = OUT_REC-LABOUR_COST_PLN / AFPO-PSMNG.
        OUT_REC-ADDNL_LABOUR_COST_PLN =
                         OUT_REC-ADDNL_LABOUR_COST_PLN / AFPO-PSMNG.
        OUT_REC-MATERIAL_COST_ACT = OUT_REC-MATERIAL_COST_ACT / AFPO-PSMNG.
        OUT_REC-ADDNL_MATERIAL_COST_ACT =
                         OUT_REC-ADDNL_MATERIAL_COST_ACT / AFPO-PSMNG.
        OUT_REC-MATERIAL_COST_PLN = OUT_REC-MATERIAL_COST_PLN / AFPO-PSMNG.
        OUT_REC-ADDNL_MATERIAL_COST_PLN =
                         OUT_REC-ADDNL_MATERIAL_COST_PLN / AFPO-PSMNG.
      ENDIF.
    Multiply the calculated Unit Production costs with the GL quantity to
    get the actual production cost of the quantity delivered.
    Calculation for Labour Hours
      OUT_REC-LABOUR_HOURS_ACT = OUT_REC-LABOUR_HOURS_ACT *
                                 OUT_REC-QUANTITY.
      OUT_REC-ADDNL_LABOUR_HOURS_ACT = OUT_REC-ADDNL_LABOUR_HOURS_ACT *
                                 OUT_REC-QUANTITY.
      OUT_REC-LABOUR_HOURS_PLN = OUT_REC-LABOUR_HOURS_PLN *
                                 OUT_REC-QUANTITY.
      OUT_REC-ADDNL_LABOUR_HOURS_PLN = OUT_REC-ADDNL_LABOUR_HOURS_PLN *
                                 OUT_REC-QUANTITY.
    Calculation for Material Cost
      OUT_REC-MATERIAL_COST_ACT = OUT_REC-MATERIAL_COST_ACT *
                                  OUT_REC-QUANTITY.
      OUT_REC-ADDNL_MATERIAL_COST_ACT =
          OUT_REC-ADDNL_MATERIAL_COST_ACT * OUT_REC-QUANTITY.
      OUT_REC-MATERIAL_COST_PLN = OUT_REC-MATERIAL_COST_PLN *
                                  OUT_REC-QUANTITY.
      OUT_REC-ADDNL_MATERIAL_COST_PLN =
          OUT_REC-ADDNL_MATERIAL_COST_PLN * OUT_REC-QUANTITY.
    Calculation for Labour cost
      OUT_REC-LABOUR_COST_ACT   = OUT_REC-LABOUR_COST_ACT *
                                   OUT_REC-QUANTITY.
      OUT_REC-ADDNL_LABOUR_COST_ACT = OUT_REC-ADDNL_LABOUR_COST_ACT *
                                  OUT_REC-QUANTITY.
      OUT_REC-LABOUR_COST_PLN   = OUT_REC-LABOUR_COST_PLN *
                                  OUT_REC-QUANTITY.
      OUT_REC-ADDNL_LABOUR_COST_PLN = OUT_REC-ADDNL_LABOUR_COST_PLN *
                                  OUT_REC-QUANTITY.
    Get the planned material cost from the total of the planned cost of
    the component materials in the production order confirmations.
      SELECT BWART MENGE MATNR SHKZG FROM AUFM
        INTO (AUFM-BWART, AUFM-MENGE, AUFM-MATNR, AUFM-SHKZG)
       WHERE AUFNR EQ AFPO-AUFNR.
        CHECK AUFM-BWART NE '101'.
        READ TABLE I_MBEW WITH KEY MATNR = AUFM-MATNR
                                   BWKEY = AFPO-DWERK.
        IF SY-SUBRC NE 0.
          SELECT MATNR BWKEY ZPLPR LPLPR PEINH
            FROM MBEW
            INTO I_MBEW
           WHERE MATNR EQ AUFM-MATNR
             AND BWKEY EQ AFPO-DWERK.
            APPEND I_MBEW.
          ENDSELECT.
        ENDIF.
        IF SY-SUBRC EQ 0.
          IF I_MBEW-ZPLPR NE 0.
            IF AUFM-SHKZG EQ 'H'.
              OUT_REC-PLANNED_MATERIAL_COST =
              OUT_REC-PLANNED_MATERIAL_COST +
                           ( I_MBEW-ZPLPR * AUFM-MENGE / I_MBEW-PEINH ).
            ELSE.
              OUT_REC-PLANNED_MATERIAL_COST =
              OUT_REC-PLANNED_MATERIAL_COST -
                           ( I_MBEW-ZPLPR * AUFM-MENGE / I_MBEW-PEINH ).
            ENDIF.
          ELSEIF I_MBEW-LPLPR NE 0.
            IF AUFM-SHKZG EQ 'H'.
              OUT_REC-CURRENT_MATERIAL_COST =
              OUT_REC-CURRENT_MATERIAL_COST +
                           ( I_MBEW-LPLPR * AUFM-MENGE / I_MBEW-PEINH ).
            ELSE.
              OUT_REC-CURRENT_MATERIAL_COST =
              OUT_REC-CURRENT_MATERIAL_COST -
                           ( I_MBEW-LPLPR * AUFM-MENGE / I_MBEW-PEINH ).
            ENDIF.
          ENDIF.
        ENDIF.
      ENDSELECT.
    Get the Future material cost per Unit by deviding the calculated
    Future material cost above with the goods reciept quantity to, then
    multiply the unit cost with the GL quantity to get the Future material
    Cost for the Quantity delivered. (Quantity in the entery from GLPCA
    Table).
      IF NOT AFPO-WEMNG IS INITIAL.
        OUT_REC-PLANNED_MATERIAL_COST =
           OUT_REC-PLANNED_MATERIAL_COST / AFPO-WEMNG * OUT_REC-QUANTITY.
        OUT_REC-CURRENT_MATERIAL_COST =
           OUT_REC-CURRENT_MATERIAL_COST / AFPO-WEMNG * OUT_REC-QUANTITY.
      ENDIF.
    ENDFORM.                               " GET_COSTS
    Form GET_VALUE_FROM_COSP                                             *
    Get the Material cost from COSP table.                               *
    There are no interface parameters to be passed to this subroutine.   *
    FORM GET_VALUE_FROM_COSP.
      FIELD-SYMBOLS: <FS> TYPE ANY.
      DATA: V_COMPONENT TYPE I.
    Cummulate the posting values of all the 16 period buckets as to get
    total production order cost. This is to handle the aprtial posting of
    prodction order values in diffrent periods.
      V_COMPONENT = 15.
      DO 16 TIMES.
        ADD 1 TO V_COMPONENT.
        ASSIGN COMPONENT V_COMPONENT OF STRUCTURE COSP TO <FS>.
        IF COSP-WRTTP EQ '04' AND COSP-KSTAR EQ P_KSTAR2.
          ADD <FS> TO OUT_REC-MATERIAL_COST_ACT.
        ELSEIF COSP-WRTTP EQ '04'.
          ADD <FS> TO OUT_REC-ADDNL_MATERIAL_COST_ACT.
        ELSEIF COSP-WRTTP EQ '01' AND COSP-KSTAR EQ P_KSTAR2.
          ADD <FS> TO OUT_REC-MATERIAL_COST_PLN.
        ELSEIF COSP-WRTTP EQ '01'.
          ADD <FS> TO OUT_REC-ADDNL_MATERIAL_COST_PLN.
        ENDIF.
      ENDDO.
    ENDFORM.                               " GET_VALUE_FROM_COSP
    Form GET_VALUES_FROM_COSS                                            *
    Get the Labour cost and Labour hours from the COSS table.            *
    There are no interface parameters to be passed to this subroutine.   *
    FORM GET_VALUES_FROM_COSS.
      FIELD-SYMBOLS: <FS1> TYPE ANY,
                     <FS2> TYPE ANY.
      DATA: V_COMPONENT1 TYPE I,
            V_COMPONENT2 TYPE I.
    Cummulate the posting values of all the 16 period buckets as to get
    total production order cost. This is to handle the aprtial posting of
    prodction order values in diffrent periods.
      V_COMPONENT1 = 15.
      V_COMPONENT2 = 111.
      DO 16 TIMES.
        ADD 1 TO: V_COMPONENT1, V_COMPONENT2.
        ASSIGN COMPONENT V_COMPONENT1 OF STRUCTURE COSS TO <FS1>.
        ASSIGN COMPONENT V_COMPONENT2 OF STRUCTURE COSS TO <FS2>.
        IF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ P_KSTAR1.
          ADD <FS1> TO OUT_REC-LABOUR_COST_ACT.
          ADD <FS2> TO OUT_REC-LABOUR_HOURS_ACT.
        ELSEIF COSS-WRTTP EQ '04'.
          ADD <FS1> TO OUT_REC-ADDNL_LABOUR_COST_ACT.
          ADD <FS2> TO OUT_REC-ADDNL_LABOUR_HOURS_ACT.
        ELSEIF COSS-WRTTP EQ '01' AND COSS-KSTAR EQ P_KSTAR1.
          ADD <FS1> TO OUT_REC-LABOUR_COST_PLN.
          ADD <FS2> TO OUT_REC-LABOUR_HOURS_PLN.
        ELSEIF COSS-WRTTP EQ '01'.
          ADD <FS1> TO OUT_REC-ADDNL_LABOUR_COST_PLN.
          ADD <FS2> TO OUT_REC-ADDNL_LABOUR_HOURS_PLN.
        ENDIF.
      ENDDO.
    ENDFORM.                               " GET_VALUES_FROM_COSS

  • Planned order and Production order Not appearing cm21 transaction code

    Hi
    I have created a planned order for a material through MRP run
    As soon as the planned order is created its available in the cm21 transaction code . But once i dispatch the planed orders , the planned orders can be seen only as a BAR in the upper right side of the screen .
    1.Can any body please let me know how i can view the details of this dispatched planned orders in the same way when the planned orders were un dispatched ?
    2.If i create a production order manually or convert a planned order to production order i cannot see these production orders in cm21 neither on cm22 , can any body please let me know what i have to do so that i can view these production orders as well in cm21 or cm22 transaction code.
    Thanks and regards
    Sankar N

    Hi Pradeep
    I have checked the generate capacity requirements and it worked ,Thank you
    Presently i can view only the work centre details in cm21 screen extreme left , how can i see the details of the orders that are dispatched at this work centre ,in the similar way we see in the order pool, bottom left of cm21 screen .
    Thanks
    Sankar

  • Purchase order vs planned order vs process order vs production order

    Hi,
    Kinldy explain difference between the  Purchase order,  planned order,  process order and production order?
    Thanks & Regards
    Ravi kumar

    Hi Ravi,
    In simple terms:
    planned order - A procurement proposal generated by the system to meet a need, this can then be converted to a production / process order (for internal procurement) or into a purchase reqn & in-turn to Purchase order (for external procurement)
    Purchase order - A firmed procurement proposal which is sent to your vendor (external procurement) to supply the items as per your order
    process order - A firmed procurment proposal which is used for in-house procurement, this is used in process industries eg: chemicals, oil & gas etc 
    production order - A firmed procurment proposal which is used for in-house procurement, this is used in discrete production industries
    Based on the above am quite sure you should be able to figure out the differenced. If any doubts revert.
    Regards,
    Vivek

  • Planned order Vs.Purchase order

    Hi,
    can you tell me major differences between a planned order and  a purchse order.

    Hi,
    Planned Order : Planned Order is generated by the planning logic, or arithmetical procedures, of the system itself with MRP set. When MRP is re-run after the closed-loop transactions are fed back into the system, all existing planned orders are deleted and a new set is generated. However, the newly generated planned orders may be identical to the previous set in timing and quantity, so that it will appear to the system user as if the old plans have simply been somewhat revised. The use always of planned orders in closed-loop MRP ensures that plans are always in synchronisation and that the planner does not need to concern himself with rescheduling messages.
    Purchase Order: The purchase order is a formal company document which conveys the instructions or detail of a required supply. The legal role of the purchase order in forming the contract of supply will vary with circumstances: most usually, it will be an offer, such that the supplier's acceptance of it at the price mentioned seals the contract, but it might alternatively be the acceptance of an offer (say, an order placed immediately against the supplier's tender.) The document itself may also be used by the company simply to convey detail, perhaps being a call-off for material against a yearly contract already in existence. The purchase order might convey a summary of substantial material to be delivered at various times in the future by special order forms.
    For more follow the link:
    http://www.xtuple.com/docs/userguide/ch03s09s03.php
    Regards,
    Biju K

  • Fields required for linking production order with sales order

    I need to link production order and sales order to get the part no#. need to see in md04.

    The link between production order and sales order can be made by using the KDAUF KDPOS fields of AUFK or AFPO and linking them to VBELN and POSNR of VBAP.
    Regards,
    Rich Heilman

  • Open planned orders and production orders

    Hi friends,
    I have one issue with my client.
    Client has 1 lac materials in sap .Now he wants extract all materials open planned orders and open production orders with quantity and dates.
    Please tell me the process how i can extract the data from sap for above requirement.
    Thanks,
    Manoj

    Hi Manoj,
    For open planned order and production order select the respective box.
    But one suggestion. Try to convince client that this report will take a lot of time as you have mentioned 1 lac materials are there.
    You can exclude system status and get it with below screen as mentioned already.
    But my suggestion is to run the report at night when the system load is very less. Please create a background job one for planned order and another for production order. Then run it in midnight as per the customer requirement in background. You can automate the process by sending automatic mail to customer. Please refer the below link to trigger mail.
    Mail Trigger with TEXT file via JOB run
    Regards,
    Krishnendu.

Maybe you are looking for