Cost center group select option

here is my code:
declaration of select option.
SELECT-OPTIONS s_khinr FOR csks_itab_group-khinr no intervals.
at selection-screen on value-request for s_khinr-low.
at selection-screen on value-request for s_khinr-high.
Initialization
initialization.
  perform build_group_option.
  delete adjacent duplicates from csks_itab_group comparing all fields.
at initialization fir build my internal table called csks_itab_group, which gets the names for the coster center groups then I delect any duplicates.
still does work, any ideas.
thanks

This works.......
REPORT ZRICH_0001 .
tables: csks.
data: begin of itab occurs 0,
      khinr type csks-khinr,
      end of itab.
SELECT-OPTIONS s_khinr FOR csks-khinr no intervals.
initialization.
perform build_group_option.
sort itab ascending by khinr.
delete adjacent duplicates from itab comparing all fields.
at selection-screen on value-request for s_khinr-low.
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'KHINR'
            dynprofield = 'S_KHINR'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = itab.
at selection-screen on value-request for s_khinr-high.
start-of-selection.
form build_group_option.
*** MAKE SURE YOU MODIFY THIS STATEMENT
select khinr from csks into table itab
         where kokrs eq 'NSCO'.
endform.
Regards,
Rich Heilman

Similar Messages

  • Need a drop down list for cost center group

    Hello,
    I need to add the cost center group selection option to my program. I have added it to the selection options of my program and I would like to have a drop down list on this field. I have looked at the t-code KS13 and I am thinking that this is  what I need. I am not sure if this is a search help or something else. if this is a search help, is it possible to use the same search help in my program? can some please let me know how I would do this in my program?   possibly a code example?
    thanks in advance for the help.

    PARAMETER:     p_sostat(15) TYPE c AS LISTBOX VISIBLE LENGTH 16,
      name = 'p_sostat'.
      CLEAR sostatlist[].
      value-text = text-101. "'Open'(101).
      value-key = '1'.
      APPEND value TO sostatlist.
      value-text = text-102. "'On Hold'(102).
      value-key = '2'.
      APPEND value TO sostatlist.
      value-text = text-103. "'Drop/Pull'(103).
      value-key = '3'.
      APPEND value TO sostatlist.
      value-text = text-104. "'Pending'(104).
      value-key = '4'.
      APPEND value TO sostatlist.
      value-text = text-105. "'Floor'(105).
      value-key = '5'.
      APPEND value TO sostatlist.
      value-text = text-106. "'Kitted'(106).
      value-key = '6'.
      APPEND value TO sostatlist.
      value-text = text-107. "'Packed'(107).
      value-key = '7'.
      APPEND value TO sostatlist.
      value-text = text-108. "'PGI'(108).
      value-key = '8'.
      APPEND value TO sostatlist.
      value-text = text-109. "'EDI Error'(109).
      value-key = '9'.
      APPEND value TO sostatlist.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = name
          values = sostatlist.

  • UPLOADING COST CENTER GROUPS

    Hi All.,
    In my project, where my client have lots of cost center groups. To assign them to the standard hierarchy it is taking too much time through Manual Uploading/assignment
    So,  is there any other option for it. (Automatic Procedure)
    Please, guide me.
    Thanks to All.
    Raja

    Hi,
    I don't think it is possible to attach Cost Center groups to Standard Hierarchy using BDC Program. When we attach the Cost Center Groups we have to select it individually. Probably, you can try by developing a BDC program.
    Thanks
    Murali.

  • Get Name for CO Cost Center Group and BGD Processing

    Hi,
    I use these function modules to get the cost center group nodes in the CO hierarchy.
    If I pass it a value that is in two controlling areas
    if prompts another screen to pick which controlling area we want to look in.  My problem is when I try to run this report in the background it gets hung up on this screen waiting for input. any ideas on how to get around this.
    here is the reference code.
    thanks
    Please note that the following logic is parts of SAP example report
    RGSEX001.
    Get the internal Set-ID from the external name of the set
    Selection of sets can be restricted to a specific set class or
    to sets matching a specific table field.
    See documentation of function module G_SET_GET_ID_FROM_NAME
    If the set class, subclass and setname is known, function module
    G_SET_ENCRYPT_SETID should be used alternatively (see RGSEX020)
        CALL FUNCTION 'G_SET_GET_ID_FROM_NAME'
             EXPORTING
                  shortname = w_set
                  old_setid = w_setid
             IMPORTING
                  new_setid = w_setid.
    Read the complete hierarchy (set and all subsets)
        CALL FUNCTION 'G_SET_TREE_IMPORT'
             EXPORTING
                  setid              = w_setid  "Set-ID, not the Setname!!!
                  no_table_buffering = ' '
             TABLES
                  set_hierarchy      = it_hierarchy
                  set_values         = it_values.

    Hi!
    For reading cost center hierarchy you can try K_HIERARCHY_TABLES_READ.
    It returns near the same info as one you've mentioned, works well for single controlling area and I hope in case of ambiguity it will raise one of exceptions provided. Give it try.
    Regards,
    Maxim.

  • Change in the cost center group

    Hi,
    Can we change the cost center from one cost center group to another group, when there are some postings in the cost center? If yes, how to go about it?
    help me out

    Yes you can!
    If you are planning to change within the standard hierarchy, Goto OKEON, drag, drop and save.
    Or you can go to KS02 for the cost center, in the basic data, you can give the new cost center group under the hierarchy area.
    If it is just non hierarchy cost center group, then go to KSH2 enter the old group, select the cost center, delete save, then go to the new cost center group and include the cost center.
    It does not matter whether it has been posted or not. It is just a grouping. But caution must be exercised. and there shall be a valid justification for doing so. Because the cost center may be used in various cycles. So better to check where and all the cost center is being used and then do the change.

  • Cost center and cost center group

    hi,
    how can i create cost center and cost center group?

    hi,
    after u enter in to sap easy access
    goto Extras menu-settings->select display technical names
    you can see the T.codes for each transaction
    for example:create cost center
    accounting>controling->cost center>master data>cost center>individual processing-->KS01-create

  • Function module for custom report for cost center group

    Hello all,
    I wonder, if there is any SAP function module for following query:
    We have got a custom program, which evaluates cost centers. We would like to evaluate a cost center group, like it is available within the report painter - the output screen is splitted into two parts, on the left part there is the cost centre group hierarchy and on the right side, there are the values for the node, which is selected within the hierarchy.
    Is there any standard function module od do we have to program it ourself?
    Thanks in advance

    Hi Peter,
    You have a BAPI which gives you the details of cost centre group, if this is what you are looking for:
    BAPI_COSTCENTERGROUP_GETLIST
    Regards,
    Eli

  • Cost center group report

    Can I run cost center report referencing two cost center groups and two cost element groups. I know we can do multiple selection for cost centers and cost elements but that will not help my cause.
    Lets say we have cost center groups A & B and cost element group 1& 2. We would like a report that shows us Sum of A1 + Sum of B2. This explains why we cant simply use multiple selction for cost center and cost element group. It will also give you an idea of what kind of output we are looking for.
    Any help in this regard will be highly appreciated and points duely assigned.
    Nik

    Hello nik,
            what is the cost center hirearchy you are using. If you are using alternative hierarchy then you can do this by selecting higher level of the A&B.
    regards,
    sankar

  • Cant change COST CENTER GROUPS and/or Standard Hierarchy

    Hello all,
    im facing some problems during change of COST CENTER GROUPS and/or Standard hierarchy.
    When im trying to select im getting following error Value maintenance not allowed ->Standard Hierarchy
    When i do get the selection of the cost center that i want to remove from the hierarchy im getting this error Function is not supported in the standard hierarchy.
    I dont know anymore what to do.
    ive searched in forum and google but still didnt find enything usefull.
    Regards
    Laurynas Prikockis

    Hello,
    There is no word called removal in SAP. It would have been properly pronounced if say "Delete".
    In case of delete, I do accept, there should not be any planned or actual line items during the fiscal year. If there are any actual or planned lines items you cannot delete the cost center during that period.
    However, you can still delete the cost center in the next fiscal year if there are no actual or planned line items.
    Hope this makes clear.
    Regards,
    Ravi

  • Displaying only cost center groups

    Hi BW Gurus!
    There's a standard cost center group and cost center hierarchy in the source system that I was able to extract. My cost center infoobject (0COSTCENTER) had that hierarchy data. My question is, in the instance that I want to display only the cost center groups with its corresponding summation results, how will I able to go about it without having to display the whole hierarchy? Is that possible?
    Thanks in advance,
    Maan

    Hi Arun!
    Yes, the hierarchy would be cost center - cost center group.
    Thanks for the suggestions..
    1) The first option seems ideal with a structured hierarchy. The hierarchy I'm dealing with seems very complicated. The cost center group that I need to report on does not necessarily reside on level one of the hierarchy.
    2) It's quite embarrassing to ask but, I've really looked at the standard infoobjects and I haven't seen any that handles cost center group. Any ideas? Or, did you mean that I should create my own?
    Thank you so much again!
    Maan

  • Change a node on a Cost Center Group

    Dear experts,
    Is there any way to change a node on a cost center group (KSH1) ? i also would like to change the description!
    Any tips?
    Thank you in advance..
    leandro.

    Click on the node and Click on the Wand Buttion  (Select:Shortcut F9)
    and there you can delete and change the place of the group. Dont think you can change text. For that you may have to create the node again.
    Thanks
    Naveen

  • Bapi to get Cost center group

    Hi,
       Is there any standard bapi that takes cost center as input and displays its corresponding cost center group.
    Thanks,
    Divya.

    hii,
                     just have a luk.
    BAPI_COSTCENTER_CREATEMULTIPLE Create One or More Cost Centers
    BAPI_COSTCENTER_GETDETAIL Detailed Information About Cost Center For Key Date
    BAPI_COSTCENTER_GETDETAIL1 Detail Information for Cost Center on Key Date (1)
    BAPI_COSTCENTER_GETLIST List of Cost Centers Using Selection Criteria
    BAPI_COSTCENTER_GETLIST1 List of Cost Centers for Selection Criteria (1)
    BAPI_CTR_GETACTALLOCATIONTYPES Checks Which IST-ILV Types are Possible According to Activity Type Categ.
    BAPI_CTR_GETACTIVITYPRICES Read prices for cost center/activity type according to selection
    BAPI_CTR_GETACTIVITYQUANTITIES Rad plan activity/capacity/scheduled activity for cost center/acty type
    BAPI_CTR_GETACTIVITYTYPES List of cost centers / activity types with control information
    regards,
    Shweta

  • Cost Center Group and Profit center Group

    Hi All,
    The Client is requested to have Cost Center Group in the CO reports. I have trying to analyse how to get Cost center group in the report or Info Provider.
    When i went to T-code KS03 in ECC ( Display Cost Center), i get the Hierarchy Area field called KHINR, which shows the Cost center grp. Upon discussing with Functional person, he has told that this Field lies in Table CSKS (Cost Center Master).
    Now i am thinking to enhance the Cost Center Attribute Dsrc. with this Field KHINR.
    I just want some suggestions or advice on how to bring Cost center grp and Profit center grp
    Thanks and Regards
    Edited by: Raihaan Khan on Dec 12, 2008 3:35 PM

    Hello Simon, Thanks again for all your FICO resolutions.
    Yes i truly agree that Cost Center Grp is CostCenter Hierarchy,, but i dont understand, y the Client has told that he needs the field KHINR in the Cost Center Report too.
    Actually he wants Cost Center Group wise report and NOT Cost center wise report.
    I have thght of extracting the Complete Std Hierarchy to 0COSTCENTER and then in the report , i can give a Cost Center Hierarchy Variable(probably a selection screen), such that the User can select the Nodes he want and then drill down the CostCenter Groups to see his respective Cost center accounting.
    Please opinionate on this
    Thanks

  • Mass change of profit/cost center groups

    we have a requirement to mass change the descriptions for profit/cost center groups. We tried out folowing options but they are not working.
    1. BDC recording for KCH2/KSH2.KCH5N - i think these are not supported in BDC.
    2. LSMW using available BAPI... it can be used only if the group is not assigned in the hierarchy.
    Please let me know if there is any other way of handling this.

    Have you seen note 314528 ?
    Rob

  • Authorization on cost center group

    Dear all,
    I have to set up authorizations for reports (e. g. S_ALR_87013611) based on the cost center group (means the user should only see data of cost centers which belong to the cost center group he is authorized for).
    I think this should be possible via the authorization object K_CCA (field RESPAREA) but it just worked for entries in 'Cost Center' and 'Authoriz.Hier.' but not for 'Cost Center Group' (that's what I would need).
    Has anyone an idea how to solve this?
    We are running ECC 6.0.
    Thanks in advance!
    Regards
    Harald

    Hi,
    The relevant authorisation objects are as follows:
    K_CSKS_SET:  This will allow display/change/creation of groups based on activity selected.
    K_CCA:  This is a general authorisation object (relevant activites should be 0003, 3027, 3029).  You are  obviously trying to run a report.  For running a report the relevant authorisation object is K_REPO_CCA, which sadly does not have cost center group as a selection, only cost center values and ranges.
    However, K_CCA will work, if the cost center group that you have entered in the authorisation is also present in the standard hierarchy.  Can you test this, enter a cost center group from the standard hierarchy and not just any group that you have created seperately.  The authorisation should get restricted to that group.
    Cheers.

Maybe you are looking for

  • How to populate data in TargetCube from SourceCube for a particular product/currency dimension selected in form1.

    Hi, Need help regarding Business rule scenario "How to populate data in "Target Form (plantype2)" from "Source Form(plantype1)" for a particular product/currency dimension combination selected in form1" Scenario 1) :  I have data for Product(Computer

  • Problem starting Eclipse Mars, "

    I have been running Eclipse Kepler on a very large C/C++ project for a few years. Recently, I have experienced a drastic slow-down in the UI, which I have not been able to resolve. So, I have decided to upgrade to the latest version of Eclipse in ord

  • Custom Attributes, Fields in Folders

    Hi, I have a Folder where I am uploading documents etc. I need to capture additional fields - 'Speaker' etc. when I upload the document. Is there any way of doing this? Thanks.

  • Contract price is zero in the shopping cart  for backend contract

    Hi <b>Our environment</b> SRM5.5   SP07  Classic scenario Backend ECC 5.0 <b>Business process</b> Created a Contract in ECC5.0 for services and Materials (Goods) separately. While crating the shopping cart for services or Goods, contract is picked an

  • File Vault stalled/failed after Yosemite upgrade

    Since upgrade to Yosemite and choosing to use FileVault which has been 10 days now, FileVault keeps saying estimating time remaining.  I have run diskutil cs list multiple times and sometimes it says 80% complete and other times it says failed.  I've