Available QTY is not shown in Production Order for SemiFinished Product?

Hi
In Production Order Available Qty value is not shown for SemiFinished product ( Stock is there), but it showing the Available for other rawmaterials in same Prdn. ordr..
The SemiFinished product is manufactured and its having lot of stocks ..while i am calling this SemiFinished product in other Production order the available qty is not shown.. so how come the end user comes to know that availlable..
Giri

Hi Jey
I will explain clearly so u can come what is hapening For Ex: Item ABC having child item A,B & C.
when calling the BOM of ABC in Prodn.order its showing the available of A, B & C... But after the production over for the Semifinished product it increases the stock.
When i am calling this Semifinished Product in other Produciton Order For Ex: Item AZ having Child item ABC & XYZ.
In this Scenerio it has to show the Available of item ABC whic is semifinished product its not showing,but in the same Production order it showing the available for Other item XYZ which is purchased one .. So this is the nature of SAP or i am doing any wrong....
Giri

Similar Messages

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

  • Generating sales order for semifinished product

    Hello every one. I am finding difficulty in creating a particular planning scenario. I require to sell a semi finished material which is assigned to a finished material. Finished product strategy is 50. Semi finished has strategy group with main strategy 70 and another strategy 50. While running mrp for finished material everything is running perfectly. But if i generate sales order for semi finished it is generating without errors, but requirements are not generated for the semi finished in MD04. Please provide solution.

    Hi Sayak,
    MRP can not generate sales order. It is an element which is being created manually after the customer is giving us PO. Against a sales order planned/production/Purchase order can be created.MRP will create production/procurement element. Not the sales order.
    If you want to create sales order for semi material, create it manually(Or create CIR). The availability check should be 2 for the semi. Then it should appear in MD04 screen after putting the semi material in input screen.
    Your concept is the semi should be consumed for finished product as well can be sold also.
    In that case you have to create sales order separately. If some requirement is generated (PIR etc) internally, then MRP can take care of those requirement. But not the sales order.
    If you are talking with sales BOM, that is a different concept.
    Hope I made it clear.
    Regards,
    Krishnendu.

  • Planned Order for a Product not being shown

    Hi Experts!!
    I am an ABAPer and I am new to SAP APO. We are now working on /SAPAPO/PPT1. When clicked on some quantity, all the planned orders existing for that product are being shown with respective quantities. Now, I am trying to create a new planned order for a product through FM BAPI_MOSRVAPS_SAVEMULTI3 by splitting the quantity among the receipts. I have gone through several posts and have written the logic. But the newly created planned order is not being shown in /SAPAPO/PPT1. I can't find it anywhere. Am I doing something wrong here?
    Here I explain it with an example. I have an aggregated entry for the month of June with quantity 3000, which is already split under receipts 1234 and 1235 as 1000 and 2000 EA respectively. Now, I need to split it as 1000 EA for each planned order and hence am creating a new plord. I am using same FM for changing plords as well with quantities as 1000. So, now both the receipts are being shown with quantity 1000 and the aggregated value as 2000... and the newly created one is missing. But I need the new one to be displayed and the aggregated should be 3000. Why is this happening? Am I missing something?
    I already have posted a query that is related to this total requirement. Change Receipt Quantity for Planned Order in LiveCache . This has the first part of the total requirement. Just provided for extra info, but not related to this issue however.
    Please help me out. Your help is highly appreciated. Thanks a lot!!

    Hi Srinivas,
    With prior experience, i am sure that the BAPI SAVEMULTI3 can be used for Creation & Change.
    I dont think,the FM's which you are using, are recommended by SAP. So , try to use BAPI most of the time,as it ensure data consistency.
    As you told, order is not flown to ECC, but visible in APO, i would suggest you to check the importing parameters of the bapi, like EVENT CONTROL ( should be '1' ).
    and COMMIT_CONTROL(should be 'E').
    Also, check your queues after execution of bapi. you should find your change pointer in the inbound queue of R/3 System. Do let me know if you still stuck.
    Thanks,
    Santosh KB.

  • Goods Issue Production Order for Confirmed Qty Component

    Dear PP Gurus,
    Here is my case :
    Stock Qty for Sparepart A : 100 un
    First production will require 80 un A, and availability check confirmed. Second Production Order will require 70 un A, where 20 un confirmed and 50 un is not confirmed on availability check. When i try to goods issue the second production order, it is allowed to consumed all 70 un because unrestricted stock is 100. How can i forbid goods issue in second production order only for 20 un A which is confirmed before.
    Thanks,
    Arman Lie

    Dear
    First of all what ever qty u release during production it well get copied in confirmation so as u said first production order is 80 so the balance qty is 20 out of 100 units so for 20 production order is confirmed so u need another production order for 70 in that case u have deflicit stock of 50 so for that reason ur production order not get confirmed for 50 in order to confirm this order u need t make a stock of 50.
    1. check in the OPK4 enable the actual qty
    2.check t-code OPJK Checking Rule and check when material availability when saving the order
    and please check in the material master what availability check u have maintained in mrp
    [http://help.sap.com/erp2005_ehp_04/helpdata/EN/cf/70124adf2d11d1b55e0000e82de178/frameset.htm]
    With Regards
    Pushpalas

  • Batch is not determined automatically in PRODUCTION order for components

    Hi All,
    Am working on the batch determination for the components by Goods receipt date(FIFO) during production order confirmation.
    All the required settings are completed upto batch determination.But when click on the batch determination tab,batch is not picking in production order confirmation goods movement screen even though three batch stocks are available.
    Kindly find the attachment for your reference.
    Would grateful to your quick response.
    Thanks!
    Asirvad

    Hi,
    In general it should not be a problem. Request you to check below:
    For the Batch Determination to work in production order for the components, you should have a value for the “batch entry” field. The values if set to “3” will carry out batch determination automatically and if set to “blank” will not carry out batch determination for the components in the production.
    As well please refer the link for step by step checking.
    SAP Batch Determination - SAPs'WORD - We SAP For Your Cause
    Hope success :-)
    Regards,
    Krishnendu.

  • I'm on a windows laptop using iTunes sharing through the family to connect with Apple TV. After choosing the folder of photos to be shared and displayed on the appletv and when I choose to show on screen, they are not shown in the order they are in the or

    I'm on a windows laptop using iTunes sharing through the family to connect with Apple TV.
    After choosing the folder of photos to be shared and displayed on the appletv and when I choose to show on screen, they are not shown in the order they are in the original folder.
    How to pair show in a certain order, for example, sorted by name.
    grateful
    Julio Cesar

    Not that I'm aware of. You just export JPEG copies to a folder that you can point iTunes to. For instance, I have created a folder in my Pictures folder called Apple TV. And within that folder I have other folders of pictures that I can choose from in iTunes to share with Apple TV. But there doesn't seem to be any way to share a Lightroom slideshow. If you have laid to create a video file that would probably work. Apple TV is a little clunky in my opinion. Some things are a little more difficult to do now than they were a while back. I probably haven't provided you with much help, but just keep experimenting and I think you will figure it out.

  • How do we do production orders for same item code in different sizes

    Hi,
    We have Items which we buy as a single sheet of material and our customers can ask for us to cut the complete sheet into different sizes before despatching it. i.e
    Item Code Sheet1: Sheet size 100mm x 100mm
    Customer asks for sheet to be cut into 10 off 10mm x 10mm sheets, which we presently put on the sales order as a line note
    We then generate a production order for this item and indicate on the production order printout the line note
    We've recently had a customer who has asked for Item 1 in two different sizes on the same sales order ie
    Order Line 1 Sheet1 Qty:1 Line note: cut into 10mm x 10mm sheets
    Order Line 2 Sheet1 Qty:1 Line note: cut into 50mm x 50mm sheets
    When generating the Production order SAP combines the items into
    Product No: Sheet1
    Planned Qty: 2
    Where as we want it to create 2 production orders 1 of each different sizes items.
    I know I can create BOMs for those two sizes, but customers can ask for the sheets to be cut to whatever size they want. Is the best method to create BOMs on the fly for each different sizing option or are there alternative methods that are easier to manage ?
    Thanks
    Carl

    Hi Carl Rutter,
    You have to creat 2 special production order for this item. when issue the component make sure you issue the stock as per the cosumption becaue one have 10mmx10mm and the another item have 50x50 in this case you issue component by square inch wise. for example 10*10 = 100 squre inch.
    50*50 = 2500 square inch so the cost will be approtionate. you can Use multiple uom method to obtain this, other wise you have covert into stock then you issue the component. If you want traxk size wise ,you can use batch option for Finishe goods.
    Regards
    Sridharan

  • Creating a production order for a semi finished product

    Hi
    I am having a multi level bom scenario over here.
    one of the bom components of the header material is a semi finished product.
    I am using the planing stratagy 40 for that material.
    in standard sap when i create a production order for  header material. the requirement gets transerd to all the components. if the components are not available then only  a requirement is placed. when i run MRP that requirement gets converted in to a planned order. which converts in to a purchase req or a production order,
    well for my semi finished product. its a Work in process item. there wont be any stock for that item in the storage location any time.
    what my requirement is. when i create a production order for my finished product it should automatically create a production order for the semi finished product.
    is this possible with some configuration settings.

    Dear Deepu,
    for ur requirement u need to maintain MRP type PD for FERT material and also for ur HALB.
    If u run  MRP  only, it will create planned order for FERT and for all its dependent requirement(for PD).
    If u create order manually for FERT material then it will not create order for HALB material, u need to create manualy for this also.
    sree

  • 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

  • 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

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

  • 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

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

  • How do we Prevent Creation of Production Orders for Phantom materials.

    Dear Experts;
    We have some materials which are Phantoms.
    We have set "special procurement type" as 50 in MRP2 and "Strategy Group" as 59 in MRP3
    These are non stchable items, but have BOMS.
    We dont create orders for them, however at the mement the system allows order creation. How do we prevent creation of production orders for these items in the system.
    Thanks in Advance
    Richard.

    Dear Richard,
    Check using this BADI - WORKORDER_UPDATE using method IN_UPDATE or Release by including a check if MATNR and for
    WERKS combination if SOBSL = 50 from table MARC,then do not allow to save.
    Check whether this works or else you have to set a plant specific status using OMS4  for not allowing production order
    creation and assign this value in the material master of the phantom assemblies.
    Check and revert
    Regards
    Mangalraj.S

Maybe you are looking for

  • IPod touch 4g not recognized in computer and itunes

    I

  • How to start with JSP

    Well, I'm new to the JSP technology and I've read some tutorials on the Java.sun.com, however, I've found out that there are a couple of ways to write JSPs. (1) just use the simple tags to generate the contents (no usages of beans or servlets) (2) us

  • Reactivate subscription at same rate as original s...

    I had a montly subscription and was happy with it.  I accumulated so many unused minutes that I decided to cancel the subsription. I lost all the minutes that were unused.  I ordered a new subscription and the rates had gone up a lot.  Can I reactiva

  • STO Delivery problem with VL10B.

    Dear All, As my client required the cross-company STO. We have configured all the setting as required. But now after creating PO. While creating the Delivery with VL10B system gives below mentioned error. Diagnosis                                    

  • JSP part of HTML form

    i have an html form (part of code included below) and don't know how to write the JSP for the results page. I want to be able to click "submit" and have the inputed information placed in a text file and saved in the same folder as my HTML files. I am