In Production Order Old Raw Material Batch No. not being picked (FIFO)

Hi,
We have activated Batch Management for ROH type of Materials with Split Valuation and the Strategy applied is FIFO.
We have generated many such batches and consumed too, but lately out of many ROH mateials, 2 ROH who have Old Batches are not being picked and the Batch which is recently created is being picked at the time of Production Order Release.
We have not done any changes into the Master Data nor the config during this period.
Can anyone help what can be the issue ?
Thanks in advance,
Harris Panchal

Hi,
Actually our requirement is that we want to sort out the Batch as per the Earliest one and consume the earliest first, i.e. FIFO strategy.
For that the MM Consultant has configured the following Charac:
1. Stock Determination: Priority
2. Value Assignment Type
3. Batch Number
Which I am feeling should be changed and to be as per the following:
1. Created On
2. Batch Number
In OMCV, Classification is active with following option:
4     Classification in foreground for new batches only for the following movements: 101, 309, 310, 561
3     Classification always in foreground (all batches)   for the following movements: 321, 501
Requesting your valuable inputs,
Thanks and regards,
Harris

Similar Messages

  • Production order released blocking the batch created

    Hello Guru,
    I have some question to ask, in production order, when we change the order via CO02, released it (production order create:classification) for batch will appear. after completing this the order "released carried out" will be the message. and when we save the order CHANGE BATCH view will display then, the production date and shelf life expiration date was automatically populated by SAP. my question is is there a possiblity that this CHANGE BATCH when will appear the production date and shelf life expiration date was unchangeble already SAP proposed date was fixed (gray-out) or instead change batch display batch will appear? is there any set-up to make this feasible?
    we want to block the production date/shelf life expiration date in modification once SAP has already computed and proposed this date for the batch on the FG material of the production order. Please help. I know this is a standard behavior, but can this be feasible?
    Any help or inputs.
    Thanks
    Edited by: Agent X44 on Mar 11, 2009 11:50 AM
    Edited by: Agent X44 on Mar 11, 2009 12:10 PM
    Edited by: Agent X44 on Mar 11, 2009 1:15 PM

    You must have to check batch Class and its characteristics. Something wrong here.
    Regards,
    RM

  • 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 )

  • Error message while creating production order with KMAT material strategy25

    Hi PP Gurus I am running variant configuration cycle...Strategy 25, Custermer Req KEK (KMAT Matrl)
    Sales order & MRP Picked the components correctly as per the dependencies
    written. So Planned order generated against sale order.
    When I tried to convert planned order to Production order...I am getting the
    below error message..
    Error Message:
    You cannot make an assignment to make-to-order stock Message no. CO684
    Diagnosis The 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 response The 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 used order type with SD1 as settelement profile.
    OVZG: default 046, settlement profile = SD1
    OPJH: Settlement profile = SD1
    Plz through some light on this if u have worked on Variant Configuration/MTO
    settlements.
    Question:
    1) Is creation of production order with KMAT material supported by SAP?
    2) If yes, why the above error occurs?
    Waiting for Ur reply
    With Best Regards

    Dear R.Brahmankar,
    I have check on the note, but it is not relevant to ecc6. The current system default setting is :
    Standrad setting for reqt class 046
    Special Stock E
    Acct Assgt Cat. M
    Valuation M
    Settlmt Profile SD1
    However if I change the Acct Assgt Cat. from M to E. It resolve the problem. I would like to know is this the right solution?
    Config in Acct Assgt M
    Consumption Posting = E
    Config in Acct Assgt E
    Consumption Posting = '  '
    In F1 key of Consumption Posting field it shown following:
    To flag the sales order item as cost- and revenue-carrying, enter an "E" (settlement via sales order).
    If you do not wish to flag the sales order item as cost- and revenue-carrying, do not enter anything.
    Dependencies
    If you are working with nonvaluated sales order stock, always flag the sales order item as cost- and revenue-carrying.
    If you are working with valuated sales order stock:
      In the case of complex make-to-order production, flag the sales order item as cost- and revenue-carrying
      In the case of sales-order-related mass production, do not flag the sales order item as cost- and revenue-carrying
    Should we change to E?
    Regards,
    Ong

  • Can i create production order using process material ?

    Dear All.
    Please help me.
    I want to create production order using process material (material type is PROC).
    For may knowledge, process order is standard for the process material, but my customer want to use the PP module for the process material.
    But I cant convert the planned order of precess material to production order in MD05.
    The system message is "System does not support planned orders for process materials."
    The followings are my test steps.
      1. Master Creation
          - Material Master, BOM, ROUTING
    In standard, process material (Material Type : PROC) need creation of master recipe. But due to my clients need (Using production order
               for the process material), I create the work center and ROUTING
      2. DM Creation
          - In MD61, I create the planned independent requirement (Type : LSF)
      3. Planned order creation for the process material using MRP
          - In MD01, I run the total MRP, the the planned order is created.
            It's order type is "LA"
      4. Converting the planned order to Production Order
          - In this step, the system give the error "System does not support planned orders for process materials."
             and can not do anything.
    I want to know that the above case is possible, and how.
    Please Help meu2026..

    Hi
    First of if yur want to create production order or process order why do you go for material type :PROC.
    you can create the same material as FERT & go ahead.
    I do not understand the logic to select the material type as PROC.
    Pl. go through SAP library where PROC is used.
    Regards
    YMREDDY

  • Find purchase order of a material batch added in a delivery for a report re

    Hi,
    I create purchase orders in ME21N and do the inbound delivery in VL31N referring the purchase order. Sales order entry is done in VA01 and once goods is in-house allocation is done in J3AB. Outbound delivery is created in VL01N.
    For a report requirement I need to find the purchase order of the outbound delivery material batches.
    We donu2019t maintain the purchase order number any ware in the material batch. Please advice me on how to find the purchase order of a material batch added in a delivery.
    Thanks,
    Sam

    use Mb51, enter material number and batch number and movement type 101, then execute.
    You get the receipt, go into the detail and you will see the PO number
    Technically spoken, material movements are stored in MKPF and MSEG table
    Edited by: Jürgen L. on Apr 26, 2011 8:24 PM

  • HOW to AGGREGATE TRANSFER ORDERs per same material/batch?

    Hello All,
    My company runs ordering system via web. Customers usually post web orders numerous times during sales campaigns, which result uncountable no. line items on sales and delivery documents (same ship to) even if the material/batch is the same.
    1. Could somebody help me to find a way, if there is at all, how I can create Transfer Orders per the same material/batch <b>NOT</b> per delivery line items?
    I have tried to do a test scenario via <b>2-step picking</b>. Crated a valid Group but the next error came by running <b>LT0E</b> <i>"Selected group 2703 for 2-step picking not relevant"</i>
    I do not have any clue if the 2-step picking is good for solving the above issue.
    I was not able to configure WM view up to now.
    2. How should I do that for 2-step picking?
    Many thanks for any help on this,
    Ferenc

    This response may be a little too late.
    The following may help:
    Customer exit
    Text
    Description
    MWMTOAU1
    Selection of TRs for automatic TO creation
    This task allows you to influence the selection of transfer requirements for the automatic creation of transfer orders.
    MWMTOAU2
    Selection of TRs for automatic TO creation via groups
    This task allows you to influence the selection of transfer requirements for the automatic creation of multiple transfer orders using groups.
    If you have already resolved the issue, please let me know. I have the same problem

  • Lock the production order creating without material for order type zp01

    Hi all,
    Good morning.My client wants to lock the production order creating without material for order type zp01.He does not want to create production order without material.Its very urgent.Please guide me the settings if any.
    Thanks and Regards
    Sukumar

    Hi Sukumar,
    You can do by applying user exit.
    Use PPCO0007 - Exit when saving production order.
    Function module - EXIT_SAPLCOZV_001.
    Include Program - ZXCO1U06
    Write your Code:
    *&  Include           ZXCO1U06
    Regards,
    Sankaran

  • Production orders without header material transfer to APO

    Hi,
    for our process it's necessary to transfer dependent demands from rework production orders (without header material) to APO because the ATP check for the component take place in APO. In standard there is no way tor transfer such orders to APO. Only one possible solution is to add during order transfer a dummy material in order to trigger the transfer to APO. Is there anybody that have already used this???
    Best regards
    alex

    Hi JJ,
    1. Reference Operation Set - t-code CA11. In the initial screen, enter description, plant - xxxx, usage - 1 & status - 4, unit of measure - same as the material for which the routing is to be used (eg - EA or KG etc).
    Click on operations tab, enter control key, work center, operation description.
    2. Settlement - When you enter the basic details in co07 like description, basic qty, dates, the system will take you to the settlement screen where you need to enter the settlement receiver. Here you specity CTR for cost center or G/L for G/L account, you then have to specify the corresponding cost element number & also the % of settlement, which is normally 100%. You can also access this by clicking on header - settlement
    Hope the above answers your query. If additional info is required, revert back.
    If helpful award points
    Regards,
    Vivek

  • Production orders without a material

    Hi Guys,
    Can anybody explain the scenario where the concept of production orders without materials come into picture.
    Thanks
    Shailesh

    Hi,
    In addition to above answers pls find the procedure of creating Production order w/o Material :
    1.Creating Production Orders Without a Material
    Choose Logistics ® Production ® Shop Floor Control ® Order ® Create ® Without material.
    You reach the initial screen Create production order.
    2.Enter the following data:
    the plant
    the sales order (you can specify a sales order as a reference.)
    the order type (it controls whether an internal or external number range is used.)
    if you have selected an order type for which an external number assignment is required then you must also specify an order number in the field Order.
    3.You must also specify the following data:
    the responsible MRP controller
    the responsible production scheduler
    If you want to create the order with reference to an existing order then the order referenced must also be one without a material.
    4.Choose  Enter.
    The General tab page appears.
    5.Enter the following data:
    a Short text for the order
    Total quantity: Specify the quantity and the unit of measure.
    Order start date or order finish date: Depending on the scheduling type you must specify the order start and/or the order finish date.
    Production orders are generally scheduled backwards.
    Scheduling type: Use a key to specify how the order is to be scheduled.
    Scheduling margin key or float before production, float after production and release period:
    The release period, the float before production and the float after production of the order are defined using the scheduling margin key.
    If you specify a scheduling margin key the system fills these fields automatically.
    If no scheduling margin key has been specified you can specify the float before production, the float after production and the release horizon by specifying the corresponding number of days.
    6.You must also specify the following data:
    Scrap portion: You can specify the scrap quantity that you expect for this order.
    Priority: You can assign the order a priority. This field does not affect order processing.
    Long text: To create a long text for the production order choose the Long text tab page.
    7.Choose .
    You reach a dialog box where you can specify whether you want to use a reference operation set. If you do not want to use a reference operation set then a standard sequence is automatically generated with an operation.
    The system searches for a valid routing (see Routing Selection) and a valid bill of material (see Selecting Bills of Material).
    If alternative sequences exist in the selected routing, they can only be copied to the production order if alternative sequences are permitted for the order type in Customizing for Shop Floor Control: Choose Master data ® Order ® Define Order Type-Dependent Parameters.
    If you do not want to change the operations or add any components, you can now save the production order. Otherwise, change the data and then save the production order.
    Hope this helps.
    Regards,
    Tejas

  • Production order settlement, on a batch job

    Dear All,
    I need to use the KO8G, for running production order settlement, on a batch job.
    I found a SAP Note Number 498387 where is said that, for the selection of statuses of orders of the order category 10 or greater, will be used a status selection profile.
    Iu2019m using the status selection profile SAPPI07 on KO8G selection variant for orders.
    When I execute KO8G report, system gives me these messages:
    Sender 0 selectu2026
    Msg number KD233 : No settlement for this sender
    Someone have Idea how I can solve this problem.
    Regards,
    Helena

    Like I was written in my first message the Standard variant SAP&01, which contains values of Order type, Status of order...Created,Closed, Tech Complete, Released doesn´t work for production orders, like is said on SAP Note Number 498387.
    So I need use the status selection profile on variant selection.
    My problem is that, I've defined a Variant selection with status selection profile SAPPI07,wich has the status Created,Closed, Tech Complete, Released, but When I execute KO8G report, system gives me these messages:
    Sender 0 selectu2026
    Msg number KD233 : No settlement for this sender
    Can you help me?

  • Need to get the production order by inputting Material number and serial no

    Hi Experts,
    I have material number and serial number . All I need is PRODUCTION ORDER number.
    Can any one give the table joints for that ?
    Thanks,
    Koya.

    hai check this code.. similar req:
    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

  • Item in sales order not being picked into picking list

    Hi Gurus,
    Could you please tell me the possible reasons as why an item in the sales order which has enough stock not being picked into the picking list?
    Many Thanks
    Choudry

    Hi
    Delivery creation that is selection date is controlled by the schedule line of the line item in the sales order
    Try by changing the schedule lines in sales order in VA02
    there you try to change the delivery date to past
    It might be possible if you had enough stocks at that time
    Regards
    Raja

  • 21"imac 45 days old - 2tb drive has started not being recognized; receiving a "drive not disconnected properly", though the drive was never disconnected

    21"imac 45 days old - 2tb drive has started not being recognized; receiving a "drive not disconnected properly", though the drive was never disconnected

    That sounds like a hardware problem.
    Backup your data and contact Apple Support or your local AASP to make a service appointment.
    Apple - Support - Contact Apple Support
    Apple - Find Locations

  • Process to split production order based on the raw material batches

    Hi All, below is a business situation which needs some some SAP process to help overcoming this issue.
    We are working on process industry, where the core fabric (SFG) are produced from different machines and which are used as raw material in the subsequent process (Coating).  Business wants SAP to generate individual planned orders for Coating when it uses this materials
    e.g
    Current situation.
    SFG1  is the component of SFG2
    SFG2 is  the component of FG.
    When the demand for FG is 100, you get 2 planned orders  SFG1- 100 yd and  SFG2- 100 yds
    During production, the Planned order for SFG1 is split for 2 production order  each producing 50 yds each.
    Now I have SFG1 - 50 yds ( Batch A001), and SFG1- 50 yds ( Batch A002).
    Now Business wants  SAP to automatically propose 2 order for SFG2, However based on MRP it will  only show 1 planned order of 100 yds required for SFG2 since the demand of FG is 100.
    We want to split the planned orders of the higher level to look at lower level stock.
    Any ideas or thought process.
    Regards
    Sarvan

    Sarvan,
    You can have MRP propose two lots of SFG2 based upon lot sizing.  For instance, if you always will want SFG2 to have orders of 50 each, then one way to achieve this would be to set the 'maximum lot size' to 50.  MRP1 Tab of the material master.
    There are other lotsizing methodologies that may be better suited to your business requirements as well.
    Lot-Size Calculation - Consumption-Based Planning (MM-CBP) - SAP Library
    Best Regards,
    DB49

