Template allocation enviornment 12 for production order not working

Dear experts,
i have more than 6 activity type in routing and the base will be machin hour qty means all my activity Fiance, HR,IT and quality ase will be machin hr qty defined in routing and rate will be different in kp26 for hr,IT<QC and finance.
so i am planning for templete allocation and i m using production order.
In templete allocation there are different enviornment for plan and actual for production order.
For planning i have created environment 0
Based on cost center and activity tpe ( all my activity-HR,IT,QC,Finance and one common cost center)-seperate line for each activity and plan qty is machin.I wrote the logic and same is working also.
but for actaual .i have chosen enviornment 12 becoz i m using production order and logic will be actual machin hour qty.
request you to guide me on actual environment based on machin hour actual qty
regards
RR

dear friend,
for the first issue please run OPU3 for your plant/prod.order type and
set MORE days in 'Start in the Past' field
or
go back to your prod.order (run CO02 ) and REDUCE days in past
for the second issue please run CR02 and fix the time (Scheduling tab)
good luck!

Similar Messages

  • BAPI_GOODSMVT_CREATE for production order,not update database

    hi guru,
    i am using BAPI_GOODSMVT_CREATE for production order.When i m testing this BAPI
    at se37 it creates one mat doc no and i m not getting any return messages.Now i m
    writing code for it at se38. but it does not update the database even though i used
    bapi_transaction_commit. here sy-subrc = 0.bt when i m checking MSEG table showing
    that mat doc no does not exists.
    please help me out  asap.
    thanks and regurds,
    manasi

    CHECK THIS CODE
    REPORT ZBAPI_GOODSMVT_CREATE.
    *DECLARING INTERNAL TABLE TO HOLD FILE DATA.
    DATA: BEGIN OF itab OCCURS 0,
              text(200),
          END OF itab.
    *DECLARING INTERNAL TABLE TO PASS FILE DATA.
    TYPES: BEGIN OF tw_goodsmvt,
                pstng_date TYPE budat,
                doc_date TYPE bldat,
                material TYPE matnr,
                plant TYPE werks_d,
                stge_loc TYPE lgort_d,
                move_type TYPE bwart,
    *            entry_qnt TYPE erfmg,
                costcenter TYPE kostl,
            END OF tw_goodsmvt,
            tt_goodsmvt TYPE STANDARD TABLE OF tw_goodsmvt.
    DATA: lt_goodsmvt TYPE tt_goodsmvt,
          lw_goodsmvt TYPE tw_goodsmvt.
    *declaring internal table of bapi structure.
    DATA:s_goodsmvt_header LIKE  bapi2017_gm_head_01,
         lt_goodsmvt_item TYPE STANDARD TABLE OF bapi2017_gm_item_create WITH HEADER LINE,
         lt_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    DATA:str_filename TYPE string,
         gm_code TYPE gm_code,
          v_head_count TYPE i VALUE 0,
          v_prev_count TYPE i VALUE 1,
          v_qnt TYPE string,
          v_dummy.
    *selection screen
    SELECTION-SCREEN BEGIN OF BLOCK bk with frame title text_001.
    PARAMETERS:p_docdat TYPE bldat,
               p_pstdat TYPE budat,
               fname LIKE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK bk.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR fname.
    *to provide F4 functionality.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name = syst-cprog
        IMPORTING
          file_name    = fname.
    * start of selection
    START-OF-SELECTION.
      str_filename = fname.
      gm_code = '06'.
    * to upload data
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename            = str_filename
          filetype            = 'ASC'
          has_field_separator = 'X'
          read_by_line        = 'X'
        TABLES
          data_tab            = itab.
    *SPLITING DATA TO INTERNAL TABLES.
      LOOP AT itab.
        IF itab+0(1) EQ 'H'.
          v_head_count =  v_head_count + 1.
          IF v_head_count GT v_prev_count.
            PERFORM bapi_upload.
          ENDIF.
          SPLIT itab-text AT ',' INTO v_dummy
                                      lw_goodsmvt-pstng_date
                                      lw_goodsmvt-doc_date.
          s_goodsmvt_header-doc_date   = lw_goodsmvt-doc_date.
          s_goodsmvt_header-pstng_date = lw_goodsmvt-pstng_date.
          v_prev_count = v_head_count.
      ELSEIF itab+0(1) EQ 'L'.
        SPLIT itab-text AT ',' INTO v_dummy
                                    lw_goodsmvt-material
                                    lw_goodsmvt-plant
                                    lw_goodsmvt-stge_loc
                                    lw_goodsmvt-move_type
                                    v_qnt
                                    lw_goodsmvt-costcenter.
    * PASSING DATA TO INTERNAL TABLE TYPE BAPI STRUCTURE.
        lt_goodsmvt_item-material = lw_goodsmvt-material.
        lt_goodsmvt_item-plant    = lw_goodsmvt-plant.
        lt_goodsmvt_item-stge_loc = lw_goodsmvt-stge_loc.
        lt_goodsmvt_item-move_type = lw_goodsmvt-move_type.
        lt_goodsmvt_item-entry_qnt = v_qnt.
        lt_goodsmvt_item-costcenter = lw_goodsmvt-costcenter.
        APPEND lt_goodsmvt_item.
      ENDIF.
      v_prev_count = v_head_count.
      ENDLOOP.
      PERFORM bapi_upload.
    *&      Form  bapi_upload
    form bapi_upload .
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        goodsmvt_header             = s_goodsmvt_header
        goodsmvt_code               = gm_code
    *   TESTRUN                     = ' '
    * IMPORTING
    *   GOODSMVT_HEADRET            =
    *   MATERIALDOCUMENT            =
    *   MATDOCUMENTYEAR             =
      tables
        goodsmvt_item               = lt_goodsmvt_item
    *   GOODSMVT_SERIALNUMBER       =
        return                      = lt_return.
            PERFORM commit_work TABLES lt_return.
            CLEAR : lw_goodsmvt, s_goodsmvt_header.
            REFRESH: lt_goodsmvt[], lt_goodsmvt_item[].
    endform.                    " bapi_upload
    *&      Form  commit_work
    *       text
    *      -->P_LT_RETURN  text
    form commit_work  tables   p_lt_return structure bapiret2.
      IF NOT lt_return[] IS INITIAL.
    *error handling
    loop at lt_return.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
       ID              = lt_return-id
       LANG            = sy-langu
       NO              = lt_return-NUMBER
       V1              = lt_return-message_v1
       V2              = lt_return-message_v2
       V3              = lt_return-message_v3
       V4              = lt_return-message_v4
    IMPORTING
       MSG             = lt_return-MESSAGE
    EXCEPTIONS
       NOT_FOUND       = 1
       OTHERS          = 2.
    WRITE: lt_return-id, lt_return-message, lt_return-message_v1, lt_return-message_v2,
                 lt_return-message_v3, lt_return-message_v4.
          CLEAR lt_return.
        ENDLOOP.
      ELSE.
    * commit work
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    *   EXPORTING
    *     WAIT          =
       IMPORTING
         RETURN        = lt_return.
    WRITE: lt_return-id, lt_return-message, lt_return-message_v1, lt_return-message_v2,
                 lt_return-message_v3, lt_return-message_v4.
          CLEAR lt_return.
    endif.
    endform.                    " commit_work

  • GR  for  Production order not possible with  settlement receiver as IO

    Hi
    I   have  created a  production order  and  the settlement rule is  to  an internal order.  But  it  does not  allow me to do  goods receipt.    Pl  tell me  what to do.
    Thanks
    kamala

    Hi,
    SAP recommands production order settlment to be beow object and additional CO Object COPA.
    Settlement Receivers Depending on the Scenario
    1.Make-to-stock production >>The make-to-stock inventory (receiver = material) >> COPA
    2.Sales-order-related production with a valuated sales order stock>>The valuated sales order stock (receiver = material)>>COPA
    3. Sales-order-related production with a nonvaluated sales order stock>>The sales order item (receiver = sales order)>>COPA
    The scenario you are trying is doesn't fit into standard SAP framework for production order so please try said scenario with CO production order. Again CO production orders mostly recommondable without PP so figure out impact on cross modules.
    Regards,Ashok.

  • JMS destination key used for message ordering not working

    Hi there,
    i'm using Weblogic 10.3. I've been trying to implement ordering of messages using a destination key assigned to a JMS message queue. The default ordering is FIFO (it uses the JMSMessageID in ascending order for this).
    According to documentation (http://download.oracle.com/docs/cd/E12840_01/wls/docs103/ConsoleHelp/taskhelp/jms_modules/destination_keys/ConfigureDestinationKeys.html) one can also configure the queue to behave in a LIFO manner by creating a destination which sorts on the JMSMessageID in a descending order.
    I have tried this, it does not work. I have also played with different message priority settings and tried to sort on the JMSPriority field of the messages in ascending and descending order, it changes nothing. Messages keep being processed in a FIFO manner.
    Has anyone been able accomplish message ordering other than FIFO? Am I missing something?
    Any assistance would be highly appreciated!

    Why not try
    if (_key.keyPressed(TAB)) then
    -- DO WHATEVER CONDITION
    end if
    im not sure if that is the correct way of telling the system
    to use the TAB key but this works for RETURN when the user hits the
    enter key, so if u substitute the TAB for the command to use the
    TAB key im sure it will work
    im sorry if it doesnt tho, but its worth a try if your still
    struggling

  • GR for Production Order, not updating Stock

    Hi All,
    Issue:
    I am posting a GR for a production order, but the stock qty is not getting updated. I checked in MB51, i find the document being posted, but in MMBE the stock is not updated. In the system, there is 2 settlement profiles, one which allows settlement on material & the other only on G/L or Cost Center. I find this issue only when i create orders which have settlement receivers as G/L or Cost Center, also in MB51 i find that the sloc field is blank, even though it is maintained in the order & the same is seen when i receive via MB31.
    Await your inputs as to where i need to check to resolve this issue.
    Regards,
    Vivek

    Hi Prasobh,
    I believe your pointing in the right direction. My suspicion is on similar lines.
    A brief backdrop:
    Order is created, whose settlement is to be done on a G/L acct, the settlement profile does not allow settlement onto material & hence in the GR tab, the GR non-valuated indicator is ticked. I manually ticked the GR indicator to post GR via MB31.
    In MB51 i find the material document, but what is interesting is, the storage location field is blank, even though the order contains this value, which was later seen during MB31 posting as well.
    But a similar order has been created in the legacy system with the same parameters as above & i find the stock to be updated.
    So i suspect, it is something to do with the account determination, which is not allowing the quantity updation to take place, because of the GR non-valuated tick in the order header.
    Hope i was able to put across the issue to you in a clear way.
    Regards,
    Vivek

  • Reauthorization process for expired orders not working

    hi..
    i'm working as a developer on oracle apps 11i...my problem is that whenever i try to start reauthorization process for the expired orders...the oracle API is not calling the expired orders...I cant understand why this is happening...can someone pls help me on this issue...

    zero rows inserted..
    any idea why?
    this is the last version of my code:
    INSERT INTO tdl_task (task_id, task_event_id, task_category_id, subcategory_id, task_priority, task_name_details, task_type_name_id, task_type2)
    SELECT tdl_task_seq.nextval, V('P12_COPY_TDL_FROM_EVENT'), task_category_id, subcategory_id, task_priority, task_name_details, task_type_name_id, task_type2
    FROM tdl_task
    WHERE task_event_id = V('P12_EVENT_ID');
    COMMIT;

  • Downloaded Elements 7 and My ID for product is not working

    I have just upgrade my Laptop and decided to transfer Elements 7 to the new system. I've logged into my Adobe account and check the product key number was present.
    But on typing in my product key it will not accept it.. Any ideas

    a nice red cross. invalid code..
    even though this is the one off my adobe account.

  • ATP for production order

    Hi Friends,
    Need your help to figure out solution for an issue :
    I need ability to substitute alternate component when we do ATP during release of a production order.
    As far as I know, we can do this in 2 ways
    1) Maintain alternate BOM with the substitute material
    2) Use GATP production substitution procedures
    Can you think of any other ways of doing this. I do not want to use GATP (within APO) and want to get this done in ECC itself.
    Please suggest!!!

    Thanks for the reply Suri.
    I dont think I can use this as there will be multiple alternates for a product.
    Did anybody use GATP for production orders, not CTP or MLATP but vanilla ATP and RBA. Please let me know what precautions should be taken and are there any considerations for using the functionality. I have used GATP for sales orders earlier but never for production orders, I assume functionality should be same except for the business even which would be PP.
    Thanks and waiting for replies.
    Prod_Planner

  • How to restrict the GR for Production Order when Goods Issue is not done

    Hi Gurus
    How to restrict the GR for Production Order when all the required components for production order are not issued with all required quantity. Even for partial issue system should not allow GR with 101. The user status with RMWA, RMWF & CGFB is not working.
    Pls suggest best solution.
    Abhijit.

    Hi,
    You can club together the GI nad GR at the time of confirmation..
    I.e Backflush for the components and auto GR for the Product.
    So that you can stream line the Process.
    The best Option would be to use the User Exit:
    Enhancement - MBCF0002
    Functional Module - EXIT_SAPMM07M_001
    Include - ZXMBCU02
    Refer below link for further details..
    How to stop the goods receipt before issueing the goods for production orde
    Regards,
    Siva

  • Transfer Order not created while performing GR for Production order

    Hi, I am facing a problem while recieving stock from a production order. The system does not create a transfer requirement or a TO.
    Let me give you a brief background.
    This is a new functionality introduced in ECC 6.0 for working with kanban in WM.
    Supply area is created for WM location.
    Control cycle is created for material, supply area. Warehouse, storage type and Bin is maintained in control cycle record. When the GR is done for production order material is recieved in this bin.
    1) Now when the Kanban is set empty a production order is automatically created.
    2) Once the production order is confirmed the material automatically shows up in the bin.
    A material document is created which shows IM movement type 101 and WM movement type 103. Also in material document Immediate auto TO checkmark is blank.
    3) *PROBLEM* - System does not create a TR or a TO. the material automatically shows up in the Bin. How can we enable an auto TR and TO creation.
    Following are the settings which I have already checked:
    1) In IMG, WM movement type 103 has auto TO indicator set.
    2) IM-WM interface for 102 movement type and 103 movement type is maintained.
    The main problem is: Although the material document displays WM movement type 103 and the stock lies in WM bin, System never created a Transfer requirement or a Transfer order.
    I would really appreciate if anyone can help me in this.
    Thanks

    Hi Mike,
    I do not know this function in SAP, so these are just my ideas:
    1.
    System does not create a TR or a TO. the material automatically shows up in the Bin.
    I think it's a normal SAP behaviour. If you do GR against a PO the quant(s) will appear in interim storage bin w/o TO. The TO is to move the quants from one bin to another, but in this case the quant comes from 'nothing' and arrives at the bin.
    If you make confirmation and consume the components refering to a PrdOrd, the components will disappear w/o TO from storage type 100 + dynamic bin, because there's no TO that could move them from dynamic bin to 'nothing'.
    So, these 'movements' are to change the WM stock level and TOs are not designed for this.
    2.
    There's difference between auto creation of TO and immediate TO creation. Please check what SAP help says in case of TOs for outbound deliveries:
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/f8406c4afa11d182b90000e829fbfe/frameset.htm
    3.
    Now when the Kanban is set empty a production order is automatically created.
    So, if you remove the stock from the Kanban it triggers the creation of a PrdOrd. This is very logical in a Kanban system because it is a pull system. but your problem is not this, it's clear.
    If you just created an automatic TO and would remove the stock from Kanban-bin, a new PrdOrd would be generated, and so on. As many times you remove the stock a new PrdOrd is created and this might be the reason why no TO is crated automatically. In this case this would be a push system and not kanban system.
    I do not know this process but if we concentrate only on the pull system, maybe this Kanaban is to store the FG until an event (e.g. shipment) should trigger the stock removal from this bin. (just my assumption)
    Please try to mark the TR creation for the movement type w/o auto / immediate TO and tell us the result (whether you get the TR if you confirm the PrdOrd).
    Regards,
    Csaba

  • Production scheduling profile for production order type 10 does not exist – SAP Message No.10085

    When i tried to make confirmation for Production Order through CO15 transaction , i receive the following error message “ Production scheduling profile for production order type 10 does not exist – SAP Message No.10085 “
    In Work Scheduling view, Production Scheduling Profile is maintained as per OPKP only.
    How to check whether production scheduling profile is maintained for relevant order type 10.
    To do this , i went to OPKP & KOT2_OPA transactions but i don’t know how to check. I guide me through with a screen shot.
    Also, pls explain about  “Order Type 10” and how it is linked with material and order execution.
    Looking for a detailed explanation with screen shots , since i am new to SAP.
    Thanks With Regards,
    Dinesh Kumar V.

    Hello Dinesh,
    Please check the order type dependent parameter in OPL8 here you will get the Substitute Scheduler
    Then go to OPCH and check valid production scheduling profile assign here as per OPKP to your production scheduler for your plant.
    Production order have Order category as 10  Process Order  40 in standard SAP you can check this in OPJH.
    Best Regards,
    R.Brahmankar

  • Production scheduling profile for production order type 10 does not exist

    Kindly suggest me how to resolve this error
    Production scheduling profile for production order type 10 does not exist

    Hi Archana,
    Go to material master-work scheduling view and check what is the production scheduling profile maintained for the same materisl -plant combination.
    then go to OPKP and check if production scheduliong profile is maintained for relevent order type 10 in custmizing. If not maintain one and it should resolve the error.

  • Report to check open reservations for production orders where GI not posted

    Hi experts,
    Can we get reservation details from any report/ table for production order where material has not been issued, report should also display the value of the reserved material.
    I could not find desired details in RESB (it has price but not value) and MB25.
    Thanks in advance, useful ansers will be rewarded.
    Thnx
    Anand

    Hello Anand,
    there is no report but you may use the production order info system with list "components" and create a layout contaning the issued quantity and/or the final issue indicator. With a correct sorting, the list should show all orders with non-issued components at the top.
    Regards, Andreas

  • Scheduling parameters are not defined for production orders

    Hi All,
             when i convert the planned order to production order  i got this massage popup coming  Scheduling parameters are not defined for production orders . please let me know this .

    Hi,
    One of major customization steps for the order type is missing. Run OPU3 and maintain settings for the order type you are using. You may copy settings from an older type.
    Regards.

  • Work center for Production order

    Hi,
    In my report I need to link the production order to work center. I have got all the information for the production order from AFKO, but I am unable to find a way to link it to the work center?
    Thanks
    Vamsi

    Hi Vamsi,
    Refer value AFKO-AUFPL, Use AFVC-AUFPL to fetch the operation details of an order. Fetch AFVC-ARBID for AFVC-AUFPL, use CRHD-ARBID to get Work center details.
    Regards,
    Prasobh.
    Award your marks, if this has helped you.

