Cost element missing form screen KP06

Hello everyone,
I am doing ABC costing and while making a posting on screen Change cost element/ Activity input planning which is KP06 transaction code i cannot find boxes for cost element where i can take multiple cost element and more over when i m entering in item overview screen with cost centre & activity types i can see one of my cost element. But i cannot include cost elements  at KP06 screen.
Can anyone help me out Please.
Thanks,
Mohammed samiuddin.

Mohammed,
Check the layout you are using while entering the data in that transaction. Typically you can see the layout  that you are in at the top of the screen. Usually SAP defaults to layout 1-101 which have the option to enter cost centers, activities and cost elements.  Use the icon left and right arrow (Previous layout and Next Layout) located under the title of the transaction KP06 to change it. If you still can't find any that fulfills you requirement, I am afraid you may have to create a new one in the customizing (CO Manual Planning)
Hope this helps.
GG

Similar Messages

  • Error while uploading cost element planning data into KP06 transaction

    Hi,
    I am facing the below error while uploading the Cost Element Planning excel file in KP06 transaction code. Please help me in fix this issue.
    We are trying to enter a budget upload using Transaction code: KP06. We get the following message errors  when we do this. It seems revenue accounts cannot be entered using cost centers. Question, how should these accounts be added? Kindly help me how to add Revenue cost elements to this planning?
    Error accured when generating data for the planning processor
    Messange no.K9400
    Revenue element 451000 can not be planned on cost center 9720
    Thanks
    Kishore

    The cost element which have  category 01 only can be planned in the Kp06.
    Regards
    Ranjan

  • Cost Element missing in FAGLFLEXT for some PCA Plan records

    Hi Gurus,
    We have uploaded a PCA plan and can see the same in GP12NA. I see the planned values (GLPL) in FAGLFLEXT from SE16 under the correct accounts for 0L ledger for the correct company code and the fiscal year. I noticed a difference in the data
    1) For the revenue elements (11 and 12 Categories) the 'cost element' field is not getting populated in FAGLFLEXT. ('Account' is populated.) Is it expected?
    2) We have a Z library report that was built on FAGLFLEXT. The report uses the cost element groups to pull in the data and hence the 'Actual Values' are pulled in the report but the 'Plan Values' are missing. (Because of point1)
    Any pointers on how to fix this?Could you please suggest the places i would need to look to fix this?
    (I've checked that the plan vesion is activated for 2011)
    (The report has version Z2 as one of its parameters.)
    Regards,
    Erp.Warrior

    Thanks a lot for your replies.
    Waman: I've looked up the Note 983835 - NewGL planning: Cost element field (COST_ELEM) initial.
    This note talks about the Cost element not getting populated during planning. My question / confusion is in my case, the cost element is getting populated for some of them and not getting populated only for cost elem category 11 and 12.
    Is this note intended for this issue?
    Ajay: I've tried re-planning and still found the same issue. Thanks for your inputs. I'll analyse about the Note that waman has referred to and then may be go to SAP as suggested by you.
    Please let me know if any of you have any other suggestions as well.
    Thanks
    erp.warrior

  • Report for Missing Cost Elements

    Hello Friends
    I want to know if there is any report which shall give the list of missing cost elements in the system. I mean I want to know the list of primary cost elements that are still not created in the system as compared to P&L account GLs(Hence such cost elements need to be created now)
    Thank you in advance
    Best Regards
    Prashant S

    Hi,
    T-Code KAH3, enter cost element group that covers all cost elements so far, go to "Extras / Check and Help functions / Check completeness". The "missing" primary cost elements are displayed, but ensure, that they really should be created as cost element.
    Best regards, Christian

  • SD billing: posting to FI is executed, although cost element is missing

    When posting an invoice in SD, the posting to FI is executed without an error, although the G/L account retrieved through account determination (in this case revenue account) has no cost element assigned.
    Besides the FI document, also COPA and profit center document are created.
    The cost center document is not created.
    Why is there no error message in the first place because of the missing cost element ?
    How can I ensure through customizing, that an error message is being displayed, if the G/L account has no cost element assigned ?
    Bet regards
    Edeltraut

    In tcode OPUC check cost element field as required.

  • Forecast for planning over the Cost element/Cost center with KP06

    Hi all
    I'm searching a idea: one of our chief controller need to insert a "forecast" of budget inserted over the various cost elements/cost centers using the transaction KP06. THe problem is that he don't want lost the budget because he can need the reload the previous budget data during the year if the actual situation change. Obvisiously the insertion of the forecast overwrite the budget data over the version 0. This forces us to download over a file the budget and archive it, and reload it eventually. But this solution, a part the programming effort, don't permit to have both the data at the same time in the system. Exist a pratical customizing solution in CO for manage a "forecast"? Our release is 46c.
    thanks
    Davide

    Thanks Pascal.
    Some questions (i dont' have a CO background ):
    >execute charge transferts and plan distribution in the new >version
    Can you explicate me these concepts (or the transaction used for make this, probably I know this but in italian the name is different)? The KP47 copy the value over the single cost element or only the total of cost center?
    >KP98 is the transaction to copy postings from version 0 to >another version. In this case version 0 is the template.
    Are you sure? The KP98 have the description "Copy by actual version to planned version", the KP97 "copy from planned to planned"
    thanks in advance
    Davide

  • Cost Center & Cost Element Excel Planning Profile Error - KP06

    Hi,
    I have created a layout for cost center/cost element planning.after that i have created planner profile.but while saving the generic file,i am getting the below error and not able to save that.Kindly advice me.
    A later upload is not possible with this layout
    Message no. K9363
    Diagnosis
    The layout cannot be used for an upload. This can be caused by one of the following situations:
    The layout does not contain a data field that is ready for input.
    The layout has a lead column that only contains the text for the characteristic value and not the characteristic value itself
    The layout contains formulas
    The layout has a complex lead column and contains empty lines.
    System response
    If generic file names have already been created (that is, an upload is intended), the file description cannot be saved.
    Procedure
    If you want to use the layout for an upload, configure it accordingly.
    If one of the last three situations is the case, the layout can only be used for manual planning and not for an upload. In this case, remove the generic file name.
    Thanks
    Supriya

    Hi Supriya,
    Can you please review the attached notes as they should fix the problem.
    489867     KP06 and following: Setting up an Excel upload
    319713     Error with Excel upload - possible causes
    Regards,
    Abhisek

  • Delete cost element in KP06 planning

    Dear all,
    I am facing the issue in cost run:
    Our scenario is like below we done cost element planning for cost center activity type cost element combination(kp06) due to mistake user defined the cost element which is not relevant for activity price calculation after that i run the plan price calculation(KSPI) here i found the warning  message  "Cost element is not assigned to cost component structure, if i will ignore this message my cost component view and itemization view won't match. So i deleted the cost element value from KP06 , but when i execute the kspi same message is appeating.
    1) Please advise me how to delete the cost element from kp06 resulting it wont appear in kspi.
    Regards,
    Ravi.

    Hello Ravi,
    I repeatedly used the following programms Ajay might refer to.
    First guess: xx29 might help.
    "Best practice?": I would not call it best practice. At least it is SAP-reports and not
    customer-specific reports.
    I hope it helps.
    With kind regards
    Thomas
    RKPLNC18
    RKPLNC19
    RKPLNC25
    RKPLNC27
    RKPLNC23
    RKPLNC29
    RKPLNC39

  • Some cost elements are missing

    Hi gurus,
    We have peculiar situation,some costelements are missing in the table
    how do we check them
    anand

    Hi
    Check in the Table CSKB (Cost Elements (Data Dependent on Controlling Area)  whether the cost element exists or not.
    Also let me knwo wheter you are checking for primary or secondary cost elements
    Assign points f helpful
    regards,
    radhika

  • Photoshop Elements #11 dialog screen missing

    I AM UNABLE TO OBTAIN THE SCREEN THAT HAS THE ADVANCED DIALOG BOX ON THE LOWER LEFT HAND CORNER SO THAT I CAN STATE NAME OF CREATOR, COPYWRIGHT ETC.    I have had PS Elements since #1, and never had this problem.'    Yes, I have gone into Preferences and can set download option, but cannot get the screen I have just described.     PLEASE HELP ME

    HI,
    This still does not work.  I have tried to correct this several times 
    before by doing just what you suggest, but it does not work.   I click  on "APD
    Advanced Dialog", and it still does not appear when I load my  compactflash
    card.    This also DOES NOT bring up the  Advanced Dialog box where I can
    select either advanced or regular  etc.   Something is seriously wrong with
    this edition of Photoshop  11.   I also tried to acces the link you sent, and
    I cannot open  it.  - ???????
    We still have a problem that is not fixed.
    I still await your phone call either tomorrow (Friday) or Monday.
    Regards,
    Dave Pidcock
    David E. Pidcock
    VisionQuest Enterprises
    VisionQuest  Photography
    405 27th Avenue N.E.
    Great Falls, MT 59404
    (406)  727-2466
    [email protected] 
    In a message dated 2/21/2013 7:30:12 P.M. Mountain Standard Time, 
    [email protected] writes:
    Re:  Photoshop Elements #11 dialog screen missing
    created by andaleebfatima1
    (http://forums.adobe.com/people/andaleebfatima1)  in  Photoshop Elements - View the full  discussion
    (http://forums.adobe.com/message/5083732#5083732)

  • Cost Element group table

    Can anyone tell me which table contains the cost element groups and which cost elements are related to them

    Please.... Help!
    I want to write data there can fix it ....!
    ---------      I want to record this record in the edit field -----------------------
    code is:
    REPORT NO STANDARD PAGE HEADING LINE-SIZE 100 LINE-COUNT 60
                                    MESSAGE-ID zin.
    TYPE-POOLS: gset, gseth, slis, kkblo.
    TABLES: aufk.
    TYPES: BEGIN OF t_datam.
            INCLUDE STRUCTURE GRPOBJECTS.
    TYPES: END OF t_datam.
    DATA: it_datam TYPE STANDARD TABLE OF t_datam WITH HEADER LINE.
    DATA: gwa_datam TYPE t_datam,
          GRPOBJECTS TYPE t_datam.
    DATA: pt_node TYPE gseth_node_tab,           "Nodos
          pt_valu TYPE gseth_val_tab,            "Valores
          pt_mast TYPE gseth_md_tab.             "Descripciones
    DATA: ls_node LIKE LINE OF pt_node,
          ls_valu LIKE LINE OF pt_valu.
    DATA:
          p_layout     TYPE slis_layout_alv,              " Layout inicial
          t_sortcat    TYPE slis_sortinfo_alv OCCURS 1,   " Orden ALV
          t_fieldcat   TYPE slis_t_fieldcat_alv,          " Atributos a mostrar
          t_events     TYPE slis_t_event,                 " Lista de eventos
          t_top_page   TYPE slis_t_listheader,            " Write ini pagina
          w_sort       LIKE LINE OF t_sortcat.
    DATA: l_repid TYPE sy-repid.
    SELECTION-SCREEN BEGIN OF BLOCK b01 WITH FRAME TITLE text-b01.
    PARAMETERS:     p_kokrs LIKE aufk-kokrs       OBLIGATORY DEFAULT '300',
                    p_class LIKE setnode-setclass OBLIGATORY DEFAULT '0101',
                    p_subcl LIKE setnode-subclass DEFAULT '300',
                    p_setnm LIKE setnode-setname  OBLIGATORY DEFAULT '300MPR2'.
    SELECTION-SCREEN: END OF BLOCK b01.
    PARAMETERS:     p_expor NO-DISPLAY,
                    p_nivel NO-DISPLAY. "@01
    *Initialization
    INITIALIZATION.
      l_repid = sy-repid.
    START-OF-SELECTION.
       PERFORM 1pro_data.
    IF p_expor = 'X'.
        IF p_nivel = 'X'.                                       " @01
          EXPORT it_datam TO MEMORY ID 'T_DATAM'.
        ENDIF.
       ELSE.
        PERFORM 0_layout USING p_layout.
        PERFORM a_haz_alv.
        PERFORM c_haz_eventos CHANGING t_events.
        PERFORM d_call_alv.
      ENDIF.
    END-OF-SELECTION.
    FORM 1pro_data.
    PERFORM obt_jerarquia  USING  p_kokrs      "Sociedad         (intput)
                                   p_class      "Clase de set     (intput)
                                   p_subcl      "Subclase
                                   p_setnm.     "Nombre del set
    * LLenado de datos del master
      LOOP AT pt_node INTO ls_node.
        it_datam-shortname = ls_node-shortname.
        it_datam-hlevel = ls_node-hlevel.
        it_datam-descript = ls_node-descript.
        it_datam-credate = ls_node-credate. "Fecha creada
        it_datam-creuser = ls_node-creuser. "usuario creador
        it_datam-ref_set = ls_node-ref_set. "Email
        APPEND it_datam.
      ENDLOOP.
    sort it_datam by hlevel ascending.
    ENDFORM.
    FORM obt_jerarquia USING  pi_kokrs                      "Sociedad         (intput)
                              pi_class                      "Clase de set     (intput)
                              pi_subcl                      "Subclase         (intput)
                              pi_setnm.                     "Nombre de set    (intput)
      DATA:
        lf_info       LIKE grphinfo,
        lf_over       LIKE sy-datar,
        lf_class      LIKE sethier-setclass,
        lf_setid      LIKE sethier-setid,
        lf_kokrs      LIKE sethier-kokrs,
        lf_mandt      LIKE sy-mandt,
        lf_mast_datax LIKE grphp1,
        lf_structurex LIKE grphp2,
        lf_repl_class LIKE sethier-setclass,
        lf_repl_unitx LIKE sethier-kokrs,
        lf_repl_table LIKE sethier-fieldname,
        lf_repl_field LIKE sethier-tabname,
        lf_repl_suffi LIKE grpdynp-suffix,
        lf_nros_level LIKE sethier-level.
      DATA lf_strlen TYPE i.
    * Data
      lf_class = pi_class.
    *              CONCATENAMOS CLASE + SUBCLASE + NOMBRE DE GRUPO
    *Si hay subclase (Centro de beneficio, clase de costo, centro de costo)
      IF pi_subcl NE space.
    * Cargamos la clase de set con la subclase
        CONCATENATE lf_class pi_subcl INTO lf_setid.
        lf_strlen = STRLEN( pi_subcl ).
      ELSE.
    * Si no hay subclase (orden interna), cargamos solo la clase de set
        lf_setid  = lf_class.
        lf_strlen = 0.
      ENDIF.
    *Obtenemos cuántos espacios en blanco habrá entre la subclase y el nombre del set
      lf_strlen = 4 - lf_strlen.
      IF lf_strlen < 0. lf_strlen = 0. ENDIF.
      lf_strlen = 0.
    *Si es > 0 concatenamos caracter para ser reemplazado por espacio en blanco
      DO lf_strlen TIMES.
        CONCATENATE lf_setid '&' INTO lf_setid.
      ENDDO.
    *Cargamos nombre de set
      IF p_class = '0106' OR p_class = '0101'.
        CONCATENATE lf_setid '&' pi_setnm INTO lf_setid.
      ELSE.
        CONCATENATE lf_setid pi_setnm INTO lf_setid.
      ENDIF.
    *Reemplazamos & por espacios en blanco
      TRANSLATE lf_setid USING '& '.
      lf_kokrs         = pi_kokrs.
      lf_mandt         = '100'.
      lf_mast_datax    = '   '.   "Los espacios evita mensaje verificación de datos maestros
      lf_structurex    = 'X  X0200'.
      lf_repl_class    = ' '.
      lf_repl_unitx    = ' '.
      lf_repl_table    = ' '.
      lf_repl_field    = ' '.
      lf_repl_suffi    = ' '.
      lf_nros_level    = '1'.
      REFRESH: pt_node, pt_valu, pt_mast.
    *Obtiene lista de sub estaciones de la tabla objetos
      CALL FUNCTION 'K_HIERARCHY_TABLES_READ'
        EXPORTING
          e_class                     = lf_class
          e_setid                     = lf_setid
          e_kokrs                     = lf_kokrs
          e_mandt                     = lf_mandt
          e_master_data               = lf_mast_datax
          e_structure                 = lf_structurex
          e_replace_class             = lf_repl_class
          e_replace_unit              = lf_repl_unitx
          e_replace_table             = lf_repl_table
          e_replace_field             = lf_repl_field
          e_suffix                    = lf_repl_suffi
          e_old_line_level            = lf_nros_level
        TABLES
          t_nodes                     = pt_node         "Nodos
          t_values                    = pt_valu         "Valores
          t_master_data               = pt_mast         "Textos
        CHANGING
          c_info                      = lf_info
          c_overwrite                 = lf_over
        EXCEPTIONS
          no_controlling_area         = 1
          no_chart_of_account         = 2
          different_controlling_areas = 3
          different_chart_of_accounts = 4
          set_not_found               = 5
          illegal_field_replacement   = 6
          illegal_table_replacement   = 7
          fm_raise                    = 8
          convert_error               = 9
          no_overwrite_standard_hier  = 10
          no_bukrs_for_kokrs          = 11.
    ENDFORM. 
    FORM 0_layout USING ls_layout TYPE slis_layout_alv.
      CLEAR: ls_layout.
      ls_layout-zebra                 = ''.
      ls_layout-colwidth_optimize     = 'X'.
      ls_layout-box_fieldname         = space.
      ls_layout-no_input              = 'X'.
      ls_layout-no_vline              = ' '.
      ls_layout-no_colhead            = ' '.
      ls_layout-lights_condense       = 'X'.
      ls_layout-confirmation_prompt   = 'X'.
      ls_layout-detail_popup          = 'X'.
      ls_layout-detail_initial_lines  = 'X'.
      ls_layout-detail_titlebar       = 'Centro de Benef. vs Centro Costo'.
    ENDFORM.  
    FORM a_haz_alv.
      REFRESH: t_fieldcat.
      CLEAR:   t_fieldcat.
      PERFORM define_campo USING:
      'SHORTNAME' '' '' '25' 'GRPOBJECTS' '' '' 'ID Corto'       '' '' '' '' '',
      'HLEVEL' ''    '' '04' 'GRPOBJECTS' '' '' 'Nivel'          '' '' '' '' '',
      'DESCRIPT' '' ''  '35' 'GRPOBJECTS' '' '' 'Descripción'    '' '' '' '' '',
      'CREDATE' '' ''   '12' 'GRPOBJECTS' '' '' 'Fec.Creada'     '' '' '' '' '',
      'CREUSER' '' ''   '08' 'GRPOBJECTS' '' '' 'Usu.Creador'    '' '' '' '' 'X',
      'REF_SET' '' ''   '34' 'GRPOBJECTS' '' '' 'Correo E-mail asig.' 'Cor.Email' 'E-mail' '' '' 'X'.
    ENDFORM.
    FORM define_campo  USING fieldname        "Nombre de campo
                             emphasize        "Color
                             hotspot          "Evento click
                             outputlen        "Longitud
                             ref_tabname      "Tabla referencia
                             cfieldname       "Campo referencia
                             datatype         "Tipo de dato
                             seltext_l        "Texto largo
                             seltext_m        "Texto mediano
                             seltext_s        "Texto corto
                             do_sum           "Campo para suma
                             no_out           "No se visualiza
                             pi_edit  TYPE c. "Editar campos
      DATA: ls_fieldcat TYPE slis_fieldcat_alv.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname   = fieldname.
      ls_fieldcat-tabname     = 'T_AUFK2'.
      ls_fieldcat-ref_tabname = ref_tabname.
      ls_fieldcat-outputlen   = outputlen.
      ls_fieldcat-emphasize   = emphasize.
      ls_fieldcat-hotspot     = hotspot.
      ls_fieldcat-cfieldname  = cfieldname.
      ls_fieldcat-datatype    = datatype.
      ls_fieldcat-seltext_l   = seltext_l.
      ls_fieldcat-seltext_m   = seltext_m.
      ls_fieldcat-seltext_s   = seltext_s.
      ls_fieldcat-do_sum      = do_sum.
      ls_fieldcat-no_out      = no_out.
      ls_fieldcat-edit        = pi_edit.
      APPEND ls_fieldcat TO t_fieldcat.
    ENDFORM.                    "define_campo
    FORM c_haz_eventos CHANGING lt_events TYPE slis_t_event.
      CONSTANTS:
        c_top_of_page  TYPE slis_formname VALUE 'TOP_OF_PAGE',
        c_end_of_page  TYPE slis_formname VALUE 'END_OF_PAGE',
        c_user_command TYPE slis_formname VALUE 'USER_COMMAND'.
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = lt_events.
    * tope de pagina
      READ TABLE lt_events WITH KEY name =  slis_ev_top_of_page INTO ls_event.
      IF sy-subrc = 0.
        MOVE c_top_of_page TO ls_event-form.
        APPEND ls_event TO lt_events.
      ENDIF.
    * fin de pagina
      READ TABLE lt_events WITH KEY name =  slis_ev_top_of_page INTO ls_event.
      IF sy-subrc = 0.
        MOVE c_top_of_page TO ls_event-form.
        APPEND ls_event TO lt_events.
      ENDIF.
    * eventos de usuario
      READ TABLE lt_events WITH KEY name = slis_ev_user_command INTO ls_event.
      IF sy-subrc = 0.
        MOVE c_user_command TO ls_event-form.
        APPEND ls_event TO lt_events.
      ENDIF.
    ENDFORM.
    FORM d_call_alv.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = l_repid
          i_callback_pf_status_set = 'SET_STATUS'
          i_callback_user_command  = 'USER_COMMAND'
          is_layout                = p_layout
          it_fieldcat              = t_fieldcat[]
          i_save                   = 'X'
          it_sort                  = t_sortcat
    *   is_variant               = g_variant_1
        TABLES
          t_outtab                 = it_datam
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    ENDFORM. 
    FORM set_status USING rt_extab  TYPE  slis_t_extab.
      SET PF-STATUS  'ALV_STATUS'.
    ENDFORM.
    FORM user_command USING r_ucomm     LIKE sy-ucomm
                            r_selfield TYPE slis_selfield.
      PERFORM sr_upd_alv.
    DATA: wa_alv  LIKE it_datam.
    r_selfield-refresh = 'X'.
      CASE r_ucomm.
        WHEN 'SAVE'.
          LOOP AT it_datam INTO gwa_datam.
      "Here you should go, because I have not created anything but just reads the data helps.
          ENDLOOP.
    ENDFORM.

  • RSA2/Cost Element Hierarchy (0COSTELMNT_0102_HIER)/remove 0CO_AREAP Prefix

    Hi, gurus.
    We are using 0COSTELMNT_0102_HIER delivered infosource.  This datasource is extracting from our source system the cost element hierarchy.  When loading into BW, every element is getting a controlling area Prefix (cost element characteristics, hierarchy nodes and hierarchy name).  This is the standard behaviour.
    Our requirement is to remove Controlling Area prefix from every hierarchy node and from hierarchy name, but not from characteristic elements.
    eg......0CO_AREA........0COSTELMNT............0HIERNAME
    .........M650..................RU_SIGMA................M650RU_SIGMA
    .........M660..................RU_SIGMA................M660RU_SIGMA
    And we want to get the hierarchy name without the controlling area, so:
    ....................................................................0HIERNAME
    ....................................................................RU_SIGMA
    We can´t upload the hierarchy from a flat file cause we want to load and refresh it daily from the source system.
    We've asked in Marketplace about the missing "change" option in RSA2 transaction, cause we see 2 options to do this:
    1) Create a customer datasource for 0COSTELMNT hierarchy with RSA2 and use 2 custom function modules for extraction and hierarchy catalogs.
    2) Modify 0COSTELMNT_0102_HIER and call 2 new custom function modules for catalog and data extraction (GSBH_HIERARCHY_TRANSFER_SETS, GSBH_HIERARCHY_CATALOG_SETS)
    In any case, we would need access to RSA2 with create/modify authorization.
    They answered that RSA2 is for display only.  Here is their answer:
    "RSA2 is a display only transaction. This transaction is not released for changes in customer systems. The reason is that there would be risks due to incorrect modifications."
    I've also tryed BW07 transaction, but it is just for sets created with GS01 transaction (hierarchy class 0000), and I can´t create a custom datasource for Cost Element from this point.
    If is there another way to supress controlling area prefix??
    Our Development team don´t want the idea to modify GSBH_HIERARCHY_TRANSFER_SETS, GSBH_HIERARCHY_CATALOG_SETS function modules without an OSS note that says so.
    Thanks in advance, Leticia
    I'm having just the same problem mentioned in this thread /community

    I have created a ABAP program to download the costelementgroup from SAP R/3 into a flatfile.<br>
    Hope this helps.<p>
    &----<br>
    *& Report  Z_EXTRACT_COSTELMNTGRP_HIER<br>
    *&<br>
    &----<br>
    *&<br>
    *&<br>
    &----<br>
    <br>
    REPORT  Z_EXTRACT_COSTELMNTGRP_HIER.<br>
    <br>
    ************************************************************************<br>
    TABLES<br>
    ************************************************************************<br>
    <br>
    TABLES: SETLEAF,<br>
            CSKU,<br>
            CSKT.<br>
    <br>
    ************************************************************************<br>
    TYPES<br>
    ************************************************************************<br>
    <br>
    TYPES:  BEGIN OF T_FL_SETLEAF,<br>
            SETNAME TYPE SETLEAF-SETNAME,<br>
            LINEID TYPE SETLEAF-LINEID,<br>
            VALOPTION TYPE SETLEAF-VALOPTION,<br>
            VALFROM TYPE SETLEAF-VALFROM,<br>
            VALTO TYPE SETLEAF-VALTO,<br>
            LTEXT TYPE CSKU-LTEXT,<br>
            END OF T_FL_SETLEAF.<br>
    <br>
    TYPES:  BEGIN OF T_FL_CSKU,<br>
            KSTAR TYPE CSKU-KSTAR,<br>
            LTEXT TYPE CSKT-LTEXT,<br>
            END OF T_FL_CSKU.<br>
    <br>
    TYPES:  BEGIN OF T_FL_CSKB,<br>
            KOKRS TYPE CSKB-KOKRS,<br>
            KSTAR TYPE CSKB-KSTAR,<br>
            DATBI TYPE CSKT-DATBI,<br>
            END OF T_FL_CSKB.<br>
    <br>
    TYPES:  BEGIN OF T_FL_HIER,<br>
            NID(8) TYPE N,<br>
            IOBJ(30),<br>
            NNAME(32),<br>
            PID(8) TYPE N,<br>
            HID TYPE I,<br>
            VALC TYPE I,<br>
            DESC(60),<br>
            END OF T_FL_HIER.<br>
    <br>
    TYPES:  BEGIN OF T_FL_MKHIER,<br>
            HID TYPE I,<br>
            PID(8) TYPE N,<br>
            END OF T_FL_MKHIER.<br>
    <br>
    TYPES:  BEGIN OF T_FL_FINAL,<br>
            OUT(500),<br>
            END OF T_FL_FINAL.<br>
    <br>
    ************************************************************************<br>
    WORKAREAS<br>
    ************************************************************************<br>
    <br>
    DATA:  VFL_CSKU TYPE T_FL_CSKU,<br>
           VFL_CSKB TYPE T_FL_CSKB,<br>
           VFL_SETLEAF TYPE T_FL_SETLEAF,<br>
           VFL_HIER TYPE T_FL_HIER,<br>
           VFL_HIER1 TYPE T_FL_HIER,<br>
           VFL_MKHIER TYPE T_FL_MKHIER,<br>
           VFL_FINAL TYPE T_FL_FINAL,<br>
           VFL_SETHIER TYPE SETHIER_CO.<br>
    <br>
    DATA:  V_SETHEADER TYPE SETHEADER.<br>
    <br>
    ************************************************************************<br>
    INTERNAL TABLES<br>
    ************************************************************************<br>
    <br>
    DATA:  VIT_CSKU TYPE STANDARD TABLE OF T_FL_CSKU,<br>
           VIT_CSKB TYPE STANDARD TABLE OF T_FL_CSKB,<br>
           VIT_SETLEAF TYPE STANDARD TABLE OF T_FL_SETLEAF,<br>
           VIT_SETLEAF1 TYPE STANDARD TABLE OF T_FL_SETLEAF,<br>
           VIT_HIER TYPE STANDARD TABLE OF T_FL_HIER,<br>
           VIT_MKHIER TYPE STANDARD TABLE OF T_FL_MKHIER,<br>
           VIT_FINAL TYPE STANDARD TABLE OF T_FL_FINAL,<br>
           VIT_SETHIER TYPE SETHIER_CO OCCURS 0 WITH HEADER LINE,<br>
           VIT_SETVAL TYPE SETVAL_CO OCCURS 0 WITH HEADER LINE.<br>
    <br>
    ************************************************************************<br>
    VARIABLES<br>
    ************************************************************************<br>
    <br>
    DATA:  NID(8) TYPE N,<br>
           PID(8) TYPE N,<br>
           CSTEL(14) TYPE N,<br>
           SETCLS(4) TYPE C,<br>
           IOBJ(10) TYPE C,<br>
           HID TYPE I,<br>
           NHID(8) TYPE N,<br>
           NVALC(8) TYPE N,<br>
           OUT(500),<br>
           L_FLAG(2) TYPE N,<br>
           L_LINK(1),<br>
           L_COAREA LIKE BAPICO_GROUP-CO_AREA,<br>
           RETURN LIKE BAPIRET2.<br>
    <br>
    ************************************************************************<br>
    SELECTION SCREEN INPUTS<br>
    ************************************************************************<br>
    <br>
    SELECTION-SCREEN BEGIN OF BLOCK SS01 WITH FRAME TITLE TEXT-002.<br>
    PARAMETERS: P_SUBCLS(4) OBLIGATORY,                "Org. eenheid bepalen<br>
                P_SETNM(15) OBLIGATORY.            "Kostensoortgroep bepalen<br>
    SELECTION-SCREEN END OF BLOCK SS01.<br>
    <br>
    SETCLS = '0102'.                        "Setklasse voor kostensoortgroep<br>
    IOBJ = '0COSTELMNT'.                    "InfoObjectnaam voor kostensoort<br>
    <br>
    SELECT SETNAME LINEID VALOPTION VALFROM VALTO INTO TABLE VIT_SETLEAF<br>
           FROM SETLEAF<br>
           WHERE SUBCLASS = P_SUBCLS<br>
           AND SETCLASS = SETCLS.<br>
    <br>
    SELECT KSTAR LTEXT INTO TABLE VIT_CSKU<br>
           FROM CSKU<br>
           WHERE KTOPL = P_SUBCLS<br>
           AND SPRAS = 'NL'.<br>
    <br>
    LOOP AT VIT_SETLEAF INTO VFL_SETLEAF.<br>
    <br>
      IF VFL_SETLEAF-VALOPTION = 'EQ'.<br>
    <br>
        READ TABLE VIT_CSKU INTO VFL_CSKU WITH KEY<br>
                   KSTAR = VFL_SETLEAF-VALFROM BINARY SEARCH.<br>
    <br>
        IF SY-SUBRC = 0.<br>
    <br>
          VFL_SETLEAF-LTEXT = VFL_CSKU-LTEXT.<br>
    <br>
          IF VFL_SETLEAF-LTEXT IS INITIAL.<br>
    <br>
            SELECT SINGLE KTEXT FROM CSKU INTO VFL_SETLEAF-LTEXT<br>
                   WHERE SPRAS = 'N'<br>
                   AND KTOPL = P_SUBCLS<br>
                   AND KSTAR = VFL_SETLEAF-VALFROM.<br>
    <br>
          ENDIF.<br>
    <br>
          APPEND VFL_SETLEAF TO VIT_SETLEAF1.<br>
    <br>
        ENDIF.<br>
    <br>
        CLEAR VFL_CSKU.<br>
    <br>
      ELSEIF VFL_SETLEAF-VALOPTION = 'BT'.<br>
    <br>
        LOOP AT VIT_CSKU INTO VFL_CSKU<br>
             WHERE KSTAR GE VFL_SETLEAF-VALFROM<br>
             AND KSTAR LE VFL_SETLEAF-VALTO.<br>
    <br>
          VFL_SETLEAF-VALFROM = VFL_CSKU-KSTAR.<br>
          VFL_SETLEAF-VALTO = VFL_CSKU-KSTAR.<br>
          VFL_SETLEAF-LTEXT = VFL_CSKU-LTEXT.<br>
    <br>
          IF VFL_SETLEAF-LTEXT IS INITIAL.<br>
    <br>
            SELECT SINGLE KTEXT FROM CSKU INTO VFL_SETLEAF-LTEXT<br>
                   WHERE SPRAS = 'N'<br>
                   AND KTOPL = P_SUBCLS<br>
                   AND KSTAR = VFL_SETLEAF-VALFROM.<br>
    <br>
          ENDIF.<br>
    <br>
          APPEND VFL_SETLEAF TO VIT_SETLEAF1.<br>
    <br>
          CLEAR VFL_CSKU.<br>
    <br>
        ENDLOOP.<br>
    <br>
      ENDIF.<br>
    <br>
      CLEAR VFL_SETLEAF.<br>
    <br>
    ENDLOOP.<br>
    <br>
    CLEAR VIT_SETLEAF[].<br>
    <br>
    SORT VIT_SETLEAF1 BY SETNAME VALFROM.<br>
    <br>
    CALL FUNCTION 'K_GROUP_REMOTE_READ'<br>
      EXPORTING<br>
        setclass   = SETCLS<br>
        co_area    = L_COAREA<br>
        chrt_accts = P_SUBCLS<br>
        groupname  = P_SETNM<br>
      IMPORTING<br>
        return     = RETURN<br>
      TABLES<br>
        et_sethier = VIT_SETHIER<br>
        et_setval  = VIT_SETVAL.<br>
    <br>
    NID = 00000001.<br>
    PID = 00000000.<br>
    <br>
    LOOP AT VIT_SETHIER INTO VFL_SETHIER.<br>
    <br>
      IF NID EQ 00000001.<br>
    <br>
        HID = VFL_SETHIER-HIERLEVEL.<br>
    <br>
        VFL_HIER-NID = NID.<br>
        VFL_HIER-PID = PID.<br>
        VFL_HIER-HID = HID.<br>
        VFL_HIER-IOBJ = '0HIER_NODE'.<br>
        VFL_HIER-NNAME = VFL_SETHIER-GROUPNAME.<br>
        VFL_HIER-DESC = VFL_SETHIER-DESCRIPT.<br>
        VFL_HIER-VALC = VFL_SETHIER-VALCOUNT.<br>
    <br>
        VFL_MKHIER-HID = HID.<br>
        VFL_MKHIER-PID = PID.<br>
    <br>
        APPEND VFL_MKHIER TO VIT_MKHIER.<br>
        APPEND VFL_HIER TO VIT_HIER.<br>
    <br>
        NID = NID + 1.<br>
    <br>
        CLEAR: VFL_HIER, VFL_MKHIER.<br>
    <br>
      ELSE.<br>
    <br>
        IF HID EQ VFL_SETHIER-HIERLEVEL.<br>
    <br>
          HID = VFL_SETHIER-HIERLEVEL.<br>
    <br>
          VFL_HIER-NID = NID.<br>
          VFL_HIER-PID = PID.<br>
          VFL_HIER-HID = HID.<br>
          VFL_HIER-IOBJ = '0HIER_NODE'.<br>
          VFL_HIER-NNAME = VFL_SETHIER-GROUPNAME.<br>
          VFL_HIER-DESC = VFL_SETHIER-DESCRIPT.<br>
          VFL_HIER-VALC = VFL_SETHIER-VALCOUNT.<br>
    <br>
          NID = NID + 1.<br>
    <br>
          APPEND VFL_HIER TO VIT_HIER.<br>
    <br>
          CLEAR: VFL_HIER.<br>
    <br>
        ELSEIF HID LT VFL_SETHIER-HIERLEVEL.<br>
    <br>
          HID = VFL_SETHIER-HIERLEVEL.<br>
          PID = NID - 1.<br>
    <br>
          VFL_HIER-NID = NID.<br>
          VFL_HIER-PID = PID.<br>
          VFL_HIER-HID = HID.<br>
          VFL_HIER-IOBJ = '0HIER_NODE'.<br>
          VFL_HIER-NNAME = VFL_SETHIER-GROUPNAME<br>.
          VFL_HIER-DESC = VFL_SETHIER-DESCRIPT.<br>
          VFL_HIER-VALC = VFL_SETHIER-VALCOUNT.<br>
    <br>
          READ TABLE VIT_MKHIER INTO VFL_MKHIER<br>
            WITH KEY HID = VFL_SETHIER-HIERLEVEL BINARY SEARCH.<br>
    <br>
          IF SY-SUBRC = 0.<br>
    <br>
            VFL_MKHIER-PID = PID.<br>
            MODIFY TABLE VIT_MKHIER FROM VFL_MKHIER.<br>
    <br>
          ELSE.<br>
    <br>
            VFL_MKHIER-HID = HID.<br>
            VFL_MKHIER-PID = PID.<br>
            APPEND VFL_MKHIER TO VIT_MKHIER.<br>
    <br>
          ENDIF.<br>
    <br>
          NID = NID + 1.<br>
    <br>
          APPEND VFL_HIER TO VIT_HIER.<br>
    <br>
          CLEAR: VFL_HIER, VFL_MKHIER.<br>
    <br>
        ELSE.<br>
    <br>
          HID = VFL_SETHIER-HIERLEVEL.<br>
    <br>
          READ TABLE VIT_MKHIER INTO VFL_MKHIER<br>
            WITH KEY HID = VFL_SETHIER-HIERLEVEL BINARY SEARCH.<br>
    <br>
          PID = VFL_MKHIER-PID.<br>
    <br>
          VFL_HIER-NID = NID.<br>
          VFL_HIER-PID = PID.<br>
          VFL_HIER-HID = HID.<br>
          VFL_HIER-IOBJ = '0HIER_NODE'.<br>
          VFL_HIER-NNAME = VFL_SETHIER-GROUPNAME.<br>
          VFL_HIER-DESC = VFL_SETHIER-DESCRIPT.<br>
          VFL_HIER-VALC = VFL_SETHIER-VALCOUNT.<br>
    <br>
          NID = NID + 1.<br>
    <br>
          APPEND VFL_HIER TO VIT_HIER.<br>
    <br>
          CLEAR: VFL_HIER.<br>
    <br>
        ENDIF.<br>
    <br>
      ENDIF.<br>
    <br>
    ENDLOOP.<br>
    <br>
    LOOP AT VIT_HIER INTO VFL_HIER WHERE VALC NE 0.<br>
    <br>
      LOOP AT VIT_SETLEAF1 INTO VFL_SETLEAF WHERE SETNAME EQ VFL_HIER-NNAME.<br>
    <br>
        VFL_HIER1-PID = VFL_HIER-NID.<br>
        VFL_HIER1-HID = VFL_HIER-HID.<br>
        VFL_HIER1-IOBJ = IOBJ.<br>
        VFL_HIER1-DESC = VFL_SETLEAF-LTEXT.<br>
    <br>
        SELECT KOKRS KSTAR DATBI INTO TABLE VIT_CSKB<br>
               FROM CSKB<br>
               WHERE KSTAR EQ VFL_SETLEAF-VALFROM.<br>
    <br>
        LOOP AT VIT_CSKB INTO VFL_CSKB WHERE DATBI GE SY-DATUM.<br>
    <br>
          VFL_HIER1-NID = NID.<br>
    <br>
          CONCATENATE VFL_CSKB-KOKRS VFL_SETLEAF-VALFROM INTO CSTEL.<br>
    <br>
          VFL_HIER1-NNAME = CSTEL.<br>
          NID = NID + 1.<br>
    <br>
          APPEND VFL_HIER1 TO VIT_HIER.<br>
    <br>
          CLEAR: VFL_CSKB.<br>
    <br>
        ENDLOOP.<br>
    <br>
        CLEAR: VFL_SETLEAF, VFL_HIER1.<br>
    <br>
      ENDLOOP.<br>
    <br>
      CLEAR VIT_SETLEAF[].<br>
    <br>
    ENDLOOP.<br>
    <br>
    <br>
    LOOP AT VIT_HIER INTO VFL_HIER.<br>
    <br>
      NHID = VFL_HIER-HID.<br>
      NVALC = VFL_HIER-VALC.<br>
    <br>
      CONCATENATE VFL_HIER-NID ';' VFL_HIER-IOBJ ';' '"' VFL_HIER-NNAME '"'<br>
                  ';' ';' VFL_HIER-PID ';' ';' ';' 'N' ';'<br>
                  '"' VFL_HIER-DESC '"' ';' '"' VFL_HIER-DESC '"' ';'<br>
                  '"' VFL_HIER-DESC '"' INTO OUT.<br>
    <br>
      VFL_FINAL-OUT = OUT.<br>
      APPEND VFL_FINAL TO VIT_FINAL.<br>
      CLEAR VFL_FINAL.<br>
    <br>
    ENDLOOP.<br>
    <br>
    CALL FUNCTION 'GUI_DOWNLOAD'<br>
    EXPORTING<br>
      filename = 'hierarchy.csv'<br>
    TABLES<br>
      data_tab = VIT_FINAL<br>
    EXCEPTIONS<br>
      OTHERS   = 1.<br>
    <br>
    Edited by: Bjorn Houben on Dec 28, 2009 2:07 PM
    Edited by: Bjorn Houben on Dec 28, 2009 2:16 PM
    Edited by: Bjorn Houben on Dec 28, 2009 2:16 PM

  • Cost Center Assessment - cost element type 42

    Hi dear All,
    I got issues running KSU5 to allocate planned costs under cost element type 42. we were expecting that all planned costs (primary and secondary(cost element type 42)) could be allocated by credit cost center (actual). only primary costs are being allocated.
    Scenario:
    cost center planning (kp06) 1000 currencies in primary cost element in cost center A
    running planning assessment - KSUB: cycle uses assessment cost element (type 42): sender cost center A, receiver cost center B (all planned values). assessment cyles posts 1000 currencies from CC A to cost center B
    planning in cost center B (primary cost elements through kp06, 500 currencies) total planning 1000 from previous assessment  with CE type 42, and 500 from cc planning in a primari CE.
    by the period end closing, tcode KSU5 (allocation actual) is running. new cycle created, based on planned values (origini not actual, but planned amounts).
    we were expecting to allocate 1500 currencies from cost center B to cost center C (using 100% and through assessment cost element)).
    result: credit actual cost center B = 500 currencies debit actual cost center C = 500 currencies.
    1000 currencies pending on cost center B (planned).
    do you know why SAP is not allocating the 1000? even if those 1000 were planned in cost center B by assessement, a new allocation cycle should be able to post them or not?
    thank you for your outcome.

    Hi dear Ajay, thank you for your answer.
    first, I understand the difference between KSUB and KSU5, in the defined scenario, we have both. planned values, become actual with the MEC activities. business definition.
    regarding the cycle, I have setup assessment cost element so we can get all planned lines posted as 1.
    On sender tab I have only the cost center. no cost element defined.
    receiver its cost center.
    furthermore, i've not setup allocation structure, so all cost elements should be allow, there is no restriction on this.
    the only difference is: planned costs which their origin is already an assessment are not being assessed again.
    I can show you the print screens with cycles setup if it helps
    best regards
    MF

  • KB15N_No adjustment account found for cost element Message no. K5112

    When I am trying to post Manual Cost Allocation through TC KB15N with the following input data I am getting the following error message and the same could not be posted.  Kindly advise.
    Screen Variant used: 01 SAP Cost Center
    Input Type: List Entry
    Item No.1
    Sender Cost Center : 3402100942
    Cost Element: 6200001
    Amount : 62,201.56
    Receiving Cost Center: 3405100945
    First four digits represent profit center code.  If first four digits are equal the above error is not coming. But posting is needed with different profit centers.
    No adjustment account found for cost element
    Message no. K5112
    Diagnosis
    Neither standard account determination nor the enhanced function found an adjustment account for the reconciliation posting.
    System Response
    No adjustment account could be determined for cost element  in company code SCCL.
    Procedure
    Maintain the standard or enhanced account determination for transaction KAMV. Information on maintenance can be found in the program documentation.
    Execute

    Hi all,
    I face the issue like this but with transaction KOAP - Plan settlement
    But, the problem is that, I do not active reconciliation ledger, so I do not maintain any thing relate to reconciation ledger or adjustment posting? I can do transaction "actual settlement"  without error
    So, How this error come to me?
    And how I can fix it?
    Thanks all!

  • How to define G/L Account while making Priamary cost Element (KA01)

    Hi Expert,
    When I am going to define the Priamary cost element (eg PCE) which is define by newly then system gives error that "Define
    G/L account for PCE First and if I select from table then its show that this previousely define with in From TO Date
       So I stuck up to mentain the Priamary cost element , please tell me how to do ?
    Regards
    Sandeep

    You can create a GL account from transaction FS00.
    Put the name of the GL account & company code & click create or you can also create from template. from the same screen you can create primary cost element by clicking on edit cost element.
    Or you can go to transaction KA01 & create primary cost element.

Maybe you are looking for

  • Microsoft Service Pack 2 - not all versions are equal; how to update to the latest one "safe

    I posted this under another topic where it was relevant, but thought the instructions I got from Microsoft were useful (as was my experience in using them as I sent back a reply to them with the problems I encountered [none of which were particularly

  • ITunes 8 will not launch

    I've installed iTunes 8 but whatever I try it just won't launch, can anyone help??

  • Hyperion Smart View Error in Word and Power point

    Hi, When I retrieve (Import) a report (FR) into MSpowerpoint or MS word I am getting an error message "The specified file wasn't found". Has any one faced this error before? Any thoughts please !!!! Help Appreciated. Thanks,

  • Drag and drop problem using  NW04 SPS 19

    Hi, we have a problem using drag and drop between two input fields. If i use this functionality i get after some minutes a message "A script on this page is causing IE to run slowly. If it continues to run, your computer may become unresponsive. Do y

  • How to create Creation Profile

    Hello all Gurus, Can someone please tell me how to create "Creation Profile" and use them in MM scheduling agreement? I have an issue, where the user wants 2 separate creation profiles to be created so that the demands should be sent to suppliers on