Inspection plan selection based on production workcenter for Inspection typ

Dear QM Guru's,
I have requirement of automatic inspection lot creation based on production work center.
For example :- I have Inspection Plan A, Plan B and Plan C for Material XYZ. My requirement is that, when inspection lot created for material XYZ ,when we release production order (Early lot creation) , it should create inspection lot based on production work centers in the order. In this case, if production workcenter A is in the prodiction order, system automatically assigned inspection plan A, when workcenter B,it should choose inspection plan B and same for C workcenter.
Can we have this set up in the system?
Let me know if u need any other details.
Thanks in advance.

The workcenters in QM and PP don't have to be the same.  In the user exit your going to code in the logic you want to use to select the inspection plan.
I suggested creating the workcenters the same and the code can use that info to match up the correct task list group to assign the inspection lot. But if that doesn't work pick something else.
Your code can use any logic you want.  You can put a description in the short text if you want. 
You can just have an understanding that task list group 10 is always used for production work center XYZ and task list group 20 is always used for production work center ABC and task list group  30 is always used for production work center 123.  In the user exit you check which production line and just change the group to 10, 20 or 30 then.
I don't care what you pick or how you do it, neither does the function module.  I believe the function module will pass in the parameters of the task list it is planning to assign.  You then have the ability to use the code to pick a different one and pass back new parameters for the task list.
Craig

