Cost element groups and conrtolling area.
Dear Experts,
Is there any possible way I can find out which all cost element groups are coming under a controlling area?
In KAH3 when i press F4 i dont have the selection parameter as controlling area.
If not stadard transaction any table?
regards
Paul
Hello,
When you are working under a controlling area, your controlling area will be set. Otherwise, set your controlling area in OKKS. You cannot work parallely under two controlling areas without setting controlling area.
Obviously, you will see the cost element groups created under that controlling area. When you press F4 on cost element groups, you must be getting controlling area and must have been greyed out.
Regards,
Ravi
Similar Messages
-
Repot cost center groups,cost element groups and quantities
Hi
Is there any report displays only costcenter groups, costelement groups and quantities. No line items are required this is for management purpose.
thanks in advance
prasadHi Sunitha,
Thanks for your immd. reply
But my requirement is not that
I need cost center groups, cost element groups and quantities in the same report
regards
hariprasad reddy
accenture - 9963411136 -
Cost element group authorization check on controlling area level
Hi!
When maintaining cost element groups (KAH1, KAH2, KAH3) is it possible to run an authorization check on controlling area level?
We have one global chart of account but several controlling areas. When we create a cost element group it is created at chart of account level for all the controlling areas. When someone changes a cost element group it changes in all controlling areas. I cannot restrict user's authorization to be able to change cost element groups only in their own controlling area.
Is it possible somehow?
Thanks for your help.Hi,
Like how the global chart of accounts is at the client level, the cost element groups are also independent of the controlling areas. Infact, the cost element groups are created at the global COA level.
In such a case, I don't think it is possible to restrict the authorizations to amend the cost element groups at controlling area level.
Thanks and Regards,
Bhuvaneswari.S -
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. -
Table name for Cost Center Group/Profit Center Group/Cost Element Group
Hi,
Kindly let me know the table names for cost center group, cost element group and profit center groups.
Thanks.
SureshHi,
The tables for storing groups in SAP are SETNODE and SETLEAF. The codes in the previous message posted by my fellow SAP consultant are transactions and not tables.
The classes are:
Cost centres - 0101
Cost elements - 0102
Profit centres - 0106
Regards,
Eli -
Hi,
We use the tcode KAH1 to create Cost element groups. Here we can organize the cost elements (G\L) as a hierarchy.
My task is to get the transport table(s) that contains this hierarchy.
Can somebody help me with that?
Best regards,
Mohamad.Hi,
You can all teh tables given below acc to ur req:
COKA CO Object- Control Data for Cost Elements
COSP CO Object- Cost Totals for External Postings
COSS CO Object- Cost Totals for Internal Postings
CRCO Assignment of Work Center to Cost Center
CSKA Cost Elements (Data Dependent on Chart of Accounts)
CSKB** Cost Elements (Data Dependent on Controlling Area)
CSLA Activity master.
To fetch the cost element from a given cost element group.You can use code given below:
Cost Element group can be viewed from field SETCLASS of table SETLEAF.
To Fetch the relevant cost element from a cost element
group, we can use FM: 'K_HIERARCHY_TABLE_READ'.
Sample code for this purpose:
Call Function module to fetch values corresponding to a
Cost Element group
CALL FUNCTION 'K_HIERARCHY_TABLES_READ'
EXPORTING
e_class = p_c_class
e_setid = p_v_setid
e_kokrs = p_kokrs
TABLES
t_nodes = p_it_cenodes
t_values = p_it_cevalues
CHANGING
c_info = v_info
c_overwrite = v_overwrite
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
OTHERS = 12.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
In this FM:
Export Parameters: p_c_class = (SETLEAF-SETCLASS) i.e '0102' for cost element group.
p_v_setid= The first four characters is the setclass ('0102'), the next four characters is the controlling area,the remaining characters is the cost element group.
p_kokrs = Controlling area.
Tables: p_it_cenodes = TYPE STANDARD TABLE OF ty_seth_node_line.
p_it_cevalues = TYPE STANDARD TABLE OF ty_seth_val_line.
Get the cost element in table p_it_cevalues
Please reward points if you find it helpful. -
Cost Element and Cost element group
Could You tell me how to chech which Cost Element Group given Cost Element belongs to? Greetings. P.
Hello
With Transaction code KAH3 you can able to view the cost element group.
give your controlling area and cost element group you can easily able to find out the cost element included in concern group.
If the above answer resove your query kindly provide the marks
thanks and regards
Mahesh -
How to created an cost element group structure from P&L FSV
Hi All,
My client has changed his financial statement version and I have to change the cost element group structure according to the new profit and lost structure of this new FSV.
Do you know any transaction to do this automatically?. For example the creation of the sets' structure can be done by FSE5, is there any similar for cost element group structure?.
Many thanks in advance!Hi NIketa
Whats the detailed error message? Can you paste that here?
Also, check the following, which may resolve your issue
1. If you are settling to the Top most WBS, i.e. to the project itself, do not do that... Settle it to a lower level WBS, atleast one level lower than the project...
2. Check if the status of that WBS is REL (released) and
3. The flag for "acct asst elem." is checked in the WBS element
Regards
Ajay M -
Cost Element Group & Cost Element
Hi Friends,
Can you please tell me how cost element groups are linked with individual cost elements(Primary and Secondary).
Is there any standard cost element groups are there. Please let me know.
PriyaHi,
Cost element groups, like any other group for master data, is used for reporting purpose. By creating a group you unite certain objects and make it possible to present it as one entity in the reporting or use it in allocation processes. There is no such a thing as standard group, as the user chooses for himself how he wants uniting the elements.
Regards,
Eli -
How can I delete a cost element group
Hy,
I have a new system and the cost elements groups came with the questionary. Now I want to delete them, but I have an error like : "You want to delete object (Group element cost BON_1000). This is not possible because the object is being used in another object (group, report ... )." It is possible somehow to delete cost element group?
I don't have any other dates in the system. Thank you!Hi Biro Dorel
The cost element group can be used by either back end configuration like cost component structure or front end transactions like allocation cycles.
Please make sure none of any front end or back end functions are using the cost element group.
If you do sure your system is new and no transactions use it. Please check whether the group is used by another cost element group. Or if you do not know where it is used, try to use the "where used list" to find the object using the group by click the buttom on the tool bar in the cost element group maintenance window (T_KAH3). -
For P&L account, to see it in CO reports, user have to use a Cost element group or Account group.
Could you please tell us how we can see in wich Account groups is included an account ?
Edited by: Pathi S on Jun 13, 2008 12:57 PMHi,
That is purely on the requirement..
Ur account groups are for your FI....
When you are creating Cost Element groups, you group them as how you want your report to look like.
However, logically you would build your group over and above the account groups as that makes more of a sense..
Hope i am clear..
Cheers
Raghu...... -
Hi All,
We have cost element groups are created in sandbox and would like to copy same to other clients.what is the best possible way to copy?
any help is appreciated.
Thanks,
RauHave you tried import/export from the menu (Extras)?
Check the Indicator: Import/export from/to presentation server and Import the CE group from the Sandbox System. Later export the same is which ever client you need the CE group.
Regards
Sreenivas -
IDOC to JDBC scenario in case of Cost Element Group IDOC.
This is an IDOC to JDBC scenario.
The Cost Element Group IDOC is having different segments. The main segment E1COGH (1...unbound) is consisting of different subsegment like E1OGS (0...unbound) & E1COGV (0...unbound). The main segment (E1COGH) along with subsegments E1OGS & E1COGV) is occuring more that 1 times. I have to insert data into the table, which we can do in single rows (no hierarchy is possible in tables). I have used "use one as many" in message mapping. Now if E1OGS or E1COGV is repeating in a single E1COGH segment then we dont get any error. But if I duplicate the main segment then I am getting runtime exception.
Please suggest about how to map in this case.In my scenario:
E1COGH
|
-> E1COGS
E1COGV
where E1CGH -> Main segment
E1COGS & E1COGV -> sub segment
E1COGH -> 1..unbound
E1COGS -> 1..unbound
E1COGV -> 1..unbound
At the target side I have created two Statement Structure (ie.Statement & Statement_1) . One for E1COGS (ie. Statement) & the other for E1COGV (ie. Statement_1).
Case 1 -> If E1COGS is present in the main segment E1COGH then it is mapped AS IS.
Case 2 -> If E1COGS is not present in the main segment E1COGH then it is mapped as blank.
This will be mapped with Statement & in the absence of E1COGS this Statement structure is SUPPRESSED.
Similarly,
Case 1 -> If E1COGV is present in the main segment E1COGH then it is mapped AS IS.
Case 2 -> If E1COGV is not present in the main segment E1COGH then it is mapped as blank.
This will be mapped with Statement_1 & in the absence of E1COGV this Statement_1 structure is SUPPRESSED.
All the elements of the segment E1COGH, E1COGHT & E1COGHR are replicated in all the rows for X (no. of occurance of E1COGS) + Y (no. of occurance of E1COGV).
While testing in Message Mapping, I am able to get the output as for multiple occurence of E1COGS & E1COGV in a single E1COGH.
But if I increse the occurence of E1COGH the it is giving the following error :
Runtime exception during processing target field mapping /ns0:MT_Cost_Element_Group_Response/Statement/DBtablename/access/GROUPNAME. The message is: Exception:[com.sap.aii.mappingtool.tf3.IllegalInstanceException: Too few values in first queue in function useOneAsMany. It must have the same number of contexts as second queue.] in class com.sap.aii.mappingtool.flib3.NodeFunctions method useOneAsMany[com.sap.aii.mappingtool.flib3.CollapseContexts@51197231, , ]
Please suggest how to map the occurence of E1COGH simultaneously with the occurence of E1COGS & E1COGV. -
How do I migrate Cost Element Groups in a batch ?
I want to migrate Cost Element Groups from 4.7 to ECC6. We've been exporting/importing them individually, but is there a faster way to grab multiple groups and move them to the new environment ?
One thing of note is that the Chart of Accounts is changing between 4.7 and ECC6 and named differently.
Edited by: Joe Malloy on Feb 19, 2008 9:35 PMHi ,
You can go on createing the
Controlling -Cost Element AccountingCost Elements--
Automatic Creation of Primary and Secondary Cost Elements--Make Default Settings
Create Batch Input Session
Execute Batch Input Session
BY do this activite u can do the mass process of creating the cost elements.
Hope this is clear know assign points
With Regards
Krishna Singareddy -
Hi all,
I have following scenario.
I have account number and i want to find out it's cost element group.
In t-code KAH3 when i enter cost element group i get all the account number in that group.
But the problem is that i have account number and i want to find out in which cost element group this
account number belongs.
Is there is any fuction module from which i can get cost element group from account number or from which table i can fetch cost element group depending upon the account number.
Thanks in advance.
sachinHi Sachin ,
I dont think there is any way to see cost center group from cost center because we never assign any cost center to a particular group in the masters.
If you want to see the cost center groups and cost center hierarchy the go to tcode-OKEON
Regards
Deepa
Maybe you are looking for
-
HT1549 Shared files do not show up on network
Macmini running on OS X 10.6.8 on a trendnet router connected to windows 7 pc. Mac will not show up on network after going over the steps to set up file shareing.
-
My machine was hit with the XP Antispyware virus today. I cleaned it up and everything is working well except Firefox.
-
One little endian - Windows to AIX possible?
Hello all, I'm trying to find out if it is possible to use Oracle 11g RMAN to copy/convert an existing database on a Windows 64bit platform to AIX 6.1 platform. Per the10g document below, it seems the restriction is based on the endian order (32 bit,
-
HI, Lately I haven't been able to search in the forums. I've tried searching on words I know are listed and I still get zero results. What's going on? Thanks, Laura
-
Problem with 1009MISC after applying Note 1535966.
I have applied OSS Note 1535966 which was released on 01/27/2011. I also applied the corrections from Note 1305371 as well. I have submitted a Test File to the IRS and have recieved the following errors. I do not see any other notes that apply to