Maybe you are looking for

  • Display only first value of the repeated values  in ALV report

    Hi, Test Data Doc No   Net Val   billing Doc value Qty 1000      2000.00    567850.00 1000      2000.00    567850.00 1000      2000.00    567850.00 2000      6000.00    767850.00 In this type of ALV Report in which only the First field value of the r

  • Problem with .sitx files (Safari but not Firefox???)

    Hi All, I have a website online (with help from iWeb and BBEdit) but am having a problem I cant figure out (this IS my first website!) I am hoping that someone much more knowledgeable than me can help me with it. I basically have a download section.

  • Adding a print screen to a textarea

    Hello, I'm using APEX 3.2 on 11g and have built a applicaiton for users to request IT support. It has a file browse item on the request form. The user can upload the attachment and it saves to the database. We have a process that sends an email to th

  • Create or remove link between a webi doc and a category with SDK

    Hi, I'd like to use SDK to assign a category to a webi document, or to "uncategorized" document (remove the link between the document and a Corporate Category). I first tried to select the document in the infostore (via infoobjects, "select * from CI

  • CUPC: Error IM'ing contact from Search results

    We're running Presence 7.0.5.x and CUPC version 7.0(2.13496). If we use the search function to find a contact, and then double-click to Instant Message the contact, we get an error "This contact appears to be offline and cannot receive your messages