Maybe you are looking for

  • Is it possible to sync PDFs with multiple computers using the same apple ID?

    I have successfully synced these PDFs with one computer (iMac) and one iOS device (iPhone). However, I can't figure out how to sync the PDFs with the second computer (Macbook Pro). I added the PDFs to iTunes by dragging them into the books tab. I the

  • Start a BPEL process automatically all 30 seconds

    Hello, I would to check all 30 seconds a database for changes. If that is possible with the DatabaseAdapter? And if so like this is done? Or if there are there still other possibilities. It should be also begun automatically all 30 seconds a BPEL pro

  • URGENT: executeQuery after setWhereClause causes infinite loop

    Hi, - I'm using jdev 9.0.3.2. - I have a JTable bound to a ViewObject. - I set the vo's whereClause, the where clause has some syntax error. - I call executeQuery - The JBO exception is shown. - I press ok. BUT: - The JBO exception is called again an

  • Problems opening project in Final Cut Studio 2 after installing FCP X

    After installing Final Cut Pro X, a friend is having problems opening his older FCS 2 Projekts ind FCS 2. Projekt starts loading and around 35 % crashes. Ist there a prossibility to fix this ? Any experience ? Thanks for help.

  • Error -600 ??

    I keep getting an Error -600 when using my Mac. It's sproradic, but it happens several times a day. Also, iPhoto will not launch, and I have had several apps quit all of a suddent over the past week or so. Any thoughts? I haven't added any RAM in mon