Error in GR for a Production Order for a particular material....Unique case

Hi Dear Gurus,
I am facing the following problem:
There is a production order for a material (say X, matrl type FERT) of order qty 21EA. First we did GR of qty 9EA. but when we are going to do GR for the rest of the qty i.e.12EA it is not happening system showing Error message " Account XXXXX requires an assignment to a CO object".
But while we are going to do GR for the rest 12Ea qty in two parts i.e. first by doing GR of 11EA then 1EA system is accepting.
Interestingly if do the GR for the same order as first by 8EA and then the rest 13EA that is also accepting.
Eventhough, for any other material (of same type and group) if we make a production order of the same 21EA and then doing GR firstly by 9Ea and then 12EA that is also getting posted properly.
What would be the reason for the error message for that particular case?
Here the system is SAP4.5B version, material MRP type is M0, lot size  FX & fixed lot size 10Ea, safety stock 8EA, Reorder point 15.
Thanks in advance for your inputs.
Regards,
Arghya

REfer this link..
[https://forums.sdn.sap.com/click.jspa?searchID=25161817&messageID=7040673]
[https://forums.sdn.sap.com/click.jspa?searchID=25161817&messageID=7159723]
hope the above helps..
karthick

Similar Messages

  • Error while converting planned order to production order for config materia

    Hi experts,
    While converting a planned order to production order for a configurable material.I am getting the following error meassage. Message No.CO684,
    "You cannot make an assignment to make-to-order stock"
    ( DiagnosisThe component cannot be allocated to an individual stock because make-to-order production and engineer-to-order production cannot be executed with this order.
    A possible cause is that you are trying to create an order with reference to a sales-order/project, where an account assignment to a sales order/project is not allowed in the settlement profile that is assigned to the chosen order type. This is inconsistant.
    System ResponseThe following responses are possible:
    Order processing is cancelled.
    The system resets the special stock indicator back to the original value.
    Procedure
    Choose another order type).
    I have checked some of the threads related to this error. But no where there is any solution.Please tell me if there is any settings to make so as to work on this scenario.
    Thanks,
    Sham

    Hi,
    This will be a MTO scenario. Please check your requirement type,Requirement class and strategy type config along with your Item category and schedule line category from SD.
    Also check your Production order type config and settlement profiles.
    I mean to say that you need new production order type to be configured for specific above mentioned combination.
    Are you working on a production system..?? is it the first time you are creating the order for this config material..??
    Regards,

  • Production Order For Project with plant stock

    Hi,
    We have a scenario where in we are required to create a production order for a project.
    But the material(raw material) is in a storage location and is a stock item. Even the header material is also a stock item and it to stored in the storage location.
    But the order is to be created for Project and to be settled to the Project. Now the system is not allowing me to create the order.
    The error is :
    "Project  does not allow make-to-order stock
    Message no. CO746
    Diagnosis
    There is no project stock for the project.
    To create a production order with reference to a WBS element the project must allow project stock to be maintained.
    Procedure
    You should select a project that allows project stock."
    Now,
    I don't want to have a project stock. How to go forward...
    Regards
    Pavan

    Hi,
    What is the strategy you are using. If you are using strategy 20, then chnage it to 40.
    Also maintain individual/collective indicator to "1" - individual in MRP-4 view. So that when the order is created, the stock will be reserved as Q-project stock.
    thanks and regards
    Murugesan

  • How to create a Reservation for my production order

    Hi,
    I have a production order for that I need to purchase 2 materials. but my problem is when the material come there is no reservation for my production order. someone can take it for another production order. How can I do that the system create a  reservation after the GR
    Thank

    Dear,
    When you create and release production order, the reservation is created for that order. Now you should first activate the Avelability check in production order.
    It is PP configuration
    Then you need to activate dynamic aveailability check in goods issue in MM configuration.
    Hence if the stock is reserved for your production order, then no one can issue and system will give error message.
    please come back if required.

  • Costing the production order for the configured material

    We are trying to cost the production order for a configurable item.  But the system is not calculating any cost in the production order.  Sales order related to this configurable material is costed.  What additional setting I need to cost the production order for the configured material ?

    Hi Niki
    If your SO is costed, thats enough from a System's perspective... Planned cost will be the sales order cost estimate because SO saves the Chars required for the Configurable material
    Planned cost in Prod order depends on the Costing variant you have assigned in the order type... Check the error log if there is any error in cost calculation in prod order
    br, Ajay M

  • Cannot release production order for a plant

    Hi:
    When I try to release a process order , I get this error message:
    "CAnnot release production order for plant".
    I get this message  for a particular material in the plant. For other materials, it's working fine.
    Please give your suggestions!
    Gautham

    Hi,
    Check the Tasklist usage for your routing for that material.
    For this usage ,check in op45 against the task list type whether until release indicator has been enabled.If so remove
    and do the release.
    or
    check whether workcenter which is used for producing the   material has been locked in work center itself.
    Indicator: Usage only until release in orderIndicator used to specify for a task list usage and a task list type that an operation in the order cannot be released.  This occurs when a work center group that is not intended for production is allocated to this operation.
    When this type of operation in the order is released you must enter the work center where production should take place.
    Regards,
    nandha

  • For a Production order - Operation wise Inspection Lot

    Hi Experts,
    Please help me out to resolve the following problems.
    1. How can we create inspection lot for each operation for a production order?
    If a production order has 10 operations, I will have to have 10 inspection lots for that order.
    2. I have a final assembly called A with components B & C. Some other material called D has similar characteristics of B.
        But sometimes, for A, instead of B (if stock is not available), i want to use D also. Please note that, if B is not available, then
        only, I will use D. Otherwise always B only, so we cannot go with probability.
    How can we map this scenario? and MRP run also should consider D if B is not there.
    Thanks in advance.
    Regards,
    Vijay.

    Dear
    Answer Q1 : Go to SPRO > Production> Shop floor control> operations > confirmation> define confirmation parameters
    Maintain
    1)Operation sequence u2013 error when operation sequence is not adhered to
    2) Over delivery u2013 Error when over delivery tolerance is exceeded
    3) Results Rec. (QM)- Error message if no Insp results exist
    So what these setting helps is that  :
    1)All operation has to be confirmed operation wise means 0010 has to be confirmed for confirming 0020 operation. SO production guys can only confirm 0040 operations only after 0030 operations is confirmed by quality personal.
    2)Over delivery is not allowed means of in 0030 operation if only 50 quantity is confirmed in 0040 operation only 50 can be confirmed. Production people cannot confirm more than 50 quantities
    3) Also PP personal cannot confirm operation 0030 through C011N till the result recording of that operation is done through QA32.
    4)Maintain Operation Control Key -PP01 with marked Inspection Character Marked -OPJ8  and maintain this Control Key for   those operation which are required for Inspection Lot .
    Now For QM stand point , activate inspection type 03 and 04 in material master. For 03 type of inspection, you have to make routing in CA01. So when you release your production order, an inspection lot will be generated. This lot will not be stock relevant. This is just to check that you production is in accordance with quality norms. Only after clearing this lot from quality you can do your order confirmation, otherwise system will give hard error due to 3rd point of prev post.
    For 04 type of inspections, prepare inspection plan in QP01. Now when order is confirmed, an inspection lot of 04 origin will be created in quality, and this is stock relevant and for final inspection of production order material.
    If you need you can set for early inspection as well. That will give you another intermediate stage before final inspection. Inspection points are also an option if suites your requirement.
    If you need more inspections, I suggest go for manual inspection lots of 04 origins, they are created in ref to order and are not stock relevant.
    Q2 : Please explore this thread for options explained for Alternative Item selection .
    Alternate Item in BOM
    Regards
    JH

  • BAPI for Open production orders

    Hi All,
    Any BAPI for open production orders?.... Using BAPI i want to upload open production orders informatiomations.... Please help
    Thanks & Regards
    Santhosh

    Hi,
       Please check the following BAPI,
    Goto BAPI tcode, select hierarchical tab
      Production orders,ProductionOrder ,ProdOrdConfirmation , RCVPRORDCF and check the BAPIs

  • Production Order for a material without BOM and Routing

    Is it possible to create a production order for a given material without routing and BOM, I know we can
    create a production order for a material without a BOM (with a default routing) just wanted to check with
    the above criteria
    Thanks in Advance!!

    Members:
    Thank you for your valuable replies and time
    Santosh:
    Tried what you have mentioned, but system still picks up a default routing
    Kaushik:
    Maintained Default values in OPJG for the given order type, but system still picks up
    default routing
    Mangalraj:
    have no issue in creating a production order without a BOM, but I am trying to see
    is there a way where I can create a production order without a BOM and routing (not
    even default operation )
    Any suggestions on how to create a production order for a material without a BOM
    and routing (not even default one )

  • Open the reservation for the Production order

    Hi,
    I have post the GI for Production order MB1A with movement type 261 from 100 peaces components. I would like to cancel a partial quantity of components from this posting (about 30 peaces). After cancel it the reservation for the production order has to be open for 30 peaces of components.
    I've canceled it through MB1A and mtype 262 but the reservations weren't open and in the PO (component overview there is always the sign"the Final Issue for This Reservation").
    Which T.code and mtype could I use.
    Thanks
    Dede

    Hi,
    Have you cancelled the movement (of 30 pieces) by selecting the "with reference" option from the menu?
    If not, then reverse the current cancellation document. Then again cancel the 261 movemtn by selecting the with refernce button from the menu. It will sove the problem.
    Check & revert.
    Regards,
    Rohit.

  • How to get all production orders for a workcenter

    Hello ...
    I have a requirement to create a report of all production orders for a given workcenter.  The user enters the workcenter (CRHD-ARBPL), plant (CRHD-WERKS) and a date range, and wants to see a list of orders (AUFNR) that fall within that date range along with some other data from AFKO and AFPO. 
    I can't figure out a good, consistent way to get from workcenter to production orders.
    Any ideas?
    Thanks!
    Sharon

    Hi there check this program for relation between SO PO and Production order
    REPORT z_so_info.
    TABLES: vbak, vbap, afko, afpo.
    *Field catalog
    TYPE-POOLS: slis.
    DATA: lv_repid TYPE sy-repid VALUE sy-repid,
    xfield TYPE slis_t_fieldcat_alv,
    afield TYPE slis_fieldcat_alv.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(25) text-002.
    SELECT-OPTIONS: so_so FOR vbak-vbeln OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-003.
    PARAMETERS:
    p_kunnr LIKE vbak-kunnr, " sold-to
    p_kunwe LIKE vbak-kunnr. " ship-to
    SELECTION-SCREEN END OF BLOCK b2.
    *Constants
    CONSTANTS: c_zor TYPE vbak-auart VALUE 'ZOR',
    c_we TYPE vbpa-parvw VALUE 'WE',
    c_ag TYPE vbpa-parvw VALUE 'AG'.
    * c_space TYPE space.
    *Ranges
    RANGES: ra_parvw FOR vbpa-parvw,
    ra_kunnr FOR vbpa-kunnr.
    *Tables
    DATA: BEGIN OF gt_output OCCURS 0,
    vbeln LIKE vbak-vbeln, " sales order number
    posnr LIKE vbap-posnr, " SO item number
    matnr LIKE vbap-matnr, " material number
    sh LIKE vbpa-kunnr, " Ship-to
    sp LIKE vbpa-kunnr, " Sold-to
    lifnr LIKE ekko-lifnr, " Vendor
    bstnk LIKE vbak-bstnk, " PO number
    banfn LIKE vbep-banfn, " Purchase requi
    po_st TYPE char30, " PO status text
    pstyv TYPE vbap-pstyv, " Item catagory
    aufnr LIKE afpo-aufnr, " Production Order
    prd_stat TYPE string, " Prd order status
    END OF gt_output.
    DATA: wa_output LIKE gt_output.
    FIELD-SYMBOLS: <fs_output> LIKE gt_output.
    *Table for sales order and PO
    TYPES : BEGIN OF gs_data,
    vbeln TYPE vbak-vbeln,
    posnr TYPE vbap-posnr,
    pstyv TYPE vbap-pstyv,
    matnr TYPE vbap-matnr,
    END OF gs_data.
    DATA: gt_data TYPE STANDARD TABLE OF gs_data,
    wa_data TYPE gs_data.
    *Table for Production Orders
    TYPES: BEGIN OF gs_prd,
    aufnr TYPE afpo-aufnr,
    posnr TYPE afpo-posnr,
    kdauf TYPE afpo-kdauf,
    kdpos TYPE afpo-kdpos,
    wepos TYPE afpo-wepos, "Goods Receipt Indicator
    elikz TYPE afpo-elikz, "Delivery Completed Indicator
    objnr TYPE aufk-objnr, "Object number
    * getri TYPE afko-getri, "Confirmed Order Finish Date
    * gltri TYPE afko-gltri, "Actual finish date
    END OF gs_prd.
    DATA: gt_prd TYPE STANDARD TABLE OF gs_prd,
    wa_prd TYPE gs_prd.
    *Table for partner data
    TYPES: BEGIN OF gs_partner,
    vbeln TYPE vbak-vbeln,
    posnr TYPE vbap-posnr,
    parvw TYPE vbpa-parvw,
    kunnr TYPE vbpa-kunnr,
    END OF gs_partner.
    DATA: gt_partner TYPE STANDARD TABLE OF gs_partner,
    wa_partner TYPE gs_partner.
    TYPES: BEGIN OF gs_po,
    ebeln TYPE ekkn-ebeln,
    ebelp TYPE ekkn-ebelp,
    vbeln TYPE ekkn-vbeln,
    vbelp TYPE ekkn-vbelp,
    END OF gs_po.
    DATA: gt_po TYPE STANDARD TABLE OF gs_po,
    wa_po TYPE gs_po.
    TYPES: BEGIN OF gs_preq,
    vbeln TYPE vbep-vbeln,
    posnr TYPE vbep-posnr,
    banfn TYPE vbep-banfn,
    END OF gs_preq.
    DATA: gt_preq TYPE STANDARD TABLE OF gs_preq,
    wa_preq TYPE gs_preq.
    TYPES: BEGIN OF gs_po_stat,
    ebeln TYPE ekko-ebeln,
    procstat TYPE ekko-procstat,
    lifnr TYPE ekko-lifnr,
    END OF gs_po_stat.
    DATA: gt_po_stat TYPE STANDARD TABLE OF gs_po_stat,
    wa_po_stat TYPE gs_po_stat.
    *Field symbols
    FIELD-SYMBOLS: <fs> TYPE tj02t-txt04,
    <fs_temp> TYPE tj02t-txt04,
    <fs_stat> TYPE char30.
    START-OF-SELECTION.
    PERFORM fr_build_range.
    PERFORM fr_get_data.
    PERFORM fr_build_fc.
    PERFORM fr_output.
    *& Form fr_get_data
    * text
    * --> p1 text
    * <-- p2 text
    FORM fr_get_data.
    *Get SO
    SELECT a~vbeln a~posnr a~pstyv a~matnr
    FROM vbap AS a
    JOIN vbak AS b
    ON a~vbeln = b~vbeln
    JOIN vbpa AS c
    ON b~vbeln = c~vbeln
    INTO TABLE gt_data
    WHERE b~vbeln IN so_so
    AND b~auart EQ c_zor "Only Sales Orders
    AND c~kunnr IN ra_kunnr. "from selection screen
    DELETE ADJACENT DUPLICATES FROM gt_data COMPARING vbeln posnr.
    *get data of the production order
    IF NOT gt_data[] IS INITIAL.
    SELECT a~aufnr a~posnr a~kdauf a~kdpos a~wepos a~elikz
    b~objnr
    FROM afpo AS a
    JOIN aufk AS b
    ON a~aufnr = b~aufnr
    INTO TABLE gt_prd
    FOR ALL ENTRIES IN gt_data
    WHERE a~kdauf EQ gt_data-vbeln
    AND a~kdpos EQ gt_data-posnr.
    ENDIF.
    *Get partner data
    IF NOT gt_data[] IS INITIAL.
    SELECT vbeln posnr parvw kunnr
    FROM vbpa
    INTO TABLE gt_partner
    FOR ALL ENTRIES IN gt_data
    WHERE vbeln EQ gt_data-vbeln.
    ENDIF.
    *Get Purchase Order
    IF NOT gt_data[] IS INITIAL.
    SELECT ebeln ebelp vbeln vbelp
    FROM ekkn
    INTO TABLE gt_po
    FOR ALL ENTRIES IN gt_data
    WHERE vbeln EQ gt_data-vbeln
    AND vbelp EQ gt_data-posnr.
    SELECT vbeln posnr banfn
    FROM vbep
    INTO TABLE gt_preq
    FOR ALL ENTRIES IN gt_data
    WHERE vbeln EQ gt_data-vbeln
    AND posnr EQ gt_data-posnr.
    ENDIF.
    IF NOT gt_po[] IS INITIAL.
    SELECT a~ebeln a~procstat a~lifnr
    FROM ekko AS a
    JOIN ekpo AS b
    ON a~ebeln = b~ebeln
    INTO TABLE gt_po_stat
    FOR ALL ENTRIES IN gt_po
    WHERE b~ebeln EQ gt_po-ebeln
    AND b~ebelp EQ gt_po-ebelp.
    ENDIF.
    *Move data to output table
    LOOP AT gt_data INTO wa_data.
    wa_output-vbeln = wa_data-vbeln.
    wa_output-posnr = wa_data-posnr.
    wa_output-pstyv = wa_data-pstyv.
    wa_output-matnr = wa_data-matnr.
    READ TABLE gt_po INTO wa_po WITH KEY vbeln = wa_data-vbeln
    vbelp = wa_data-posnr.
    IF sy-subrc EQ 0.
    wa_output-bstnk = wa_po-ebeln.
    READ TABLE gt_po_stat INTO wa_po_stat WITH KEY ebeln = wa_po-ebeln.
    IF sy-subrc EQ 0.
    wa_output-lifnr = wa_po_stat-lifnr.
    CASE wa_po_stat-procstat.
    WHEN '01'.
    wa_output-po_st = 'Version in process'.
    WHEN '02'.
    wa_output-po_st = 'Active'.
    WHEN '03'.
    wa_output-po_st = 'In release'.
    WHEN '04'.
    wa_output-po_st = 'Partially released'.
    WHEN '05'.
    wa_output-po_st = 'Released Completely'.
    WHEN '08'.
    wa_output-po_st = 'Rejected'.
    ENDCASE.
    ENDIF. "inner read subrc
    ENDIF. "outer read subrc
    READ TABLE gt_preq INTO wa_preq WITH KEY vbeln = wa_data-vbeln
    posnr = wa_data-posnr.
    IF sy-subrc EQ 0.
    wa_output-banfn = wa_preq-banfn.
    ENDIF.
    READ TABLE gt_prd INTO wa_prd WITH KEY kdauf = wa_data-vbeln
    kdpos = wa_data-posnr.
    IF sy-subrc EQ 0.
    wa_output-aufnr = wa_prd-aufnr.
    *get the purchase requisition for production order as well
    SELECT SINGLE banfn
    FROM ebkn
    INTO wa_output-banfn
    WHERE aufnr EQ wa_prd-aufnr.
    *Get the status of the production order
    PERFORM fr_get_prd_stat USING wa_prd-objnr
    CHANGING wa_output-prd_stat.
    ENDIF. " sy-subrc
    READ TABLE gt_partner INTO wa_partner WITH KEY vbeln = wa_data-vbeln
    parvw = c_we.
    IF sy-subrc EQ 0.
    wa_output-sh = wa_partner-kunnr.
    ENDIF.
    READ TABLE gt_partner INTO wa_partner WITH KEY vbeln = wa_data-vbeln
    parvw = c_ag.
    IF sy-subrc EQ 0.
    wa_output-sp = wa_partner-kunnr.
    ENDIF.
    APPEND wa_output TO gt_output.
    CLEAR: wa_data, wa_prd,wa_partner,wa_output.
    ENDLOOP.
    ENDFORM. " fr_get_data
    *& Form fr_build_range
    * text
    * --> p1 text
    * <-- p2 text
    FORM fr_build_range .
    *Range for partner function
    MOVE 'I' TO ra_parvw-sign.
    MOVE 'EQ' TO ra_parvw-option.
    MOVE 'SH' TO ra_parvw-low. " we
    APPEND ra_parvw.
    CLEAR ra_parvw.
    MOVE 'I' TO ra_parvw-sign.
    MOVE 'EQ' TO ra_parvw-option.
    MOVE 'SP' TO ra_parvw-low. " ag
    APPEND ra_parvw.
    CLEAR ra_parvw.
    *Range for ship-to and sold-to
    MOVE 'I' TO ra_kunnr-sign.
    MOVE 'EQ' TO ra_kunnr-option.
    MOVE p_kunnr TO ra_kunnr-low.
    APPEND ra_kunnr.
    CLEAR ra_kunnr.
    MOVE 'I' TO ra_kunnr-sign.
    MOVE 'EQ' TO ra_kunnr-option.
    MOVE p_kunwe TO ra_kunnr-low.
    APPEND ra_kunnr.
    CLEAR ra_kunnr.
    ENDFORM. " fr_build_range
    *& Form fr_build_fc
    * text
    * --> p1 text
    * <-- p2 text
    FORM fr_build_fc .
    * sales order number
    afield-fieldname = 'VBELN'.
    afield-seltext_s = 'Sales #'.
    afield-ref_tabname = 'VBAK'.
    APPEND afield TO xfield. CLEAR afield.
    * sales ITEM number
    afield-fieldname = 'POSNR'.
    afield-seltext_s = 'Item #'.
    afield-ref_tabname = 'VBAP'.
    APPEND afield TO xfield. CLEAR afield.
    * Material Number
    afield-fieldname = 'MATNR'.
    afield-seltext_s = 'Material #'.
    afield-ref_tabname = 'VBAP'.
    afield-outputlen = 10.
    APPEND afield TO xfield. CLEAR afield.
    *Vendor Number
    afield-fieldname = 'LIFNR'.
    afield-seltext_s = 'Vendor Num.'.
    afield-ref_tabname = 'EKKO'.
    APPEND afield TO xfield. CLEAR afield.
    * ship-to-party
    afield-fieldname = 'SH'.
    afield-seltext_s = 'Ship-to'.
    afield-ref_tabname = 'VBPA'.
    APPEND afield TO xfield. CLEAR afield.
    * sold-to-party
    afield-fieldname = 'SP'.
    afield-seltext_s = 'Sold-to'.
    afield-ref_tabname = 'VBPA'.
    APPEND afield TO xfield. CLEAR afield.
    *PO number
    afield-fieldname = 'BSTNK'.
    afield-seltext_s = 'PO NUM'.
    afield-ref_tabname = 'EKKO'.
    APPEND afield TO xfield. CLEAR afield.
    *PO status
    * afield-fieldname = 'PO_STAT'.
    * afield-seltext_s = 'Step'.
    * afield-ref_tabname = 'zbacklog_v2'.
    * APPEND afield TO xfield. CLEAR afield.
    *PO step status
    afield-fieldname = 'PO_ST'.
    afield-seltext_s = 'PO.Status'.
    afield-ref_tabname = 'zbacklog_v2'.
    APPEND afield TO xfield. CLEAR afield.
    *Purchase requisition
    afield-fieldname = 'BANFN'.
    afield-seltext_s = 'Pur. Req.'.
    afield-ref_tabname = 'VBEP'.
    APPEND afield TO xfield. CLEAR afield.
    *Item catagory
    afield-fieldname = 'PSTYV'.
    afield-seltext_s = 'Itm. Catg'.
    afield-ref_tabname = 'VBAP'.
    APPEND afield TO xfield. CLEAR afield.
    *Prodcution Order number
    afield-fieldname = 'AUFNR'.
    afield-seltext_m = 'Prod.Order'.
    afield-ref_tabname = 'AFKO'.
    APPEND afield TO xfield. CLEAR afield.
    *PRODCUTION status
    afield-fieldname = 'PRD_STAT'.
    afield-seltext_s = 'Prd. Step'.
    afield-ref_tabname = 'zbacklog_v2'.
    afield-outputlen = 20.
    APPEND afield TO xfield. CLEAR afield.
    *PRODUCTION step status
    * afield-fieldname = 'PRD_ST'.
    * afield-seltext_s = 'Prd. Status'.
    * afield-ref_tabname = 'zbacklog_v2'.
    * APPEND afield TO xfield. CLEAR afield.
    ENDFORM. " fr_build_fc
    *& Form fr_output
    * text
    * --> p1 text
    * <-- p2 text
    FORM fr_output .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    * I_CALLBACK_PF_STATUS_SET = ' '
    * I_CALLBACK_USER_COMMAND = ' '
    * I_STRUCTURE_NAME =
    * IS_LAYOUT =
    it_fieldcat = xfield[]
    i_default = 'X'
    i_save = 'A'
    TABLES
    t_outtab = gt_output
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    ENDFORM. " fr_output
    *& Form fr_get_prd_stat
    * text
    * -->P_WA_PRD_OBJNR text
    FORM fr_get_prd_stat USING p_objnr CHANGING p_prd_stat.
    DATA: lt_status TYPE STANDARD TABLE OF jstat,
    wa_status TYPE jstat,
    lv_status TYPE tj02t-txt04,
    lv_temp2 TYPE char5,
    lv_buff TYPE string.
    CALL FUNCTION 'STATUS_READ'
    EXPORTING
    client = sy-mandt
    objnr = p_objnr
    only_active = 'X'
    TABLES
    status = lt_status
    EXCEPTIONS
    object_not_found = 1
    OTHERS = 2.
    LOOP AT lt_status INTO wa_status.
    IF wa_status-stat(1) EQ 'I'.
    SELECT txt04 FROM tj02t
    INTO lv_status
    WHERE istat EQ wa_status-stat
    AND spras EQ 'E'.
    ENDSELECT.
    lv_temp2 = lv_status.
    CONCATENATE lv_temp2 p_prd_stat INTO p_prd_stat
    SEPARATED BY ','.
    ENDIF.
    CLEAR: wa_status, lv_status, lv_temp2.
    ENDLOOP.
    lv_buff = p_prd_stat.
    *Status of Production Order
    IF lv_buff CS 'CRTD'.
    p_prd_stat = 'Not Active'.
    ENDIF.
    IF lv_buff CS 'REL'.
    IF lv_buff CS 'GMPS'.
    p_prd_stat = 'Printed In Prod'.
    ELSE.
    p_prd_stat = 'Printed'.
    ENDIF.
    ENDIF.
    IF lv_buff CS 'TECO'.
    p_prd_stat = 'Technically Compt.'.
    ENDIF.
    ENDFORM. " fr_get_prd_stat

  • How to get a list of production orders for a work center?

    Hello SDN Community, 
    I have an requirement to display in a pop-up window a list of production orders for a work center.
    Does anyone know which screens/transactions would show this relationship?
    Or better yet, does anyone know how to demonstrate this from the tables themselves?
    Thank you,
    Dean Atteberry.

    Hello Mangalraj.S
    >>Goto COOIS-->For the field List select PPIOO000 - operations and layout -->standard layout
    >>and execute,by this you will be able to see the operations for each order and to which
    >>work center they are assigned.
    The system I am working on is ECC 6.0.
    For this system the values in the dropdown for the "List" field are "Capacities, Items, Order Headers, Sequences, Trigger Points, etc".  But nothing that says PPIOO000 - operations and layout.
    >>Or else in the in input screen of COOIS,enter the work center for which you want to see which
    >>are the production order's assigned and execute.
    For system I am working in, I do get a grid display when entering a work center.  It has columns like "Order, Material, Icon, Order Type, MRP cntrlr, etc."   But no column with Work Center.
    Any further insight into how to use this transaction to display a list of production orders for a work center would be greatly appreciated.
    Thank you,
    Dean Atteberry.

  • Is production order for one material only?

    Hello
    Is it true that one material can be specified in production order as the output (material to be produced)?
    and what is combined order? why the output material in combined order can be different from output materials in subordinate orders?
    Thanks

    Dear,
    In Combination order you can combine the serval planned, production order to one new combine order. This functionality is available in IS mill.
    For more details refer this link,
    /people/rupesh.brahmankar3/blog/2009/08/03/combining-production-and-process-orders-with-batch-production
    Regards,
    R.Brahmankar

  • Creation of Production order for FInished Product through Project

    Hi,
    Pls clear me on how we can create a Production Order for finished product.  
    If we confirm the production orders in PP, cant the same be confirmed in PS.. Should we consider the same activity types in both PS and PP
    Pls clarify

    hi srikanth,
    your answer has been very helpful... but could u clarify  why MRP is run in MD51 for WBS element and in MD02 for network..
    Pls clarify...  My scenario is like this ...                                                                               
    A
                            B                                                                                C
                    D  E F G H I                                                                                J K L M N O
    I have  a Assemblies B and C which are always delivered in sets.. under assemblies B and C,  we have 6 sub assemblies which has its own components.  I am assigning sub assemblies to differenet WBS elements 01 and 02. so, initially these sub-assemblies are produced to stock. this should happen in PP i.e., through production orders generated in MRP run ( MD51 ). In the next phase i will assign Assemblies B and C to another WBS element.  Again system should generate two Production orders thru MRP for this. Here the 6 sub-assemblies produced earlier will be consumed in confirmation of the production order...
    What i am doing is this correct...
    and the procurement for the components is happening thru the purchase requisition generated via MRP. the components themselves are not directly assigned to the project..
    Pls advise and clarify?

  • BAPI - Goods receipt and then create transfer order for a production order

    Hello Everyone
    We need to do goods receipt and then create transfer order for a production order (Material for WM scenario)
    We are using BAPI 'BAPI_GOODSMVT_CREATE'
          i_items-orderid = wa_afpo-aufnr .
          i_items-order_itno = wa_afpo-posnr.
          i_items-mvt_ind = 'F'.
          i_items-stge_loc   = wa_afpo-lgort.
         i_items-stge_type = '901'. "wf_styp.
         i_items-stge_bin = wf_sbin.
          i_items-entry_qnt  = wf_qty.
          i_items-entry_uom = wa_afpo-meins.
          i_items-entry_uom_iso = wa_afpo-meins.
          i_items-batch      = wa_zmobtag-charg.
          i_items-move_type  = '101'.
          i_items-move_reas  = wl_3131.
    We are passing i_items (like line of goodsmvt_item) along with other parameters to BAPI and its creating material document and Transfer order automatically. Problem is the TO created is showing destination storage bin as default storage bin( from material master).
    The field goodsmvt_item-stge_bin is just changing the Source bin details. There is no field for bin in the BAPI so that we can change the Destination storage bin as per our requirement.
    My requirement : Creating material doc and then TO. Material should move to specified storage bin.
    Please let me know any alternate way( No BDC) so that my requirement is achieved.
    Regards
    Swetabh

    Hi ,
    can u check these fields ,
    STGE_TYPE_PC     UBTYP     CHAR     3     0     Storage type for transfer posting
    STGE_BIN_PC     UBPLA     CHAR     10     0     Storage bin for transfer posting
    Regards
    Prabhu

Maybe you are looking for

  • Cannot Link Account Number to MyBT

    Hi guys, So the title pretty much sums this up. To give a little background on the situation, we have an issue with an outstanding bill that we need to sort out. Calling BT about the bill gave us mixed messages, so I was hoping to resolve the problem

  • Can I update OS X 10.6.3 to 10.6.8 after installation?

    I recently purchased Mac OS X 10.6 and got version 10.6.3.I expected to get version 10.6.8. Can I update to 10.6.8 after installation?

  • Tab order in ADF Form

    Hi, Anybody knows how to set the tab order in an ADF form? I'm using Jdeveloper 11.1.1.0.2. Thanks, Rikke

  • Creative cloud firewall issues (large corporation)

    Creative cloud use to work wonderfully here until the latest update. Now I can't log in via the desktop app or within the programs. The only time I can connect is when I'm off our company network. While we have requested IT take a look at this, it is

  • Iphone 4s wont send photo messages, mms

    i got my i phone 4s a few days ago and i wont send mms, i have contacted 02 they say its not there problem , Apple say its a softwear problem. does anyone else have a problem with sending MMS ?