Profit center from profit center Group? Urgent!!!!

Hi Experts,
Could u please tell me the way to get all the profit centers belonging to one profit center group...
its urgent...
poinst will be rewared

Hi
use the Tables SETNODE and SETLEAF  and use repetetive selects for them
or use the fun module 'G_SET_TREE_IMPORT'
see the sample code for the  Fun module
Fetching COst center from CC group is same as fetching Profit center from PC group
use the '0101' for Cost center group and '0106' for profit center group
use c_class1 = 0106 c_class2 = 1000 and fetch Profit center
*&      Form  get_cc_values
Get the Cost Centers from Cost Center Group
form get_cc_values.
Populate the Cost Centers from Cost Center Group
  if s_kostl[] is initial.
    if p_cgrup is initial.
      p_cgrup = c_ndc.
    else.
      p_cgrup = p_cgrup.
    endif.
Concatenating Setnode table setclass,subclass fields and
Cost Center Group
    concatenate c_class1 c_class2 p_cgrup
                   into v_setid.
Calling function module to get SET_HIERARCHY & SET_VALUES
    perform frm_g_set_tree_import tables ccenter_group_tab[]
                                         cost_center_tab[]
                                  using  v_setid.
    loop at cost_center_tab.
      rn_kostl-low = cost_center_tab-from.
      rn_kostl-high = cost_center_tab-to.
      rn_kostl-sign =   c_i.
      if rn_kostl-low = rn_kostl-high.
        rn_kostl-option = c_opt1.
      else.
        rn_kostl-option = c_opt2.
      endif.
      append rn_kostl.
    endloop.
    clear v_setid.
   endif.
  else.
    rn_kostl[] = s_kostl[].
  endif.
endform.              "get_cc_values
*&       FORM  FRM_G_SET_TREE_IMPORT
Subroutine to call the function G_SET_TREE_IMPORT.
form frm_g_set_tree_import
                     tables ccenter_group_tab structure sethier
                            cost_center_tab   structure setvalues
                     using  p_v_setid.
  call function 'G_SET_TREE_IMPORT'
    exporting
  CLIENT                          = SY-MANDT
  FIELDNAME                       = ' '
  LANGU                           = SY-LANGU
  NO_DESCRIPTIONS                 = ' '
  NO_RW_INFO                      = ' '
      setid                           = p_v_setid
  TABNAME                         = ' '
  NO_VARIABLE_REPLACEMENT         = ' '
  ROOT_HEADER_ONLY                = ' '
  NO_TABLE_BUFFERING              = ' '
  MAX_HIER_LEVEL                  = 99
  DATE_FROM                       =
  DATE_TO                         =
IMPORTING
  SET_NOT_TRANSPARENT             =
   tables
     set_hierarchy                   = ccenter_group_tab
     set_values                      = cost_center_tab
EXCEPTIONS
  SET_NOT_FOUND                   = 1
  ILLEGAL_FIELD_REPLACEMENT       = 2
  ILLEGAL_TABLE_REPLACEMENT       = 3
  OTHERS                          = 4
  if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.
endform.                    "frm_g_set_tree_import
<b>Reward points for useful Answers</b>
Regards
Anji
Message was edited by:
        Anji Reddy Vangala

