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

Similar Messages

  • 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.

  • 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

  • Database tabke to get cross company codes of an invoice

    Hi All,
    I want to get all the cross company codes for given invoice document. I want to know the database table from which I can get all the cross comapny codes for given invoice document. Kindly help me on this.
    Regards,
    Pranjali
    Moderator message: please (re)search yourself first, if your specification is unclear, get back to the author.
    Edited by: Thomas Zloch on Dec 3, 2010 2:15 PM

    Hi,
    IThese notes will help you to find the tables in your system, because it can have variations:
    Note 308989 - Consultant note for cross-company transactions
    SAP Note 543821 - FAQ: cross-company processing
    SAP Note 338922 - Analysis note for cross-company transactions (delivery)
    SAP Note 109254 - Customizing stock transport order Cross Company
    I hope this helps you
    Regards,
    Eduardo

  • 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

  • Display users along with company code assigned to them

    Hi,
         I would like to display list of users with company code assigned to them
    Thanks & Regards,
    Rajesh Kale

    Hi himanshu,
    I want list of user using complex selection criteria.
    It can be display using tools -> Administration -> User maintenance -> Information System -> Users by complex selection criteria.
    Here, I am facing the problem that which authorization object I should put so that I can get list of users in which in front of every user I get the company code assigned to them.
    Regards,
    Rajesh

  • How to get company code using material number

    Dear all,
              I have material number & plant on selection screen, but how do I get the company code details using MARA-MATNR ?

    HI,
    You can use a cmobination of T001K and MARC Table.
    T001K table is assignment of Plants to a company code and MARC is a table with combination of Material and Plant.
    Regds,
    Anil
    Edited by: Anil Katoch on Jul 23, 2009 6:24 AM

  • Idoc Company Code Error

    Hi EveryOne,
    When Running an INVOIC02 IDOC,i am getting an error u201CA company code cannot be determined for LI 0000001510u201D .
    I see the Company code for that vendor in LFB1
    I maintained entries in OBCE and OBCA
    This Idoc runs for the partner function RS
    IDoc calls the Function module u201CIDOC_INPUT_INVOIC_MRMu201D Do u guys think i should activate the user exit  "CALL CUSTOMER-FUNCTION '011'u201D to get the company code from E1EDK14 segment???
    In that segment QUALF is passed as  011
    And orgid as company code??
    Or is there any other segment i can pass the company code?

    Activate the user exit .
    EXIT_SAPLMRMH_011 Logistics Invoice Verification: inboud EDI message, company code
    check this code.
    TABLES: t076b.          Company Code
    CHECK I_E1EDKA1-PARVW EQ 'RS '.
    LOOP AT t_idoc_data WHERE segnam = 'E1EDK14'.
      MOVE t_idoc_data-sdata TO e1edk14.
      IF  e1edk14-qualf = '011'.
        EXIT.
      ENDIF.
    ENDLOOP.
    SELECT SINGLE * FROM  t076b WHERE  parart    = i_idoc_contrl-sndprt
                                AND    konto     = i_idoc_contrl-sndprn
                                AND    bukrs     = e1edk14-orgid.
    IF sy-subrc = 0.
      e_lifnr = i_lifnr.
      e_bukrs = t076b-bukrs.
      e_change = 'X'.
    ENDIF.

  • Company code authorization

    Hi,
    In portal, I need to restrict users based on company code.
    When US users logged on to portal, needs to look at the reports, which has the company code value 10
    When Canadian users logged on to portal, needs to look at the report, which has the company value 20
    When Europe users logged on to portal, needs to look at the report, which has the company value 30
    Director of the company needs to look at all the reports, Company code values 10, 20 and 30
    How to handle this? Please help me in this.
    Thanks,
    Ashh.

    If you are using  0COMP_CODE as authorization relevant and have assigned this object to a role and this role to users you will get the company code for each user (then you have build a process to identify which company code the user belongs).
    The processing type "Authorization" enables variables to be filled with values automatically from the user authorization.
    http://help.sap.com/saphelp_nw04/helpdata/en/44/599b3c494d8e15e10000000a114084/frameset.htm
    Do you want to build a customer exit for reading the authorization? Then take a look at the function modules:
    RSSB_GET_AUTH_FOR_USER returns the permitted single values and intervals.
    RSSB_GET_AUTH_HIER_FOR_USER returns the node at the top of the permitted hierarchy section, as well as all permitted sub-areas. You should only use this module in special cases. This is because it uses the internal display of the hierarchy and nodes.
    Regards
    Andreas

  • Different No Range for Purchase orders - company code wise.

    Dear All,
    Hi.
    at present we have just one company code in the server.
    now we are getting second company code in the same server, for this new coopany code. business needs seperate no range for purchase orders.
    so please guide me how i can configure in the system
    Thanks
    h shah

    Here
    we are going to use same document type.
    is it possible to use any user exit???
    Thanks
    h shah

  • How to find out the company code given the customer number

    I am new to SAP please help me out? How do you find out the answer.

    Hi,
    Goto T.Code SE11/Se16/SE16n.
    Key in the table name as KNB1.
    Enter your customer number.
    Execute.
    You will get your company code here.
    Another way is Goto XD02/XD03.
    Enter your customer number.On company code press F4.Enter the customer number and press Enter.A list of company code in which your customer presents will appear.
    Regards,
    Krishna.

  • Table that gives the relation between plant and company code

    Hi gurus,
    I actually have plant number and using this plant value i need to get the company code.
    Is there any table that gives the relation between plant and company code. So,that i can get the company code details.
    Thanks in advance.

    Hi Bhanuphani,
    Use  T001K  where BWKEY is the plant
    Reward if useful
    Thanks Arjun

  • Company Code wise message processing in Service Desk Solman 4.0

    Hi Guru's,
                     We are implementing Solution Manager 4.0 service desk with SP 15.We have got a scenario like our branches are in dubai , USA and Nepal. All these locations have multiple company codes. So our company requirement is to handle the message company code wise.
                                      For example if the message creator is from company code 1000 then the message should go to support team belonging to  same company code 1000. Is it possible to create a rule in PFAC with container company code to achievthis or is there any other method ? If creation of container is possible with company code how does the system get the company code details from Business Partner?
    Please give light into this issue.
    Best Regards,
    Sanju

    Mohammed,
    Could you please help me as to how did u go about it.
    I am having the same issue right now.
    Deepak

  • How to process AT END OF command for company code and transaction number.

    Hi,
      I  have report with selection screen with company code and key date.  Based ON key date given I should calculate Accrued interest for all transaction with in each company code.
        When I run report with one company code it works fine. But when I run with multiple company codes the amounts are messed up.
    I am getting all company codes with transaction details in to ITAB1 like this below, and PERFORM get_processdata. has my calculation for interest rate.
      SORT itab1 BY company_code  transaction.
      LOOP AT itab1 INTO wa_tab1.
        itab2 = wa_tab1.
        APPEND itab2.
        AT END OF transaction.
           PERFORM get_processdata.
        ENDAT.
      ENDLOOP.
    Thank you.

    Hello,
    You need to use AT New event to clear your total variables.
    AT New - this will go for first time also but we want to clear variables from second time. it requires flag to stop going it first time
    Pseudo code:
    clear: flag.
    Loop at itab1 to itab2.
    At New.
    if flag eq c_x.
    clear: <total variables>, intenal tables.
    move c_x to flag.
    endif.
    tab2 = wa_tab1.
    APPEND itab2.
    AT END OF transaction.
    PERFORM get_processdata.
    ENDAT.
    ENDLOOP.

  • Related to payroll and company code

    Dear Guru's
    I want to know the Company code of a PERNR in the PAYROLL
    means from where can I get the Company code of a PERNR
    means from which structure ..
    Thanks in Advance '
    Regards,
    PAVAN.

    Hi Pavan,
    Pl refer to my regarding payroll on the ABAP forum.
    Regards,
    Suresh Datti

Maybe you are looking for

  • Dunning Letter Generate program Isues

    Hi All We are Running Dunning Letter Generate for Dunning letter set (SIS_1GER) for 2 dates (20-Jul-2011, 15-Aug-2011) for Staged Dunning In Dunning Letter Print from Dunning Letter Generate output we are not getting same customers Would like to know

  • Anyone successfully using an LG  Monitor with a Macbook Pro?

    I am considering an LG L226WQT to use with our MBP and Powermac G5. I have been told that LG monitors don't work well with Macs, but I have not found any actual information suggesting this.

  • Weekly Timesheet in Edit mode

    I need to create dynamicly an ouput table that users can edit their hours and cost center. Each day have maximum 2 entries for week if they have one entry per week, then the design table will have an empty text box for users to enter in....Please see

  • Serialize message R/3 -- XI

    Hi, I want to set quality-of-services to value "exactly once in order". So what happen, when the message mapping is going wrong, with the message that causes the error in the message mapping and with the following messages in the queue? Thanks. Regar

  • Mandatory field on Service Call

    Hi Expert, I would like to make certain fields mandatory on a Service Call. (When Status Closed, a UDF I have added must be populated, if not block the user) Will I be able to use transaction notifications? If this is the case, would you perhaps have