Commited date for missing parts in the production order

when i generate a prodution order and there are some missing parts for that material. its showing the list of all the missing parts but the commited date is coming out as 12/31/9999.
I maintained the the planned delivery time for all those components.but still its giving me this date

Dear Deepu,
Check in OPJJ for your checking group and checking rule combination what's the scope of check
defined --->under this you must have included the check box for Check availability without
replenishment lead time. It Indicates whether, during the availability check, the system checks the
replenishment lead time.
Use
Items for which the delivery date falls within the replenishment lead time, but for which there is no inventory, are confirmed for delivery after the replenishment lead time. In the case of items for which the delivery date falls after the end of the replenishment lead time, the system assumes that everything can be confirmed.
Procedure
In the standard version, leave this field blank if you want the system to check the replenishment lead time.
Dependencies
If you want the system to check the replenishment lead time, you should make sure that you have entered a value in at least one of the following three fields in the material master:
GR (goods receipt) processing time (Purchasing view)
Planned delivery time (MRP I view)
GR processing time (MRP II view)
Otherwise, the system confirms every requirement.
If that check box is included then system proposes the date as 31.12.9999.
Just remove the check box setting and check once again in CO01 for material availability check.
Even If the check box is not included and if the End lead time (replenishment lead time)of that raw
material  is before the order start date then you will not get any mssing part's list.
Suppose if the replenishment lead time is after the order start date means then you will get this raw
material under mssing parts list.
Replenishment lead time = Planned delivery start time + GR processing time of that raw material (this
starts from today).
Say let your finished product finish date be 30.03.2009 and order start date be 28.03.2009,and let the
planned delivery time be 15 days and GR processing time of the raw material be 5 days.
So in this case End lead time = 15+ 5 = 20 = 01.04.2009 starting from today ,so in this case you will
be getting this raw material under missing parts because its end lead time time is after the order start
date.Suppose if its  before order start date you will not get in missing parts.(Even if the check box is not
included under RLT).
So check with this and revert back.
Regards
Mangalraj.S