Similar Messages

  • Derivation of Funds Center from cost center for Asset PR/PO in FM

    Hello Experts,
    We configured new FM area and relevant BCS settings. It is working fine except PR or PO for Account assignment category A.
    Issue: system is not able derive funds center from cost center in the asset master. cost center is not updated in EBKN table for Asset PR.
    we have maintained the following;
    1. Funds center is activated in Asset account assignments
    2. Maintained derivation rule with function module: FMDT_READ_MD_ASSET
    3. Derivation rule for cost center to funds center also maintained
    If maintain funds center manually in PR it is working fine and consuming budget also.
    Requirement: How derive funds center from cost center assigned in asset. I have verified all tickets raised in this forum, but nothing has answered my question.
    Request you to provide solution for above issue.
    Thanks in advance for support.
    Regards,
    Chalapathi

    Hi Venkata,
    You have two derivation rules, first related to Asset function module and second one is related to CC and FC combination.
    You need to maintain the function module derivation rule first then you need to maintain the derivation rule related to combination of CC and FC. Because first you need to derive CC from asset master and then you need to derive fund center with reference to this CC.
    Regards,
    Ankit Agarwal

  • HT5012 Any body suffering leggsness while opening the appstore and game center  from mnimaze center...... In ipad mini pls sort me out and tell me ......it will be improve after the update to ios 7.0.3

    Any body suffering leggsness while opening the appstore and game center  from mnimaze center...... In ipad mini pls sort me out and tell me ......it will be improve after the update to ios 7.0.3

    There have been issues with the app store and with game center. And they all seem to be on Apple's end. I'd wait for the next update and see if that helps.

  • How to derive Cost  center from Funds Center

    Hi,
    i post a GR (Return item) and i have a difference of price, i want to assign this difference (assined to a Gl Account)  to a Cost center please how to do that ? i have a Funds Center entered in this GR, can i derive the cost center from this Funds Center ?
    Please Help.
    Regards.

    Hi,
    There is no 'derivation' funcitionality as such available. Thoough, you can build a CO substitution via OKC9 and, based on your fund centre, set the cost centre value.
    Regards,
    Eli

  • Defaulting profit center from sales order while doing delive COGS line item

    HI All
    In my company COGS account is a cost element.when PGI(post goods issue) was posted, sap will automatically create an accounting dcument
    CR:stock account ( profit center from material master data or from sales order)
    DT:Cost of goods sold ( profit center from cost center master data)Can we default profit center from material master data(or from sales order) in the COGS line item
    Thanks in advance

    What is your current Version? Is it ECC6 and New GL implemented? Document split configuration will help you.
    If you are not using ECC6 and New GL, then try T.Code 3KEH and determine profit center based on Valuation area.    OR
    You may look into GL Line item level, Write a Validation Rule to select profit center.
    Hope this will help you.
    Thanks
    VR

  • How to get the member of cost element group from Profit center group

    Hi Guys,
                  I need to get the member of cost element group from Profit center group like in Tcode KCH3 and the same from Account Group like in Tcode KDH3.
    Any Function Module available to get this data.
    Thank U for Ur time.
    Cheers
    Senthil

    I am closing this thread.

  • Profit Center deriviation from Cost Center

    Hi all,
    I have just configured CCA and PCA for one of our new company code.
    I have created 3 cost centers like A, B, C and subsequently same have been created as profit centers too.
    Maintained the profit center in the cost center master data.
    No other derivation rules has been configured so far.
    Now i am trying to do a expense posting with F-02, after entering cost center, system is updating profit center field with a dummy profit center only.
    Even i f a changed the dummy to normal profit center, again system replacing the normal PC with dummy PC.
    I want like...when i enter CC as A, then i need to derive PC also as A for the line item. ( For both expense items as well as revenue items).
    Please suggest.
    Regards,
    Srinu

    Hi Chintan,
    Thanks for your quick response.
    We have already implemented the said SAP note.
    Let me explain my requirement again.
    We have IOA, CCA, PCA active in our system.
    For every expense or revenue line item Internal order is mandatory.
    apart from we have 3 cost centers and 3 profit centers ( 1:1 )
    in cost center master , profit center is assigned.
    1) users are going to decide the cost center, while posting FI direct entries only. So while doing F-02, they will enter CC, and IO manually and at the same time PC should derive from cost center master data ( as it is 1:1 only).
    2) as specified above, we have IOA, CCA, PCA active. In this case IO, CC, PC are to be set as mandatory fields for Field Status Groups G004 and G029?
    Please advise...
    Regards,
    Srinu

  • Fld selection for mvmt type 511/ acct 520302 differes from Profit center Er

    Dear Gurus,
    I got error Fld selection for mvmt type 511/ acct 520302 differes from Profit center (042), since we have scrapped so many times with same GL, why this issue comes.
    if i do in OBC4>>>>Field status group>>>G018>>scrapping>>Additional acct assginment>>Profit center changer from suppress to opt entry. Is this error goes.
    But previous we have done scrapping, no issues, but currently happening
    Please advice me
    Thanks
    RS

    Hi,
    go to FS02 put the account 520302.then go to create/bank/interest tab .
    here double click on field status group. go into the additional accounting data here make profitcenter as optional if it is supress.
    OR
    goto SPRO >MM> Inventory mgm >movt types > select the 511 movement type.go to its field selection .
    here goto addinal accounting data and make profit cesnter as otional if it is supress
    regards,
    sujit

  • Profit center from FI docs

    Hi
    I have some own report with open positions for customers (BSID) but I must read profit centers for it and group by it.
    In BSID isn't correct value because in invoice is on the GL account FI document side (koart = 'S') not for customer (koart = 'D') .
    Is exist some FM or transaction for get this information?
    Edited by: Kosmo on Mar 23, 2011 3:38 PM

    Hi,
    Using  the UI API i guess its not possible... as the profit center is changed as its a combination of the dimensions.
    And regarding the cell issues, i suggest u to open a new thread.
    Vasu Natari.
    Edited by: vasu natari on Dec 8, 2009 8:14 AM
    Edited by: vasu natari on Dec 8, 2009 8:14 AM

  • Copying Profit Center from sales order to Purchase order

    Hi Champs,
    Please let me know if anyone has implemented this scenario of copying profit center from sales order to purchase order and then to goods receipt.
    Thanks
    Pirzada

    Hi,
    Profit center flows from material master to other documents such as PO,SA GRN and MIRO.Please let me know what are you looking for?

  • Profit center and profit center group wise profit and loss account

    Hi
    My name is swetha i have one doubt in ecc 6 version.   i need profit & loss account profit center and profit center group wise is it available in sap ecc 6 . Could u please details such kind of informatiion how we will get the p&l report  in sap profit center group and profit center with transaction code.
    Regards
    Swetha

    Hi
    Please use report
    S_ALR_87009712 - Profit Center List: Plan/Actual
    Here you can enter the Profit Center Group for which you need the P&L .
    Also create a account group which should include all your PL accounts and use the same in the selection of the report.
    There are other reports you can try on the same concept.
    S_ALR_87009712 - Profit Center List: Plan/Actual
    S_ALR_87009726 - Profit Center Group: Plan/Actual/Variance by Origin
    S_ALR_87009734 - Profit Center Group: Plan/Plan/Variance
    S_ALR_87009717 - Profit Center Group: Quarterly Comparison of Actual Data
    Thanks

  • Bring profit center and cost center  hierarchy from R3 to BW in BI 7.0

    Hello,
    I need to get the hierarchy from R/3 to BW. Can someone send me a link or mention steps i need to do to bring profit center and cost center hiearchy from R3 to BW.
    Thanks
    Laura.

    As you would for any other infoobject
    Activate the business content hierarchy datasources on R3 for cost centre and profit centre
    Go into BW - replicate the metadata
    Then just connect via transformations or transfer rules the datasources to yoru infosources or master data objects
    Create an infopackage per hierarchy!!!!! - press the button available hirachies from OLTP - click the one you want on the left - fire it off
    Then repeat new infopackages for all hierachies

  • Reverse Credit Line item from Profit Center.

    Hello Expets
    May any body say how can I reverse a cr line item from profit Center in which extra credit line item came through PO once and through internal order once i.e bcoz in PO there was link once  Profit center as well as Internal order.
    If I do through 9kEO,it can be reversed but where will hit other line item i.e which profit center.
    Plz plz tell me process how can I reverse that extra line item from profit center.
    Thanks

    You will probably find that, in the internal order master data, there is a link to the profit centre. So, if you do not want the costs on the profit centre, you will need to take it off the internal order, remove the link, and then repost. making sure that the PO no longer has the link to the profit centre.
    BTW, posting to a profit centre is not an alternative to posting to an internal order, they usually go together.
    So why do you not want the posting on the profit centre?

  • Vendor invoice - Profit Center not being pulled from cost-center

    Hi Guys,
    Please help me out with this:
    On the vendor expense line item, i am using an account which has a Field status group which is cost center - optional, business area - required and profit center - required. The cost center master has the profit center and business area both populated.
    But when i try just populating the cost center on the expense line item, the profit center is not being populated automatically which it should. Can you please guide me what the problem can be? Is it in the field status group or maybe in the linking of the cost center and profit center.
    Thanks for your help.
    -MS

    Hi,
    Are you talking about vendor line item or expenses line item?
    if you are talking about expense line item,check profit center is activated or not and validity period.
    check profit center assignment in KS03 t.code.
    if your talking about vendor line item,what version of SAP are you using?
    if your using clasical GL and PCA,process T.code 1KEK - Transferring Payables/Receivables .
    Hope this helps you.
    Thanks,
    Rau

  • BAPI To Update Profit Center And Profit center group

    HI All,
    We have requirement scenario in which MDM Will Syndicate the PC and PCG And We have to update the PC and PCG in R3.
    Do we have a Standard BAPI For Profit center and Profit Center Group Update?
    Thanks In Advance!!!!!
    Moderator message : Search for available information, duplicate post locked. Continue with original thread.
    Edited by: Vinod Kumar on Oct 17, 2011 1:59 PM

    Hi
    Try This BAPI...
    BAPI_PROFITCENTER_CHANGE
    Regards
    Ajit

Maybe you are looking for