To get the company code and country grouping attached to a position

Hi everyone,
I have a position and I need to get the company code and the country grouping that this position is attached to. Could you kindly suggest an FM or a class which would fetch the above data keeping in mind the inheritance tree. That is, if the company code is not maintained in HRP1008, then it should look for the same in the Org Unit that this position belongs to and so on..
Any help will be greatly appreciated.
Regards,
Alpana.

Hi
Check the A011 relationship of the position and get the cost center, from cost center you can get the company code and country grouping from Cost Center Master CSKS.
~~~Ganesh Kumar K.

Similar Messages

  • Is it possible to assign different company code employees(country grouping also different) under same Organizational Unit?

    Hi SAP Experts,
    In OM side, Org Unit is linked to company code "GB**" cost center, when we tried to assign new cost center(company code is GB**), system throws error "Company Code changes involves Invalid change of country". I know when we try to assign cost center, belongs to another country company code, this error comes. I checked and found that employees under OU belong to 2 different countries.Few of the employees belong to GB** company code while other employees belong to FI** company code.
    Is it possible to assign different company code employees(different country code) to the same OU? if yes, how can we do that?
    Please reply soon
    BR,
    RG

    Hi RG
    "Is it possible to assign different company code employees(different country code) to the same OU? if yes, how can we do that?"
    Yes it is possible to assign by creating sub org unit and then assigning cost center based on the company code (and country code)
    When the child org unit is created under the Parent org unit - maintain the Account assignment details - cost center details based on the company code of other countries i.e Finland and any positions created it will be under Finland and that way you can choose different countries.
    Example :
    Root Org unit : XYZ / OU
    Sub Org units : GB  / Finland / Italy / NL   etc with respective cost centers
    Sub Org units or positions: GB_HR / GB_Sales etc which will default the cost center from the GB org unit.
    In our current clients we have more than 5 + countries under the Root Org unit and then sub org units as each country which are further divided and have respective cost centers assigned.
    best wishes
    V

  • Where will i get the method code and method name in Bpc

    Dear Experts,
    Thanks for watching this thread at the time of creating Consolidation methods they have
    NEW
    HOLDING
    GLOBAL
    PROPORTIONAL
    EQUITY
    lEAVING (END OF THE YEAR)
    LEAVING(DURING THE YEAR)
    Where will i get the method Code and method name.
    Can you please guide me.
    Regards,
    Srinivasan.

    The consolidation methods types you have listed are the standard ones  provided by BPC for Consolidation Method types.
    You can set the Consolidation Methods in the BPC Administration Console under Business Rules Library -> Consolidation Methods.
    There you can see some defaults - you can remove these and set your own if you prefer.
    You should read the BPC340 Training guide.

  • Releation ship between the Company code and confirmation key in SPRO

    Where to find the releationship between the Company code and Confirmation key in SPRO

    Hi Kishore,
      There is no relationship between those two. If you want to set confirmation key, you can set in purchase order item details tab in confirmations tab. It will be useful to know the shipment of open items from customer like shipment notification, inbound delivery.
    Regards,
    Prasath

  • How to get new company code and controlling area in SRM

    Hi SDN,
    we are on SRM 5.0.
    Our finacial experts want to implement a new company code and controlling area.
    In SRM I can set up a new company code easily in ppoma_bbp and import a new plant from backend for the new company code.
    When testing in EBP I get the error: "company code xyz not available in controlling area zzz"
    So I need to import the new backend controlling area, too. How can I get the second controlling area in SRM?
    Thanx for help,
    matthias

    Hi Muthuraman Govi  and Sanjeev,
    in fact I can see in backend in transaction KS03 (show cost center) there in the F4s, which comp.code + controll area combinations are valid and have indeed cost centers assigned.
    So I have a new valid comp.code and a new valid cont.area.
    The new comp.code belongs to the new contr. area.
    In SRM I set the BUK attribute as described by Sanjeev (I had that already done). Still, if it is like you say, why do I get an error in EBP when trying to buy products from the new plant in the new company code...
    Is there any more config.work necessary in backend or SRM?
    kind regards, matthias

  • STAD - get the 'transaction code' and 'program name'

    Hi, I was wondering if someone knows about a bapi with which I can get only the "transaction code" and "program name".
    I need to get those for a specified user, but I don't want to set on a trace, that's why I'd like to use the transaction STAD.
    If anyone can help, thanks in advance
    Grtz,
    Dragovian

    ok, so I go like this
    TYPE-POOLS sapwl .
    DATA:  all_stats        TYPE sapwl_allstats.
      CALL FUNCTION 'SAPWL_READ_STATISTIC_FILES'
       EXPORTING
         read_client                 = '*'
         read_time                   = '200000'
         read_start_date             = sy-datum
         read_start_time             = '000000'
         read_username               = sy-uname
         read_workprocess            = 'FFFF'
         wait_factor                 = 150
        CHANGING
          all_stats                   = all_stats
    how'd I get "start-time" "report-name" "date" "username"?

  • Getting the company code popup

    hi,
    when i work with FB60 transaction i get the popup for company code
    if i to work with the same transaction again then the popup for company code doesnot come.
    i am to get that popup when i enter the transaction so when i asked my colleague for help he gave a program which removes any company codes in the buffer
    in which the code is like this
    TYPES: BEGIN OF T_TFBUF,
            USNAM TYPE TFBUF-USNAM,
            APPLK LIKE TFBUF-APPLK,
            LFDNR LIKE TFBUF-LFDNR,
           END OF T_TFBUF.
    DATA: WA_TFBUF TYPE T_TFBUF.
    SELECT SINGLE USNAM APPLK LFDNR INTO WA_TFBUF FROM TFBUF WHERE USNAM =
    SY-UNAME.
    IF SY-SUBRC EQ 0.
      DELETE FROM TFBUF WHERE USNAM = SY-UNAME.
    ELSE.
    WRITE: 'NO BUFFER AREA CLEARED'.
    ENDIF.
    even then i am not getting the popup .
    if you have a better program than this please provide me.
    thanks in advance.
    sultan.s

    Hi Sultan,
    As far I know, it has nothing to do with user buffer, but it is required for setting the parameter ID.
    Just use SET PARAMTER ID 'BUK' Value  Space. into your code. I think it will resolve issue.
    Regards,
    Atish

  • From which table could i get the process code and corresponding FM.

    Thanks!

    TMSG1 Logical Messages and Process Codes in Outb. Procg
    TMSG2 Logical Messages and Process Codes in Inb. Procg
    Also check other tables :
    TEDE and TEDE1
    Another table to look at is EDIFCT. It contains the link between message type and processing function module.
    Thanks
    Seshu

  • HR - SRM Replication: Issue with company code and cost center

    Hello Experts,
    We have a scenario where we are trying to replicate the HR Org Structure into the SRM system.
    All the standard settings have been made using relevant SAP Notes and other help available on SRM.
    However, the company code and cost center for a particular position are not getting updated into SRM.
    These details are present in the Inbound Idoc from the ECC system.
    Is there any setting we may have missed out on?
    Please help.

    Hi
    Kindly check your ALE Filter in BD64 in the sending system. You need to maintain the objects C K O S and infotype 1001 and related subtypes in the filter model.
    Also check the Evaluation path that you are using to send data.
    Regards
    Vijay V

  • How to derive Company Code and Vendor Number from CDHDR / CDPOS ?

    Hi everyone,
    This is my first post and my apologies if this is a wrong forum to ask this.
    I'm creating an analytic that will track changes to the vendor master.  I know that I have to look into CDHDR and CDPOS tables and that CDHDR.OBJECTCLAS = KRED.
    However, part of the requirements is to be able to filter the results by Company Code and Vendor Number as well.  How do I do this? How can I link CDHDR to LFA1/LFB1 to get the company code and vendor code?
    Any information will be highly appreciated
    Thanks!

    I think you would have gotten answers sooner in the abap forum :P. Anyways the change pointer tables are kept in a different format, not in the normal flatly structured tables. What this means is that the data which comes through the pointer tables are somewhat encrypted. The object class and id present you records; Each change in master data (where the option is set) is recorded in these pointer tables.
    I believe there is a function module for converting the data into a readable format; that data should have your company code/vendor number in it.  You cannot link the chdr and lfa tables directly- you will need to first convert the data from the pointer tables

  • Company code and Profit center is not mandatory

    Hi,
    My requirement is that i wish to make the company code and profit center is not mandatory., ie greyed out. This i want while creating the project. I have assigned the controlling area in the project profile. but when i save the project i am getting the error as " Enter the company code".  I made changes in field selction for project definition screen group - both company code and profit center are in display mode. This i did it with regard to Project profile. In project builder screen it is greyed out. but asking for company code.
    Is it possible to make it for both? When i tried with Profit center alone, i am not getting any error. Whether company code is mandatory while creating project or anyway can we avoid company code?
    Please throw your views
    Thanks
    Sankar

    Hi,
    You can try in the following way:
    SPRO->Project System->Structures->Operative Structures->WorkBreakdown Structures->UserInterface Settings->
    Define Field Selection for WBS:
    Step1: Double CLick on "Field Selection: Project Definition"
    Step2:Click on "Influencing" button on the Application Tool bar.
    Step3:Double click on "Project Profile" line Item
    Step4:Against to Contents field- choose the relevent Project Profile (F4 search option) and then enter.
    Step5:Now here try to choose Company Code Fieled and make it as "Hide"
                        Profit Ceneter Field and make it as "Hide".
    Step6: Save the changes.
    Step7:Check with your Project.
    And Pl. let me know the result.
    Vemula

  • How to get the itunes code of iphone 5s

    how to get the itunes code of iphone 5s
    I am from india ....
    the itune setting doesnot give me none option in my phone ....
    And i dont know the itunes gift code ...
    So pls give me the detail how to get the itunes code and what is it ?

    It would have been better if you had added a reply on your original post instead of starting a new thread : https://discussions.apple.com/thread/5514146?tstart=0
    iTunes gift cards are an alternative way of paying for content from the store, but they aren't available in all countries (and the cards are country-specific, they can only be used in their country of issue). The gift card field on the account set up page is optional, and as gift cards aren't available in India you won't be able to fill it in anyway.
    There are instructions on this page for how to create a new account without giving credit card details and will give you the 'none' option : http://support.apple.com/kb/HT2534 - the instructions won't work with existing accounts, and if you didn't use those instructions when creating your existing account then you will need to enter credit card details before you will be able to use it to download content

  • Position to inherit company code and cost centre from Org Unit

    Hi Team,
    I have entered the company code and controlling area in my root Org. Unit.  All the sub-ordinate org units that I've created have inherited this company code and controlling area, however none of the positions I've created have inherited them.  What do I have to do to get my positions to inherit this information from their org unit.
    Regards,
    Jeanette

    Hi,
    Check table T7SS0, there are three switches
    PPOM     INHIC     X     'X': PPOM: Obligatory Inheritance of Company Code
    PPOM      INHIH     X     'X': PPOM: Obligatory Inheritance of Contr. Area
    PPOM     INHS     X     Inheritance of acc. ***. features by positions
    So just check these switches that they are set in this table, and I hope your problem should resolve
    Regards,
    guds

  • How to calculate no.of records for a specific company Code and Transaction

    Hi All,
    Could you please help me how to calculate or count no.of records, in a table which are having a specific Company Code and Transaction Code and populate  in an output table displaying that these many records are present for this company code and Transaction code.
    The table is having the data like this:
    LOB   TRAN CODE    COUNT
    X1                             1   
    X1                              2   
    X1                              3   
    X1                              4   
    F1   NB                      5   
    F1   NB                     6   
    F1   NB                     7   
    F1   NB                    8   
    F1   NB                    9   
    F1   NB                    10  
    F1   NB                    11  
    F1   NB                    12  
    F1   NB                     13  
    F1   NB                     14  
    F1   NB                     15  
    F1   NB                     16  
    F1   NB                     17  
    F1   NB                     18
    F1   NB                    19  
    F1   NB                    20  
    F1   NB                   21  
    F1   NB                   22  
    F1   NB                   23  
    F1                          24  
    F1                         25  
    F1                         26  
    F1                         27  
        In the above table there are totally 27 records,where as the no.of records with F1 as company code and NB as transaction code are 18..so i have to display like F1 NB and 18 as one record as output.
    Thanks and Regards,
    Johny

    You can go for Control Breaks for your requirement.
    First sort the internal table by company code and transaction. Declare a counter variable.
    Now loop the internal table and increment the counter variable. within the loop use AT END OF tcode.......ENDAT. Within the control break append the counter variable as well as the company code and tcode to some other ITAB and clear the counter.
    This will give you the total number of records for a combination of co code and tcodes.
    This will be a good reference for your requirement. What I am doing here is, for each Vendor i am calculating total number of deliveries and amounts for that vendor. For every new vendor i am writing the ouput on to a list and clearing the counter variables.
      LOOP AT t_vend_prod_grp INTO fs_vend_prod_grp.
        w_total_delv = w_total_delv + 1.
        w_total_amt = w_total_amt + fs_vend_prod_grp-dmbtr.
        AT NEW matkl.
          w_mat_grp = fs_vend_prod_grp-matkl.
    * To display the material group and the header texts for the data
    * grouped by material group and vendor.
          SKIP 1.
          WRITE:  text-mtk  COLOR COL_HEADING
                                  INTENSIFIED,
                / w_mat_grp COLOR COL_NORMAL
                                  INTENSIFIED OFF.
          SKIP 1.
          FORMAT COLOR COL_HEADING ON INTENSIFIED.
          ULINE  1(54).
          WRITE:/ sy-vline,
                2 text-ven,
               12 sy-vline,
                  text-dlv,
               26 sy-vline,
               38 text-amt,
                  sy-vline,
               46 text-cur,
               54 sy-vline.
          ULINE /1(54).
          FORMAT COLOR COL_HEADING OFF INTENSIFIED.
        ENDAT.                             " AT NEW MATKL
        AT END OF lifnr.
    * To display the actual data for the grouping based on Material group
    * and Vendor.
          FORMAT COLOR COL_NORMAL ON INTENSIFIED OFF.
          WRITE: / sy-vline,
                 2 fs_vend_prod_grp-lifnr COLOR COL_KEY,
                12 sy-vline,
                   w_total_delv,
                26 sy-vline,
                   w_total_amt CURRENCY text-usd,
                   sy-vline,
                46 text-usd,
                54 sy-vline.
          FORMAT COLOR COL_NORMAL OFF INTENSIFIED OFF.
          CLEAR: w_total_amt,
                 w_total_delv.
        ENDAT.                             " AT END OF LIFNR
      ENDLOOP.                             " LOOP AT T_VEND_PROD_GRP

  • Get user Company Code

    Hi all,
    I'm new in SRM, its there a FM ot table where I can get the user company code?
    Thanks.

    Hi Nicolas,
    You can use FM : BBP_READ_ATTRIBUTES
    In field "IV_USER" give the user id and in "IV_ATTR_SINGLE" give input attribute as BUK .
    execute and you will get the Company code of the user.
    Best Regards,
    Anil

Maybe you are looking for