Similar Messages

  • Problem of Missing parts during the Process Order release

    Hi
    For a Make to Order strategy, I have run MRP for a sales order which resulted in planned order for the material. But when I try to convert the Planned Order to Process Order, I am getting error Parts are missing during the availabilty check even though the components are available in the stock.
    But when I create a Process Order manually, I am not facing the problem of missing parts as stock for components are available in stock.
    Please advice why I am facing the problem with Planned Orders which are created via MRP.
    Regards
    Brijesh

    Dear all,
    If we set the Individual requirement (1) in MRP4 view of the material master for the component, the system will not consider the plant stock and it will give the message like Parts are missing during the Process Order process even though the plant stock is exists for the component.
    So I would like to where in customization you define this?
    --> To not consider the plant stock if individual req is set (1)
    --> To consider the plant stock if collective req is set (2)
    Kindly advice,
    Regards,
    Brijesh

  • Standard Report for missing parts at production order operation level?

    Hi PP Gurus,
                We have standard report for missing parts at production orders level.
    For our client, they need a report for missing parts analysis at production order operation level. Do we have any such standard report in the SAP?
    Please help.
    Thanks,
    Reddy.

    Hi Arvind,
          Thanks for for your response.
    1. List: Components,  Layout: Standard layout          set the Missing part
           It shows the component requirement/withdrawn  quantity for each operation of production order. It is not showing the commit quantity.
    2. List: Components,  Layout: Pick list          set the Missing part
           It shows the component requirement/withdrawn  quantity for each production order.
    3. List: Components,  Layout: Missing Parts List-Material View          set the Missing part
           It shows the component requirement/commit quantity for each production order. It is not showing the commit quantity at opertion level.
    4. List: Components,  Layout: Missing Parts List-Order View          set the Missing part
           It shows the component requirement/commit quantity for each production order. It is not showing the commit quantity at opertion level.
          We are unable to get the solution from all these 1 to 4 reports from COOIS.
    Do we have any option to change the existing layout (ex: 3 ) to get the commit quantity for operation with missing parts indicator?
    If avilable, what is the procedure to be followed?
    Thanks,
    Reddy.

  • How to get committed date for each component after availability check

    Hi,
    When I use CO02 to check material availability, I can see committed date in missing part list and missing part overview for each component in production order. I save it and use CO03 to read missing part list again. The committed date is blank?! How to get the committed date for each missing part in production order?
    Another question, committed date can be displayed in CO24(missing parts info system)? Thanks in advance!!

    Rita,
    Please check that the PP avail. check has replensh lead time turned on. If RLT is turned off & there is no sufficient stock of material, then system can only committ date of 12/31/9999.
    Once you turn on RLT, it will give you some date based on your configured avail check ( that looks at stock or purchase order or production order). That way if there is no sufficient stock of material to satisfy your order system will committ the worst case date which is the RLT.
    On CO24 unfortunately there is no field for Committ date. Hence is it not possible to view commit date. You can only view Committ quantity.
    i am sure this will help you. Else please come back.
    thanks,
    Ram

  • How to use BAPI_GOODSMVT_CREATE against the Production Order

    Hi Friends,
    I need ur help very urgently,
    I am using the BAPI_GOODSMVT_CREATE (movement code '03') for goods return against the production order (movement type '262').
    everything working fine, ie it gets updated in IM/WM.
    but when we check in the CO03 transaction for the production order, the qty withdrwan not gets updated in the component overview. still showing the old value. But when we used regular SAP transaction MB1A, it gets updated in CO03 (qty withdrwan in the component overview).
    How to solve this issue using this BAPI.
    I have attached the code, plese help me is there any other parameter to set for this BAPI.
    Thanks in advance.
    Shankar
    Code:
    *Header Structure
    st_gm_code-gm_code = '03'. "
    st_gm_header-pstng_date = st_gm_header-doc_date = sy-datum.
    SORT itab BY aufnr matnr j_3asized.
    LOOP AT itab.
    itab_afs_gm_itemx-material = itab-matnr.
    itab_afs_gm_itemx-plant = itab-werks.
    itab_afs_gm_itemx-stge_loc = itab-lgort.
    itab_afs_gm_itemx-batch = itab-new_charg .
    itab_afs_gm_itemx-stock_cat = itab-j_4kscat.
    itab_afs_gm_itemx-stck_type = 'F'.
    itab_afs_gm_itemx-move_type = '262'.
    itab_afs_gm_itemx-entry_qnt = itab-j_3aerfmg .
    itab_afs_gm_itemx-grid_value = itab-j_3asized.
    itab_afs_gm_itemx-orderid = itab-aufnr.
    itab_afs_gm_itemx-move_reas = itab-move_reas.
    APPEND itab_afs_gm_itemx .
    SELECT SINGLE etenr
    INTO etenr
    FROM j_3abdsi WHERE aufnr = itab-aufnr
    AND matnr = itab-matnr.
    gr_afs-matdoc_itm = '0100'.
    gr_afs-sched_line_sku = etenr.
    gr_afs-stock_cat = itab-j_4kscat.
    gr_afs-grid_value = itab-j_3asized.
    APPEND gr_afs.
    ENDLOOP.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
    goodsmvt_header = st_gm_header
    goodsmvt_code = st_gm_code
    IMPORTING
    goodsmvt_headret = st_gm_headret
    materialdocument = mat_doc
    matdocumentyear = doc_year
    TABLES
    goodsmvt_item = itab_afs_gm_itemx
    return = bapi_return
    afs_goodsmvt_sku = gr_afs.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

    Hi Friends,
    I need ur help very urgently,
    I am using the BAPI_GOODSMVT_CREATE (movement code '03') for goods return against the production order (movement type '262').
    everything working fine, ie it gets updated in IM/WM.
    but when we check in the CO03 transaction for the production order, the qty withdrwan not gets updated in the component overview. still showing the old value. But when we used regular SAP transaction MB1A, it gets updated in CO03 (qty withdrwan in the component overview).
    How to solve this issue using this BAPI.
    I have attached the code, plese help me is there any other parameter to set for this BAPI.
    Thanks in advance.
    Shankar
    Code:
    *Header Structure
    st_gm_code-gm_code = '03'. "
    st_gm_header-pstng_date = st_gm_header-doc_date = sy-datum.
    SORT itab BY aufnr matnr j_3asized.
    LOOP AT itab.
    itab_afs_gm_itemx-material = itab-matnr.
    itab_afs_gm_itemx-plant = itab-werks.
    itab_afs_gm_itemx-stge_loc = itab-lgort.
    itab_afs_gm_itemx-batch = itab-new_charg .
    itab_afs_gm_itemx-stock_cat = itab-j_4kscat.
    itab_afs_gm_itemx-stck_type = 'F'.
    itab_afs_gm_itemx-move_type = '262'.
    itab_afs_gm_itemx-entry_qnt = itab-j_3aerfmg .
    itab_afs_gm_itemx-grid_value = itab-j_3asized.
    itab_afs_gm_itemx-orderid = itab-aufnr.
    itab_afs_gm_itemx-move_reas = itab-move_reas.
    APPEND itab_afs_gm_itemx .
    SELECT SINGLE etenr
    INTO etenr
    FROM j_3abdsi WHERE aufnr = itab-aufnr
    AND matnr = itab-matnr.
    gr_afs-matdoc_itm = '0100'.
    gr_afs-sched_line_sku = etenr.
    gr_afs-stock_cat = itab-j_4kscat.
    gr_afs-grid_value = itab-j_3asized.
    APPEND gr_afs.
    ENDLOOP.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
    goodsmvt_header = st_gm_header
    goodsmvt_code = st_gm_code
    IMPORTING
    goodsmvt_headret = st_gm_headret
    materialdocument = mat_doc
    matdocumentyear = doc_year
    TABLES
    goodsmvt_item = itab_afs_gm_itemx
    return = bapi_return
    afs_goodsmvt_sku = gr_afs.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  • Committed Date For Components in Production Order

    Dear All,
    I m facing this,  Committed Date For Components in Production Order,
    the date appeared as 31.12.9999,
    How can i make this correct.
    please tell me..
    Thanks
    Raghu

    Hi, Thnkx,
    You Are correct, I got this while doing Availability Check, 2 dates.
    Requirement Date, and Committed Date.
    I tried your solution,
    I change the Quantity of one of my BOM , I tried to change the Quantity by Change Number,
    So in CS 03 I can see the Validity of that component up to 01-09-2010,
    I run MRP agian, new planned Order, tried to convert, the question is same.
    I still get the date as 31-12-9999.
    Thanks
    Regards
    Raghu

  • I bought a Elements 12 Software bundle 3 weeks ago.  How do I redeem the other part of the product I paid for?

    I bought a Elements 12 Software bundle 3 weeks ago.  How do I redeem the other part of the product I paid for?
    I bought a Elements 12 Software bundle 3 weeks ago.But I only redeemed,'Premier Elements' with the code it gave and had a separate code for Elements 12 , wich I wrote down but did not use at that time. Now I have made space on the PC, I want to download the Elements 12 part of my bundle but its proving impossible. How do I redeem the other part of the product I paid for? The serial number retrieval code, from the card I bought comes up as Invalid now.

    Serial number and activation chat support (non-CC) may help
    http://helpx.adobe.com/x-productkb/global/service1.html

  • Message for Missing Parts  While Creating Order

    Dear Friends,
    While Creating & Saving The Production Order System Is Not Supporting In Giving A Warning Massage On Missing Parts In spite Of Deficit In Storage Location For Materials.
    The Clint Requires A Warning Massage In Case Of Materials Shortage In SL
    I Tried To Get This From the Following Method
    Checked For Define checking control In OPJK.
    Selected  plant, Order type & selected the business function 1 for create or 2 for release. And Maintained These Settings
    a)     Removed tick mark in No Availability check.
    b)     Type of component check Given as - ATP check.
    c)      Material release - 1. User decides on release if parts are missing.
    d)     PP  Checking rule (Which Is same As with plant parameter OPPQ)
    e)     In Define scope of check (OPJJ) made a tick mark in check w/o RLT.
    Then Assigned the availability checking group at Mrp View of Header material.
    In spite Of All These Settings Still At The Time Of Order Release/Save  A  Warning Massage Or A Informative Massage Is Not Appearing
    Please Suggestu2026u2026u2026u2026
    Hari

    Dear Friends,
    I Did The Following Settings
    A) Define Checking control       02               Individual Req
                        Total Sales          Single Record
                        Total Div Rec               Single Record
    B)Define Checking Rule     PP  Check Rule
    C)Define Scope Of Check     Availability Check          02 Ind Req
                        Checking Rule               PP Check Rule
              Stock
                   Include Safety stock
                   Stock In Transfer
                   Incl Quanty Insp Stock
    And When No tick Mark Is Applied  In NO Stor Loc Inspectn
    Not Used Checking Group "KP" In components material master.
    After  Making All This Settings Also Before  Order ReleaseWhen Pressed u201CMaterial Availability Checku201D
    The System Is Showing  All Materials Available  In Spite Of Deficit In Storage Location
    Suggestu2026u2026

  • IDOC for missing parts list

    Hi,
    We would like to send the missing parts list generated from CO24 to other system. Is there any standard IDOC available to send missing parts?
    I would appreciate your help.
    Thanks.

    Karthik,
    Thanks for your quick reply. But this is not what I am looking out for. I am sorry, I think my question was not clear.
    There is one functionality in Production Planning area that we can find out the missing parts for the production order. We have to send the information to our warehouse asking for the missing parts to fulfill the production order. Our warehouse is not on SAP so we want to send the information through an ALE/IDOC. In order to do this I wanted to know that is there any standard IDOC type which can be used or we have to create a custom IDOC.
    Thanks.

  • Email for Missing parts

    Hello Friends,
    Need your help regarding this issue. For a missing part in production order, we receive an email at the time of goods receipt of the missing part. The output type here is MLFH.
    For few parts we are receiving an email message and for few we are not receiving.
    Please advise where the issue could be
    Thanks,
    Sruthi

    Dear,
    Best way you can try with below FM with particular function for email functionality.
    HRWPC_RQ_MAIL_TO_MANAGER
    I would suggest you to post this to ABAP forum to get a detailed explaination.
    Regards,
    R.Brahmankar

  • SPP - Unable to load data for numeric parts

    Hi all,
    We have been trying to upload data from a flat file for a set of numeric parts and have been unsuccessful in doing so. We get an error "No valid item to load into APO-BI". We have been successful in loading data for alphanumeric parts.
    We suspected that this may be due to the output format for product number we specified in SPRO (not checked lexicographic). This has resulted in the system attaching leading zeros to the product number. The setting however cannot be changed once a numeric product has been created in the system. We were not able to delete the product (for which we started a separate thread).
    Would appreciate if someone could share if there is a workaround to this problem ?
    Best Regards
    Mitesh

    The Problem got resolved as we were able to delete the numeric part numbers and then checking the "lexicographic" option in "Specify Output format of Product Numbers".

  • KE28 Top-down distribution for only part of the Value Field

    Hi Experts,
    We have a situation where we will make manual postings in CO-PA through KE21N. Part of this postings will be at the lowest detailed level and part will be for a more summarized level od characteristics. All the postings will flow to the same value field.
    We need to make a top-down distribution only for the postings that were made in a summarized level, because the other postings already have the details that we need.
    Is it possible?
    Kind Regards
    Mayumi Blak

    Hi Venkata,
    Please note that :-
    you can not distribute to a characteristic that already contains a
    value.  Please see note 77476.  If you want to distribute to eg.
    profit center, then the characteristic must be initial (in the data
    to be distributed).
    In the case where the log showed "number of receivers" but no line
    written is a common problem in transaction KE28 logged by customers.
    One example is that, if the amount of line items is 0.00 for all the
    receivers, no line item will be written.
    No values in reference data:
    If there are no values in reference data for some segments (see the
    log). No records are posted (segments which were distributed, but
    their value is zero i.e. there is no value to be distributed, are not
    posted).
    No initial values in the distribution level (ie. # - non assigned)
    in each of the characteristics in distribution level.
    Kind Regards,
    Abhisek Patnaik,

  • 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

  • How can read BOM component date before save the production order??

    Hi Experts,
    In our company, we need to develop a program to read the BOM component data of the production order
    before we save the production order.
    That for example ,when we create and release a production order , before we save the production
    order,we want a porgram to read the BOM component data. If some component data can meet our
    requriement (may be if there is material requirement quantity>100 EA),then the system will pop up a
    small dialog box to remind us.
    There is user exit PPCO0007 and PPCO0007.But it seems they only can read the head data of the
    production order before we save the production order. And the BOM component data of the production
    order are saved in the RESB(Reservation Table).So if we do not save the production order,all the BOM
    component data are not saved in the RESB table.
    So how can slove the problem??
    How can read component date before save the production order??
    Are there any other user exit we can use???

    Hi Just wanted to check am I right that you are trying to check if you have enough Materials Available before you release or Save the order right ? if this is your business objective then when you create order you have material availability tab which checks and gives error if shortage is there. Please let me know if is this wht you asking for ?

  • [svn] 3540: Fix for missing name of the exception class, when @ throw is used.

    Revision: 3540
    Author: [email protected]
    Date: 2008-10-09 11:20:44 -0700 (Thu, 09 Oct 2008)
    Log Message:
    Fix for missing name of the exception class, when @throw is used.
    Also fixes for:
    SDK-17212 - Add a line feed between messages in the ASDoc validation_errors.log file.
    SDK-17242 - The Constants.as and GlobalFunctions.as classes from system classes need to have their content added to __Global__.xml
    SDK-17256 - For methods of the mx.components.Group class, args or return values of type Object do not appear in the ASDoc output.
    QA: Yes
    Doc:
    Tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17212
    http://bugs.adobe.com/jira/browse/SDK-17242
    http://bugs.adobe.com/jira/browse/SDK-17256
    Modified Paths:
    flex/sdk/trunk/asdoc/templates/class-files.xslt
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

    Revision: 3540
    Author: [email protected]
    Date: 2008-10-09 11:20:44 -0700 (Thu, 09 Oct 2008)
    Log Message:
    Fix for missing name of the exception class, when @throw is used.
    Also fixes for:
    SDK-17212 - Add a line feed between messages in the ASDoc validation_errors.log file.
    SDK-17242 - The Constants.as and GlobalFunctions.as classes from system classes need to have their content added to __Global__.xml
    SDK-17256 - For methods of the mx.components.Group class, args or return values of type Object do not appear in the ASDoc output.
    QA: Yes
    Doc:
    Tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17212
    http://bugs.adobe.com/jira/browse/SDK-17242
    http://bugs.adobe.com/jira/browse/SDK-17256
    Modified Paths:
    flex/sdk/trunk/asdoc/templates/class-files.xslt
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

Maybe you are looking for