Read HR workcenter

Hi Experts,
I am maintaing HR workcenter using HRMS button in IE02 transaction. Now I want to know which tables are updated with this data. How can I read HR workcenters from DB tables.
Please let me know the required tables and the path to access them.
<<removed_by_moderator>>
Thanks,
Sushant
Edited by: Vijay Babu Dudla on Mar 18, 2009 2:12 AM

Points are sure.
Dont violate forum rules with such statements
Use table CRHD.

Similar Messages

  • Problem in co01 workcenter upload

    Hi experts,
    I have a doubt in my bdc, in my bdc i am going to create production order in CO01. its working properly but after entered the date i want to click operation overview and change one particular routing workcenter. But all the workcenter have the same field name of ARBPL, if anyone have a idea plz help its urgent. Point will be sure.
    gowri

    Hi,
    Generally personal number would be associated to Orgunits. Orgunits will have Workcenter defined. Probably you need to get the Orgunit first and then read the workcenter using CR function modules
    CR_WORKSTATION_READ
    <b>Reward points</b>
    Regards

  • 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

  • Is there a workaround for a print driver to run on Lion for an old Xerox Workcenter M15i

    I have an older Xerox Workcenter M15i. I am trying to use this printer using a new macbook pro running lion. The Xerox web site does not offer a print driver. Does anyone know of a workaround?

    Hey GHILL81 - did you ever get a real answer to this? (thanks for nothing, Kappy, you a$$)
    I just upgraded to OSX 10.7.4 and my xerox m15i acts squirrelly someties. I am pretty sure a new driver would help.

  • Attachments in preview area in workcenter incidents management

    Greetings to all!
    At workcenter Incident management in the preview for service mesage for a part of users the list of attachments list to the message is not displayed. For some users attachments list displayed in preview.
    I cannot find the reason of  such behaviour of system. Prompt please from what visibility of the list of applications in the field of preview depends? It is regulated by what parametres?
    What conditions should be observed to show attachments list in preview?

    Hi,
    I came across your problem while looking for a solution of mine.
    It's very similar to yours, however, the preview of my single page pdfs are totally blank.
    Again, if I click on the blank image and press the space bar to invoke quick look, the image displays just fine.
    I have tried different things, like resetting mail, resetting preview and even re-installing the OS (not a clean install), but none of them worked.
    I had similar issues before and realized that this seems to happen when installing alternative pdf viewer. But this is just a stab in the dark.
    Any help is really appreciated.

  • After getting the bom ,find routing,workcenter,how to get component routing

    hi experts.
              the requirement is find the find the routing details of the given materials.
    input is
    material using select-options.
      plant
    out put
    1.operator
    2.material
    3.material description
    4.workcenter
    5.vendor
    6.operation description
    7.uom
    8.qty
    9.uom
    10.setuptime
    11.processingtime
    12.deliverytime
    example.
           materials t4595959----this materials bom is give below
           3939393----
    procurement type is f
           3393939 -
    procurement type is e
           3939393------- procurement type is x
        i explanied what i tried.
       tables : marc,mapl,plpo,crhd,eord,eina,eine.
        1. using cs_com_expl_mat_v2  to get the bom explosion
       2. after got the materials with bom
       <b>MARC </b>                                  <b>MAPL</b>                  MATNR                                             MATNR               
      WERKS                1                         WERKS
    BESKZ        =======> E OR x          PLNTY
                                                             PLNNR
                2                                              3
    <b>MAPL</b> =====>  <b> PLPO</b>      =====> CRHD
                             PLNTY                                  OBJID
                            PLNNR                                   ARBPL
                           VORNR
                            ARBID
                            LTXA1
                            VGE01
                            VGW01
                             VGW02
    <b>                   1                         2                     3
    MARC</b>      ==>     <b>EORD</b> =>   <b>EINA</b> =>     EINE
    BESKZ == 'F'              MATNR             MATNR          INFNR
                                       LIFNR               LIFNR             APLFZ
                                      FLIFN = 'X'          INFNR
    followed this method to explode the bom and got the operation.
    but its only fetch the header materials operation ,not component operaion
    h we get the opeations of the component
    thanks in advance
    Regards
    ds

    hI,
           Yes i checked the debugging mode ,its only fecthed the header materials
    but not component materials,
    i here give the query for ur review ,pl give me a solution
    START-OF-SELECTION.
      CLEAR ISTPO. REFRESH ISTPO.
      LOOP AT ITAB.
      CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
          EXPORTING
            CAPID                 = 'PP01'
            MEHRS                 = 'X'
            MMAPS                 = ' '
            MDMPS                 =  ' '
         BREMS                  = 'X'
         DISMM                 = ' '
         LIFNR                 = ' '
         WEBAZ                 = ' '
            DATUV                 = SY-DATUM
            MTNRV                 = ITAB-MATNR
            WERKS                 = P_WERKS
            EMENG                 = '1'
            STKKZ                 = ' '
            FBSTP                 = ' '
            FTREL                 = ' '
          IMPORTING
            TOPMAT                = W_TOPMAT
           DSTST                 = DSTST
          TABLES
            STB                   = ISTPO
            MATCAT                = MATCAT
          EXCEPTIONS
            ALT_NOT_FOUND         = 1
            CALL_INVALID          = 2
            MATERIAL_NOT_FOUND    = 3
            MISSING_AUTHORIZATION = 4
            NO_BOM_FOUND          = 5
            NO_PLANT_DATA         = 6
            NO_SUITABLE_BOM_FOUND = 7
            OTHERS                = 8.
      WRITE: / W_TOPMAT-MATNR UNDER TEXT-H00 COLOR COL_HEADING,
               W_TOPMAT-MAKTX UNDER TEXT-H01 COLOR COL_HEADING.
        SELECT MATNR WERKS OBJID BESKZ FROM MARC INTO CORRESPONDING FIELDS OF TABLE IT_ITAB_IDEL
      WHERE MATNR = ITAB-MATNR  AND BESKZ = 'X' OR BESKZ = 'E' OR BESKZ = 'F'.
    SELECT MATNR WERKS PLNTY PLNNR LIFNR FROM MAPL INTO CORRESPONDING FIELDS OF TABLE IT_MAPL_IDEL
                                                WHERE  MATNR = ITAB-MATNR AND
                                                         WERKS = 'IN01' .
    SELECT PLNTY PLNNR ZAEHL VORNR  ARBID OBJTY LTXA1 VGE01 VGW01 VGW02 PLIFZ FROM PLPO INTO CORRESPONDING FIELDS OF TABLE IT_PLPO_IDEL
                                            FOR ALL ENTRIES IN IT_MAPL_IDEL
                                             WHERE PLNTY = IT_MAPL_IDEL-PLNTY AND
                                                  PLNNR = IT_MAPL_IDEL-PLNNR AND
                                                   WERKS = 'IN01' AND ARBID <> 0.
        SELECT OBJTY OBJID ARBPL FROM CRHD INTO CORRESPONDING FIELDS OF TABLE IT_CRHD_IDEL
                                                              FOR ALL ENTRIES IN IT_PLPO_IDEL
                                                              WHERE OBJID = IT_PLPO_IDEL-ARBID.
    LOOP AT ISTPO.
      IT_FINAL_IDEL-POSNR  = ISTPO-POSNR.
      IT_FINAL_IDEL-IDNRK  = ISTPO-IDNRK.
      IT_FINAL_IDEL-OJTXP  = ISTPO-OJTXP.
      IT_FINAL_IDEL-MENGE  = ISTPO-MENGE.
      IT_FINAL_IDEL-MEINS  = ISTPO-MEINS.
    LOOP AT IT_PLPO_IDEL.
        IT_FINAL_IDEL-VORNR = IT_PLPO_IDEL-VORNR.
        IT_FINAL_IDEL-ARBID = IT_PLPO_IDEL-ARBID.
        IT_FINAL_IDEL-OBJTY = IT_PLPO_IDEL-OBJTY.
        IT_FINAL_IDEL-LTXA1 = IT_PLPO_IDEL-LTXA1.
        IT_FINAL_IDEL-VGE01 = IT_PLPO_IDEL-VGE01.
        IT_FINAL_IDEL-VGW01 = IT_PLPO_IDEL-VGW01.
        IT_FINAL_IDEL-VGW02 = IT_PLPO_IDEL-VGW02.
        READ TABLE IT_CRHD_IDEL WITH KEY OBJID = IT_PLPO_IDEL-ARBID.
        IT_FINAL_IDEL-ARBPL = IT_CRHD_IDEL-ARBPL.
        APPEND IT_FINAL_IDEL.
        CLEAR : IT_FINAL_IDEL,IT_PLPO_IDEL,IT_CRHD_IDEL,ISTPO.
      ENDLOOP.
       ENDLOOP.

  • How to fetch the components operation and workcenter. pp report

    Hi experts,
                 this report is for pp module ,routing details,in our program
    only give the ouput of the header materials operation and workcenter
    but not get into components.
    before we clariy if the materilas is e or x -
    check the plpo operation and crhd workcter
    or else
    if the material is f -
    get the vendor details---- i ll not using this onle
    before  we need to adopt it only e or x only
    TABLES : MAST,MARC,CRHD,PLPO.
    TYPES : BEGIN OF IT_FINAL,
             POSNR LIKE STPOX-POSNR,
             IDNRK LIKE STPOX-IDNRK,
             OJTXP LIKE STPOX-OJTXP,
             MENGE LIKE STPOX-MENGE,
             MEINS LIKE STPOX-MEINS,
             VORNR LIKE PLPO-VORNR,
             ARBID LIKE PLPO-ARBID,
             OBJTY LIKE PLPO-OBJTY,
             LTXA1 LIKE PLPO-LTXA1,
             VGE01 LIKE PLPO-VGE01,
             VGW01 LIKE PLPO-VGW01,
             VGW02 LIKE PLPO-VGW02,
             ARBPL LIKE CRHD-ARBPL,
            LIFNR LIKE EINA-LIFNR,
            INFNR LIKE EINA-INFNR,
             END OF IT_FINAL.
    DATA : BEGIN OF CRHD_IDEL OCCURS 1000,
           OBJID LIKE CRHD-OBJID,
           ARBPL LIKE CRHD-ARBPL,
           END OF CRHD_IDEL.
      DATA: BEGIN OF ISTPO OCCURS 1000.
            INCLUDE STRUCTURE STPOX.
    DATA: END OF ISTPO.
    DATA: BEGIN OF MATCAT OCCURS 1000.
            INCLUDE STRUCTURE CSCMAT.
    DATA: END OF MATCAT.
    DATA : BEGIN OF ITAB OCCURS 0,
               MATNR LIKE MAST-MATNR,
               WERKS LIKE MAST-WERKS,
               END OF ITAB.
    SELECT-OPTIONS : P_MATNR FOR MAST-MATNR.
    PARAMETERS     : P_WERKS TYPE MAST-WERKS.
    DATA : IT_FINAL_IDEL TYPE STANDARD TABLE OF IT_FINAL
               WITH HEADER LINE INITIAL SIZE 100 WITH DEFAULT KEY.
    DATA : IT_CRHD_IDEL LIKE CRHD OCCURS 100 WITH HEADER LINE.
    DATA: IT_STB LIKE ISTPO OCCURS 0 WITH HEADER LINE.
    DATA : IT_MAPL_IDEL LIKE MAPL OCCURS 100 WITH HEADER LINE.
    DATA  :IT_ITAB_IDEL LIKE MARC OCCURS 100 WITH HEADER LINE.
    DATA : IT_PLPO_IDEL LIKE PLPO OCCURS 100 WITH HEADER LINE.
    SELECT MATNR WERKS FROM MAST INTO TABLE ITAB
                       WHERE MATNR  IN P_MATNR AND WERKS = P_WERKS.
    START-OF-SELECTION.
      CLEAR ISTPO. REFRESH ISTPO.
      LOOP AT ITAB.
      CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
          EXPORTING
            CAPID                 = 'PP01'
            MEHRS                 = 'X'
            MMAPS                 = ' '
            MDMPS                 =  ' '
         BREMS                  = 'X'
         DISMM                 = ' '
         LIFNR                 = ' '
         WEBAZ                 = ' '
            DATUV                 = SY-DATUM
            MTNRV                 = ITAB-MATNR
            WERKS                 = P_WERKS
            EMENG                 = '1'
            STKKZ                 = ' '
            FBSTP                 = ' '
            FTREL                 = ' '
          IMPORTING
            TOPMAT                = W_TOPMAT
           DSTST                 = DSTST
          TABLES
            STB                   = ISTPO
            MATCAT                = MATCAT
          EXCEPTIONS
            ALT_NOT_FOUND         = 1
            CALL_INVALID          = 2
            MATERIAL_NOT_FOUND    = 3
            MISSING_AUTHORIZATION = 4
            NO_BOM_FOUND          = 5
            NO_PLANT_DATA         = 6
            NO_SUITABLE_BOM_FOUND = 7
            OTHERS                = 8.
      WRITE: / W_TOPMAT-MATNR UNDER TEXT-H00 COLOR COL_HEADING,
               W_TOPMAT-MAKTX UNDER TEXT-H01 COLOR COL_HEADING.
        SELECT MATNR WERKS OBJID BESKZ FROM MARC INTO CORRESPONDING FIELDS OF TABLE IT_ITAB_IDEL
                    WHERE   MATNR = ITAB-MATNR AND BESKZ = 'X' OR BESKZ = 'E' OR BESKZ = 'F'.
        SELECT MATNR WERKS PLNTY PLNNR LIFNR FROM MAPL INTO CORRESPONDING FIELDS OF TABLE IT_MAPL_IDEL
                                                   WHERE MATNR = ITAB-MATNR AND
                                                         WERKS = 'IN01' .
      SELECT PLNTY PLNNR VORNR  ARBID OBJTY LTXA1 VGE01 VGW01 VGW02 PLIFZ FROM PLPO INTO CORRESPONDING FIELDS OF TABLE IT_PLPO_IDEL
                                                        FOR ALL ENTRIES IN IT_MAPL_IDEL
                                                        WHERE PLNTY = IT_MAPL_IDEL-PLNTY AND
                                                              PLNNR = IT_MAPL_IDEL-PLNNR AND
                                                              WERKS = 'IN01' AND ARBID <> 0.
    LOOP AT ISTPO.
      IT_FINAL_IDEL-POSNR  = ISTPO-POSNR.
      IT_FINAL_IDEL-IDNRK  = ISTPO-IDNRK.
      IT_FINAL_IDEL-OJTXP  = ISTPO-OJTXP.
      IT_FINAL_IDEL-MENGE  = ISTPO-MENGE.
      IT_FINAL_IDEL-MEINS  = ISTPO-MEINS.
    LOOP AT IT_PLPO_IDEL.
    IT_FINAL_IDEL-VORNR = IT_PLPO_IDEL-VORNR.
        IT_FINAL_IDEL-ARBID = IT_PLPO_IDEL-ARBID.
        IT_FINAL_IDEL-OBJTY = IT_PLPO_IDEL-OBJTY.
        IT_FINAL_IDEL-LTXA1 = IT_PLPO_IDEL-LTXA1.
        IT_FINAL_IDEL-VGE01 = IT_PLPO_IDEL-VGE01.
        IT_FINAL_IDEL-VGW01 = IT_PLPO_IDEL-VGW01.
        IT_FINAL_IDEL-VGW02 = IT_PLPO_IDEL-VGW02.
      ENDLOOP.
        READ TABLE IT_CRHD_IDEL WITH KEY OBJID = IT_PLPO_IDEL-ARBID.
        IT_FINAL_IDEL-ARBPL = IT_CRHD_IDEL-ARBPL.
        APPEND IT_FINAL_IDEL.
        CLEAR : IT_FINAL_IDEL,IT_PLPO_IDEL,IT_CRHD_IDEL,ISTPO.
    ENDLOOP.
    WRITE :/6 W_TOPMAT-MATNR, 25 W_TOPMAT-MAKTX.
       LOOP AT IT_FINAL_IDEL.
       WRITE :/ IT_FINAL_IDEL-POSNR,
                IT_FINAL_IDEL-IDNRK,
                IT_FINAL_IDEL-OJTXP,
                IT_FINAL_IDEL-MENGE,
                IT_FINAL_IDEL-MEINS,
                IT_FINAL_IDEL-VORNR,
                IT_FINAL_IDEL-ARBID,
                IT_FINAL_IDEL-OBJTY,
                IT_FINAL_IDEL-LTXA1,
                IT_FINAL_IDEL-VGE01,
                IT_FINAL_IDEL-VGW01,
                IT_FINAL_IDEL-VGW02,
                IT_FINAL_IDEL-ARBPL.
       ENDLOOP.
    REFRESH IT_FINAL_IDEL.
    SKIP.
    ENDLOOP.
    regards
    ds

    u have the plant and component from STPOX....using this goto MARC table and check BESKZ field...

  • "Reports" field in Incident Management workcenter

    Hello All,
    I have a silly question. Ther eis a Reports Tab in Incident management workcenter.
    In overview tab, I can see there are 10 msg in confirmed status and 3 in proposed sol,etc..
    But when I open the Reports Tab, I can see under" Messages for processing   "  it shows graph only for Confirmed.
    Any idea about this ? Any Solution ?
    Regards,
    Shyam.

    Hi Shyam,
    yes you are right I did not get your question clearly. Now it is better.
    I tried it on my own. First I was not the processor of any message, just my team processed some messages. Result:
    In the overview tab I saw all the messages my team is processing and my created messages. In the reports tab I see no message for processing on the left and my created messages on the right.
    Afterwards I took one message in processing. Result:
    In the overview tab I saw all the messages my team is processing, one message I have to process myself (displayed in a separate column) and my created messages. In the reports tab I now see exactly this one message for processing on the left and my created messages on the right.
    So as my conclusion, in the reports tab you must see all the messages you process yourself, but not by your team. Try it on your own, if you have the same outcome.
    BR André

  • Which table contains the Workcenter and the operation line of an order

    Hello
    Does someone knows in which table I can found the link between the operation defined in a maintenance order and the workcenter? If there is no direct link in a table, is there a function allowing me to do it?
    Kind regards
    Chris

    Chris,
    AFVC and AFVV contain most of the operation data.
    The link is:
    AFKO-AUFPL --> AFVC-AUFPL
    AFVC-AUFPL/APLZL --> AFVV-AUFPL/APLZL
    See [here|http://www.sapfans.com/forums/viewtopic.php?t=200474] for more PM/CS tables
    PeteA
    [www.pjas.com]

  • How to use BAPI Program for change workcenter in co02?

    Hi  Abapers.
           Anybody please tell me how to change the workcenter in CO02 using BAPI Programe.
          Please give me sample of this.
           I will give urs reward of points.
    Thanks
    Regards,
    S.Muthu.

    Hi,
    Use the Function module CR_WORKCENTER_UPDATE
    for workcenter change.
    It is an update function module so you have to call it in update mode with a COMMIT statement to trigger it.
    CALL FUNCTION CR_WORKCENTER_UPDATE IN UPDATE TASK
    exporting...
    imporing..
    COMMIT WORK.
    Note: only after the commit statement the function module will be called in update mode.
    Regards,
    Raj.

  • Activity in the workcenter

    Hi All,
    After releasing a produciton order, I changed the the workcenter in the routing of the material.
    Then I re-read the master data to reflect the changes I made in the routing. But the activities are not updated in the production orde, it is showing the activities from the old workcenter. why?
    Thanks
    Anil

    Hi Anil
    There is a slight misunderstanding here
    At the time of production order creation ,Master BOM & master Routing of the header material are copied in the production order
    Work centre data is again directly used only in the routing and not in the production order
    If you Re read the master data what happens is again only BOM  & Routing are re read and not the work centre data
    So if you want the change to reflect you have to make the change in the master routing ,so when you re read then you can expect the change
    Hope i have answered your query
    Please let me know if i have missed something
    Thanks
    SVP

  • Z quotation type not getting picked up in create quotation workcenter link

    Dear Webui experts,
    We have a custom quotation type created from copying the standard one AGIS.
    The workcenter link for create quotation works fine and displays list of quotations standard available in the system, but does not display the custom created quotation.
    And the following message is displayed;
    "Details" No transaction type is available for creating a transaction. On clicking on details its says either the transaction type is not configured or the user doesnot have authorisation. I have checked both and that is not the issue.
    The pfcg fole has create authorisation for this transaction type in the authorisaion objects;
    CRM_ORD_PR
    CRM_ORD_LP.
    I have checked for any SAP notes with th system message but did not find solution.
    Can you pleaes guide what needs to be done
    Thanks
    Satish

    Thanks Pankaj and Kunstej,
    The problem still exists.
    I made the entry for 'CRM webclient UI' in the channel for the Z transaction type for quote. But still it is not appearing in the webui. Rather all other transaction in the sytem disappeared. As you explained it was because if I maintain it for one it has to be maintained for all.
    So I had to revert the channel entry 'CRM webclkient UI' as it actually did not solve the problem.
    Also I noticed that other custom transaction types are visible in webui although ''CRM webclient UI' entry is not maintained for transaction type in channel. so it seems that the channel entry is not mandatory.
    So may be problem is elsewhere. Please guide me if I need to check anyting else.
    Also I was curious that anywhere (unlike R/3) in the transaction type we do not tell the system that it is a quotation or order, then how does system know that it has has to popuplate certain transaction types in 'Create quotation' link and certain in the 'Create Order' link.

  • Missing some value of Message Notification from WorkCenter

    Hi Expert,
    I have scenario when user create message notification from workcenter, it will be send mail automatically to the user (mail account) in status new and I have successfully create it.
    And the issue is =
    When i preview the message from the transaction (from menu action), it will display the whole message.
    But when user received the message via mail account, some value from the message is miss (not whole message will be appear)
    Could anyone help me how to solve this issue?
    Regards,
    Rhesa Syahrial

    I just used to have stalonetray running at the bottom of my screen. I made its height small enough to fit along with my conky 16px I think it was. Doesn't take up too much space.
    Since I switched to i3, I find its better to just not use trays as I can simply assign a whole workspace for skype and so I don't need any tray.

  • Want to restrict redandend data and find therelevant workcenter

    Hi friends
           i am developing the following report in pp
    output is coming but same data comes in two times and also fetched the workcenter irrelavant.
    pl give me a solutions
      SELECT F~MATNR F~AUFNR F~PSMNG G~XMNGA G~PERNR G~BUDAT G~GRUND G~VORNR  G~AUFPL  G~IEDD H~GRDTX INTO CORRESPONDING FIELDS OF TABLE IT_AFPO_IDEL
             FROM AFPO AS F
             INNER JOIN AFRU AS G ON F~AUFNR = G~AUFNR
             LEFT OUTER  JOIN TRUGT AS H ON G~GRUND = H~GRUND
             WHERE F~MATNR IN S_MATNR AND
                   F~AUFNR IN S_AUFNR   AND
                  G~ISDD IN S_ISDD AND
                   G~IEDD IN S_IEDD AND
                   G~WERKS IN S_WERKS AND
                   G~XMNGA <> 0.
    SELECT H~ARBPL H~OBJID I~AUFPL I~ARBID I~VORNR INTO CORRESPONDING FIELDS OF TABLE IT_CRHD_IDEL
                                FROM CRHD AS H
                                INNER JOIN V_QAPO AS I ON H~OBJID = I~ARBID
                                FOR ALL ENTRIES IN IT_AFPO_IDEL
                                WHERE VORNR = IT_AFPO_IDEL-VORNR .
    IF SY-SUBRC = 0.
    SELECT A~MATNR  B~MAKTX B~SPRAS C~MENGE D~STPRS E~NETPR
                     INTO CORRESPONDING FIELDS OF TABLE IT_MARA_IDEL
                     FROM MARA AS A
                     INNER JOIN MAKT AS B ON A~MATNR = B~MATNR
                     INNER JOIN MSEG AS C ON A~MATNR = C~MATNR
                     INNER JOIN MBEW AS D ON A~MATNR = D~MATNR
                     INNER JOIN EKPO AS E ON A~MATNR = E~MATNR
                     FOR ALL ENTRIES IN IT_AFPO_IDEL
                     WHERE A~MATNR = IT_AFPO_IDEL-MATNR AND B~SPRAS = 'E' AND A~MATKL IN S_MATKL.
         ENDIF.
    DATA : PEDATE(10),
            POSDATE(10).
    LOOP AT IT_AFPO_IDEL.
      CONCATENATE IT_AFPO_IDEL-IEDD6(2) IT_AFPO_IDEL-IEDD4(2) IT_AFPO_IDEL-IEDD+0(4)
        INTO PEDATE SEPARATED BY '.'.
    IT_FINAL_IDEL-IEDD  = IT_AFPO_IDEL-IEDD.
      IT_FINAL_IDEL-IEDD = PEDATE.
       CONCATENATE IT_AFPO_IDEL-BUDAT6(2) IT_AFPO_IDEL-BUDAT4(2) IT_AFPO_IDEL-BUDAT+0(4)
        INTO POSDATE SEPARATED BY '.'.
      IT_FINAL_IDEL-BUDAT = POSDATE.
      IT_FINAL_IDEL-PERNR = IT_AFPO_IDEL-PERNR.
      IT_FINAL_IDEL-MATNR = IT_AFPO_IDEL-MATNR.
      IT_FINAL_IDEL-AUFNR = IT_AFPO_IDEL-AUFNR.
      IT_FINAL_IDEL-PSMNG = IT_AFPO_IDEL-PSMNG.
    IT_FINAL_IDEL-PSAMG = IT_AFPO_IDEL-PSAMG.
    IT_FINAL_IDEL-XMNGA = IT_AFPO_IDEL-XMNGA.
      IT_FINAL_IDEL-GRUND = IT_AFPO_IDEL-GRUND.
      IT_FINAL_IDEL-GRDTX = IT_AFPO_IDEL-GRDTX.
      READ TABLE IT_CRHD_IDEL WITH KEY AUFPL = IT_AFPO_IDEL-AUFPL.
    READ TABLE IT_CRHD_IDEL WITH KEY VORNR = IT_AFPO_IDEL-VORNR.
    IT_FINAL_IDEL-ARBPL = IT_CRHD_IDEL-ARBPL.
    READ TABLE IT_MARA_IDEL WITH KEY MATNR = IT_AFPO_IDEL-MATNR.
    IF SY-SUBRC = 0.
      IT_FINAL_IDEL-MAKTX = IT_MARA_IDEL-MAKTX.
    IT_FINAL_IDEL-MENGE = IT_MARA_IDEL-MENGE.
      IT_FINAL_IDEL-STPRS = IT_MARA_IDEL-STPRS.
      IT_FINAL_IDEL-NETPR = IT_MARA_IDEL-NETPR.
      IT_FINAL_IDEL-TC    =  IT_AFPO_IDEL-XMNGA * IT_MARA_IDEL-STPRS.
    ENDIF.
      APPEND IT_FINAL_IDEL.
      CLEAR : IT_FINAL_IDEL,IT_AFPO_IDEL,IT_MARA_IDEL,IT_CRHD_IDEL.
      ENDLOOP.
    ENDFORM.

    hi,
    BADI you mentioned is not present in Definition view ie se18.
    To implement BADI using se19 you need to check 1st wether it is present in definition view.
    Once you find appropiate BADI you will have to write code in its interface method.
    For this purpose you should be aware of ABAP OOPs concept.
    Regards,
    SUDHIR

  • RCA - Read Permission

    Hi,
    I'm trying to assign the necessary Root Cause Analysis roles for read access to a user. But without
    success:
    I assigned the following roles to the user:
    - SAP_RCA_DISP
    - SAP_RCA_EXE
    - SAP_SMWORK_BASIC
    - SAP_SMWORK_DIAG
    - SAP_BI_E2E
    But the user can't select any systems in the RCA Workcenter and the Button (Workload Analysis, Change Analysis,...)
    are not correct displayed. There are strange letter chains visible.
    Has someone an idea how to fix this issue?
    Thanks in advance,
    Joern .

    Hello,
    Permission issues always cause the buttons not to show up, never a string of chars...
    A "strange letter chains visible" is not common. I suspect that your stack is not consistent. The workload analysis
    page is ABAP Based, Webdynpro ABAP. Please check if your components are according to note 1274287. In solman_setup, do a pre-requisite check to see if there's any warning regarding your stack.
    Best regards,
    Guilherme

Maybe you are looking for