Similar Messages

  • Standard PNP selection screen problem in reason for action type

    Hi all,
    We have used standard PNP in one of our report program.
    The input for 'Reason for Action' (excluding a particular reason for action ) has no effect on the actual selection of data from the PNP. i.e. even if a particular reason for action is excluded in the selection, record pertaining to that action for reason is still picked in the PNP selection and passed on to the program through Get PERNR statement.
    The above problem seems to affect all the standard and custom HR Reports as well.
    Please advise on how exactly the excluding of a particular reason for action work in selection through PNP and is there anyway to solve the problem.
    eagerly waiting for your response.
    Thanking You,
    Regards.
    Deepak

    Thanks for your response,
    We tried but it did not work.
    Our code is as follows,
    INITIALIZATION.
    W_REPID = SY-REPID.
    PERFORM CREATE_RANGES.
    START-OF-SELECTION.
    GET PERNR.
    RP-PROVIDE-FROM-LAST P0000 SPACE PN-BEGDA PN-ENDDA.
    PERFORM GET_DATA.
    END-OF-SELECTION
    If you could give us your email id, we would email the screen shots of the selection screen and the output.
    my email id - [email protected]
    Thanking You,
    Regards
    Deepak

  • Is it possible to lock guides to each other? Or make selections based on guides??

    Hi,
    I am curious if there is a way to lock guides to one another.  By this I mean:  lets say I have a guide at 10px down and another at 20px.  I am looking for a way to lock them, so if I move the first guide down 5px the second guide will move with it and continue to maintain the 10px gap.
    Also I am wondering if there is a way to make selections based on guides.  For example, I want to make a selection that starts at the top guide and goes to the bottom guide.
    Thanks to anyone that can help!
    G

    There is no way to link guides directly. Here are some guide tips for you which may help…
    • Setting the ruler increment can be done by control clicking (yes control) on the rulers themselves,
    • Holding down the SHIFT key while dragging guide lines will snap those guides to ruler increments. So if you have pixels selected as the increment as in the tip above you can easily snap quides to 10 pixel steps. Where the guides will snap (how fine the increment) is dependant on how close you are zoomed.
    • As Christoph has said, you can snap to Guides - so in your example a 10 pixel marquee selection, definable in the marquee tool options bar (fixed size) can easily be snapped to a guide, and then another guide can be snapped to that. With the move tool active this is a very easy process

  • How to select another BOM in Planned Order Based Production Order

    Dear PP GURUS / EXPERTS,
    I am using following Scenario: I have alternate BOM for FG and Maintaining Finished Material with Production Version in MRP4.
    Now, When I run the Forecast based Planning (MP30) and go for Single Item  Multi-Level MRP Run  (MD02 & MD04)  it takes 1st Alternate BOM.
    Now, I create the Planned Order Based Production Order (CO40), but due to some reason - WE WANT TO CHANGE THE BOM. instead of 1st BOM We want to use another BOM For Production.
    How can we achieve this.
    Please Help. THANKS IN ADVANCE.
    DSC

    WE WANT TO CHANGE THE BOM. instead of 1st BOM We want to use another BOM For Production
    create  two production version ( PV)and assign the 1PV 1st  BOm and 2 PV 2nd BOM
    System will create a Plan order for PV 1
    IF you want you can change the Production version 1 to Production version 2  in Planned order itself ( in MD11)
    Or reread the master data for production order by selecting PV 2

  • How to select the production versions for MTO?

    Hi PP Experts,
    In our scenario we have two production versions and also we are in MTO strategy. While creating the sales order is there any option to select the production version (i.e.) before planning for that corresponding sales order I have to choose the production versions.
    Example:
    Material u2013 A  -
    sale order u2013 666001 u2013Prod version - 0001
    Material u2013 A --- sale order u2013 666002 u2013 prod version - 0002
    How to map the above scenario?
    Thanks in advance.
    Regards,
    Vimal

    In our scenario we have two production versions and also we are in MTO strategy. While creating the sales order is there any option to select the production version (i.e.) before planning for that corresponding sales order I have to choose the production versions.
    If the Production version selection is based on Lot size means No problem.
    If both the Production version is same lot size, system will select the first PV only in MRP
    In STD SAP, we can't Give Production Version  in sale order level,
    If you want after MRP run , U can assign Production version in plan order or in production order Manually

  • Hyperion FR , Planning Details, Limit member selection based on access.

    Hi There
    I am working on a project
    Version 11.1.2.2, FR connected with "Planning Details""
    I want to limit POV "Entity" member selection based on access right and I don't want to set User POV one by one.
    For ex:
    US users don't need to see Canada users' entity.
    I am looking for a solution or workaround that can be easy to manage and save time.
    Highly appreciate and Thanks

    You can actually set the default values in jconsole. jconsole can be started with FRConfig.cmd (normally under C:\Oracle\Middleware\EPMSystem11R1\products\biplus\bin).
    Change the value of "com.hyperion.reporting.HRPrefs.filter_by_security" to true, this way, the the default values will be true for all users who haven't set it in user preference yet.
    This will list only the members which the users has access.
    I believe this is what you are looking for.
    Edited by: Krishna Kumar K P on Sep 14, 2012 9:50 AM

  • Workcenter based on Production Order and Operation

    Dear All,
    I want to fetch the data based on the following :
    1. For a given Production Order ( This PO will have multiple Operations)
    2. I need to know the Work Center
    3. for which the respective Operation has the status as "Not Confirmed".
    or Let me put in this way :
    I need the Workcenter for a particular Purchase order whose operations are not confirmed .
    How to fetch the above ?
    Regards,
    Deepu.K

    Hi,
    Status check :
    call function 'STATUS_CHECK_MULTI'
           exporting
                bypass_buffer = 'X'
                client        = sy-mandt
                status        = 'I0009'  <--- here i0009 is the id for produced orders
                flg_exclude   = space         check for unconfirmed orders status here 
           tables
                objects       = itab_objnr.
    Workcenter from production order :
    clear w_aufpl.
        select aufpl from afko into w_aufpl where aufnr = itab_afpo-aufnr.
        endselect.
        clear afvc.
        select * from afvc where aufpl = w_aufpl and
        steus   = 'PP03'.
        endselect.
        clear crhd.
        select * from crhd where objid = afvc-arbid.
          exit.
        endselect.
        if crhd-arbpl = space.
          itab_afpo-arbpl = 'OTHER'.
        else.
          itab_afpo-arbpl = crhd-arbpl.
        endif.
    Regards,
    Vind

  • How do I get rid of the security warning for disc based Flash product

    I have a project that use a program called Articulate to turn
    powerpoint shows into a more rich flash product with audio, search
    capacities, quiz etc. There are multiple sections from multiple
    powerpoint files that generate a dozen or so flash files. The flash
    files reside in an html shell to allow for navigation. The whole
    thing is delivered on disc as a browser based training product.
    The problem is that viewing flash from a disc results in a
    security alert every time the viewer goes to a flash file. There is
    an Articulate theme blog that suggests using a product called
    server2go to make the disc function as a server to kinda fool
    browsers on the local machine into thinking the disc is a web
    server. My client wants the product to allow the users' default
    browser. So far, although server2go is supposed to allow this, it
    doesn't with the latest version of firefox (client's preferred
    browser). I can only get it to work on a select machine or 2 in my
    office with IE (server2go default) but it takes forever to launch.
    I haven't gotten it to work on any of the client's machines. The
    disc (auto launch) just freezes the machines.
    Can anyone recommend a better server emulation product, or
    tell me another solution to delivering a disc based flash product
    without getting the security warning and without making the viewer
    change settings on their machine to allow flash to play?
    I understand security issues but this makes flash virtually
    unusable for this application and I'm dead in the water if I can't
    fix it.

    Sorry, Ralph has already answered your question. If you need to get your security questions reset, you will have to contact iTunes Support:
    ACCOUNT SECURITY CONTACT NUMBERS
    Cheers,
    GB

  • 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

  • Dynamic row selection based on Page member selection in Planning web-form

    Hello experts
    I have requirement where, user dont want 10 webforms to enter 2 accounts line for various sparse members. Below is the dimension detail and web-form current design
    Account - Dense
    Period - Dense
    Year - Sparse
    Scenario - Sparse
    Version - Sparse
    Entity - Sparse
    Product - Sparse (600 level 0 members)
    Product dim has family1 as parent and 40 level 0 mem like that there are 10 family level 1 members, now to enter account member (only 2 member) for 6 years projection ( it means 12 periods and 6 years in column ) , i can build 10 web-forms with one web-form has one family level-0 mem in rows,
    however my question, is how can i achieve this in one web-form, instead of 10 web-forms for 400 products ?
    your help is greatly appreciated.
    Edited by: 859874 on Jul 18, 2012 8:58 PM

    Im not sure there is any simple way to get dynamic row selection based on what is selected in the page.
    If I were designing the form based on what you have stated, I would probably stick both Account and Year in the page, and the 400 products in rows. This would require the user to select the different combinations of Year / Account, but would mean only 12 columns (instead of 72).
    Alternatively you could stick Account in rows too - meaning 800 rows, but less combinations to select in Page....all depends what is deemed acceptable to the user.
    Probably other approaches that may be better than above (put Product in the Page for fun!!)
    Thanks
    JB

  • 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 to use the selection profile and status profile for production order?

    Hi expert,
       I want to know how to use the selection profile and status profile for production order. what's the usage for these two selection profile and status profile ?
      Please help me.
      thanks in advance.
      george.shi

    Hi George,
    There are are two types of statuses.One is system status and second one is user status.These statuses will tell us current situation of an order.
    We can't change system statuses.But we can create our own statuses through status profile.With this profile we can control user statuses.
    In this status profile,
    1.We define the sequence in which user statuses can be activated,
    2.We define initial statuses
    3. Allow or prohibit certain business transactions.
    Selection profiles are used to select the objects (say production orders) with different status combinations.We assign status profiles to selection profiles in BS42 T-Code.
    Regards,
    Raja.
    Edited by: Rajarao on Oct 30, 2008 6:21 AM
    Edited by: Rajarao on Oct 30, 2008 6:22 AM

  • Configure another Inspection Type for Production Order

    Hi QM Gurus,
       I have one scenario, my client wants to have another inspection type for inspection lot origin goods receipt from production because they have this requirement that for some materials they need to have a status profile that will be active for inspection type standard 04. And there are also some materials from goods receipt from production that does not need status profile. Since the only thing that we could assign as specific status profile is to its inspection type. Hence, i need to create another inspection type for lot origin goods receipt from production aside from inspection type 04 that will create automatic inspection lots with different status profiles.I try this in configuration but no inspection lots has been made for new inspection type assigned to LOt origin 04 and also assigned in the material master inspection set-up. How will i do this???
    Thanks.
    Regards,
    Matildo, Edsel
    QM Consultant

    Hello Edsel,
    you can configure for example an inspection type 0401 and activate this inspection type for the inspection origin 04 in customizing. Please look at the following customizing items:
    Transaction QCC3
    -> Inspection Lot Creation
    - Maintain Inspection Types
    - Maintain Inspection Lot Origins and Assign Inspection Types
    By activating the correspondent inspection type in the material master you can decide which inspection type is used. If you need both then you could think about using the exit QAAT0001 to assign the correspondent inspection type.
    Regards
    Isabelle

  • Userexit for updating sales order user status based on Production Order

    Hi.
    My clients requirent is
    Sales order user status should get updated based on production order creation,GR for PO creation etc.
    Basically depending on PO & GR For PO,various user stauts in sales order should get updated.
    Can you please suggest me some userexits in PP for this requirement?
    I am a SD Consultant and not having much idaes about PP
    Thanks
    Nisha

    hi,
    if you are not going to update it in the SO..
    then you need different exits as those are different transactions.

  • Tool for Packaging java-based ISV-Products

    hi colleagues,
    ISV abap-based  prouduct (abap addon) can be packaged/deliverd via AAK. Do we have similar tools for java-based partner products?
    thx a lot for your help
    regrads
    Abdu

    done

Maybe you are looking for