Read the business role in the code

Hi Gurus,
My Requirement is to diffrenciate codes based on business role. More like below pseudo code
if BRole1.
    code 1 will be executed
elseif BRole2
   code 2 will be executed
else.
   code 3 will be executed
endif.
Can you please let me know how to read the business role programatically in SAP CRM.
Appreciate your help
Regards
Sudipto

Hi Sudipto,
Try to check here:
Business Role of logged in user
Kind regards,
Garcia

Similar Messages

  • Table that stores the business role and user id mapping

    Hi,
    i want to know the table that stores the Business role and the business role and user id mapping in CRM system.
    Thanks in Advance.
    Regards,
    Pricy

    Hi Mary,
    There is no direct table but there is a way to find it.
    HRP1263 is the table where business roles are stored when maintained at org level. These are stored against the Position.
    For getting user ID and position linkage refer table HRP1001.
    In HRP1001 table use below criteria to get the User and Position.
    OTYPE = CP
    SCLAS = US
    SOBID = User ID
    ENDDA = 31.12.9999
    Get the OBJID
    Query the HRP1001 table again with following
    OTYPE = CP
    OBJID = OBJID from above Query
    ENDDA = 31.12.9999
    SCLAS = S
    SOBID = Thats Position.
    Pass the position to HRP1263 as below.
    OTYPE = S
    OBJID = POSITION
    PROFILE - Thats business role assigned for the given position and user.
    Hope this is helpful.
    Regards,
    Naresh

  • Creating the bussiness roles for the bussiness partner using Function modul

    Hi
             How to create the business roles using the function modules for the Business partner.

    You can also assign the role at the time of creation of the business partner itself. Use the function module BAPI_BUPA_FS_CREATE_FROM_DATA to achieve the same.
    If your business partner is already there then you can use the function module BAPI_BUPA_ROLE_ADD.
    <b>Reward points if it helps.</b>

  • Error when reading the ID of the business system from the SLD

    Hi,
    I am working on a scenario JDBC - XI - BW (ABAP Proxies). I configured all the steps required to connect XI & BW systems. The SLDCHECK transaction is all green. I was able to connect to SLD from BW using SXMB_IFR tcode too. I was able to look at all the XI Repository interfaces from SPROXY tcode in BW. Created a new ABAP proxy (class interface and method) for the message interface in XI from BW (SPROXY Tcode). Created all required config in XI Directory. Got the message from JDBC adapter, mapping done successfully, and the message failed in the CALL Adapter Step.
    The error is "Error when reading the ID of the business system from the SLD for system BWS and client 100."
    What could have gone wrong. Thanks in advance.
    Srini

    Hi,
    :::::::One Should Have the Following Roles AS A XI Developer With Out Admin Rights ::::::
    1) SAP_XI_Developer_ABAP +
    2) SAP_XI_Developer_J2EE  +
    3) SAP_XI_MONITOR_ABAP   +
    4) SAP_XI_MONITOR_J2EE    +
    5) SAP_SLD_ADMINISTRATOR +
    6) SAP_XI_BPE_MONITOR_ABAP +
    7) SAP_XI_DEMOAPP
    8) SAP_XI_DISPLAY_USER_ABAP +
    9) SAP_XI_DISPLAY_USER_J2EE +
    Regards
    Sesh

  • Standard WebClient UI business role for the CRM 7.0

    Hello Gurus
    where can we get the below mentioned thing....i tried in service market place but i did not get
    The predefined authorization roles are provided as attachment BP_CRM_ROLES.ZIP to the collective note of this SAP Best Practices version. Download and unzip the roles to your local directory
    after dowloading we need to uplaod in to PFCG roles
    (The purpose of this activity is to copy a standard WebClient UI business role and to assign a new authorization role to it. The WebClient UI business role is designed to centralize the authorizations, navigations, and content of the CRM WebClient UI.
    The business roles will be adapted to the Best Practices scenario scope)
    i am struck of ove here
    regards
    Sreeram

    Hi Sreeram,
    The roles you want to assign to the user you have to select for your scenario. The best practice role assigned to an user to navigate to the webclient. The other roles you assign to the user to give authoraization for your scenario. If you will go to C04 document you can get the standard roles which will be assigned to one particular user. For the standard user let sal SALES_MAN we assign the standard roles as peer the best practice as SAP_CRM_UIU_FRAMEWORK ,SAP_CRM_OR_ADMIN, SAP_CRM_OR_USER and BP_SLS_MANAGER. If you need other authorization for the user then copy the standard role and assign the authorization manually in transaction PFCG.
    Hope this will help you.
    Thanx
    Chinmaya

  • How to add the business transaction to t-code : CIC0 in win client

    Dear sir,
    We use CRM 5.0 . We would like to add business activity tranaction into t-code : CIC0. But I don't know how to do. Please kindlyadvise how to add the business transaction to t-code : CIC0 in win client.
    Thank u and best regards,
    Vimol

    Hello,
    For each transaction type (e.g. Sales Order, Business Activity, opportunity, ....) you can maintain in which channel (IC WebClient, IC WinClient, SAPGUI, PCUI, ...) they are allow to be used. Probably the transaction types you want to see in the IC WinClient (= CIC0) are not enabled for this channel, that's why they don't appear in the WinClient (CIC0).
    How to do this?
    SPRO>CRM>Transaction>Basic Settings>Define transaction types
    Here, look for the transaction types you want to enable in WinClient. Select the transactiont type and select "Channels" from the left pane. Here, add the channel "IC WinClient" (or something like that, I don't know the exact name anymore, in newer versions this no longer exists).
    Save and restart the CIC0, after this the transaction type should be enabled.
    Hope this helps,
    Joost

  • Assign some Business roles in the CRm 7.0 i n the UI frame work.

    Hi,
    I need to assign some Business roles in the CRm 7.0 in the UI frame work.
    & how we need to assign the org to the business roles.
    Please provide any doc or any link is more appreciable.
    Thanks & Regards
    Prajith P

    Hi,
    When in the Org Structure, DOUBLE CLICK on the position so that it opens up the details screen.
    From the menu options, Select Goto>>Detail Object>>Enhanced Object Description>>Under the Info Type, Scroll down to business role, select and click on change mode. The business role assigned to that position will be displayed. Here you can assign the required role, save and go back to the org strucutre. Save again. It should be done.
    Regards
    Varun Taneja

  • Need to update the business place and section code for the advances

    Hi,
    I need to update the business place and section code for already posted advance payment requests (f-47), advance payments (f-48) and clearing documents (F-54).
    I can able to update the business place and section code for only invoices those are coming from MM route in J1INPP.
    guide me
    sateesh

    Hi ,
    Please follow the below point as per note no 640231
    2.  Path : Transaction SM31 . Enter the table name as TRWPR and press
                                                                      Page 2
        maintain .
        a) Delete all entries linked to component ZIND if they are present.
        b) Check that, entries as specified below exist for Component IND.
           Business
           Tran.    Time     No    Component        Function Module
           DOCUMENT CLOSE    043   IND              J_1I6_UPDATE_BA
           DOCUMENT CLOSE    044   IND              J_1IEWT_UPDATE_SECCO
           DOCUMENT PREREV   810   IND              J_1I6_CIN_DOC_PREREV
           DOCUMENT CLOSE    810   IND              J_1I2_COPY_TO_LOCAL
           RABELEG  ERGAENZE 810   IND              J_1IEWT_COPY_BUPLA_FBZ
           BELEG    POST     810   IND              J_1ITDS_TABLE_UPDATE
           DOCUMENT CHECK    810   IND              J_1I6_VALIDATE_GR
           DOCUMENT POST     811   IND              J_1IEWT_UPDATE_PROVISION
           BELEG    POST     811   IND              J_1IEWT_UPDATE_PROVISION
           BELEG    CLOSE    820   IND              J_1I2_COPY_TO_LOCAL
           DOCUMENT CHECK    820   IND
           J_1I6_VERIFY_GR_EIC_QUANTITY
           DOCUMENT CLOSE    820   IND              J_1I6_COPY_TO_LOCAL
           DOCUMENT CLOSE    821   IND              J_1IEWT_COPY_TO_LOCAL
           DOCUMENT POST     821   IND              J_1ITDS_TABLE_UPDATE
           BELEG    CLOSE    821   IND              J_1IEWT_COPY_TO_LOCAL.
        For the first two entries which are marked with sequence number 43
        and 44 for the Business Transaction 'DOCUMENT' and Time 'CLOSE' ,
        ensure that the sequence number is below the number for function
        module FI_DOCUMENT_CLOSE. This is to ensure that these two functions
        are processed in time for other checks in Financial Accounting.
    MIRO documents also will update the Business place section code.
    Reg
    Madhu M

  • Setting personalization via profile parameter in the business role vs su01 personalization

    We are trying to have the personalization for a user on login determined by the business role they choose (if they have more than one) via the profile parameter in the business role.
    Setting the personalization this way doesn't seem to get picked up for the user, any experience with this issue?
    Regards,
    Curtis Finchercr

    Hi Curtis,
    In CRM, users can personalize their screens by logging in to web client by selecting the business roles.
    Once they are in to the business role they can able to see "Personalize" option on right hand side top corner. If they click that option they can able to modify their own data (personal information), Lay out, Settings, Groupware integration and Favorites modifications as well.
    Thanks,
    Siva

  • How to link the Business Partner with the SAP User ID.

    Hi,
    We are working on a scenario wherein the resources are created as Business Partners in R/3.
    now How to link the Business Partner with the SAP User ID.

    HI AP,
    Maintain the business partner in role Internet User - BUP005.
    Now assign the existing user to this BP .(you can make this assignment in tab "internet user'. Just enter the user name in the field User and save).
    You can now see the link in table HRP1001.
    Cheers,
    Rishu.

  • Does anybody know how to check if the business partner has the authority

    Does anybody know how to check if the business partner has the authority to change business partner relationship?
    Best regards?
    Blake Le

    Hi,
    Do you mean that you would like to check if the user has the authorization to create a relationship, or change the validity of the relationship?
    As per SAP architecture, authorizations are assigned to users, not business partners.
    Business partners, could be assigned to users, who in turn have authorizations. This is typically seen for business partners, with the role, Employee.
    Hope this helps,
    Regards,
    Nelson.

  • Error while assigning the fallowing role to the user

    Hi,
    ERROR 2007-01-18 14:13:25
    CJS-30196  Role SAP_BC_JSF_COMMUNICATION_RO is not assigned to user SAPJSF
    i am getting the fallowing error while trying to assigning the fallowing role to the user any body through some light in to it.
    Thanks
    kiran.B

    Hi,
    Standard roles are not assigned to users directly.Make sure that copy the role from standard roles then change naming convention like your company specification.
    Ex: standard role : SAP_BC_JSF_COMMUNICATION_RO
    Step:1: go to t-code: PFCG and give the role name in role tab SAP_BC_JSF_COMMUNICATION_RO
    Step:2: press copy button and change the naming convention.
    Step:3: Assign to the user.
    I hope it will help you.
    kiran kumar.v

  • How can I know the security role of the logged in user

    When you design an enterprise bean or Web component, you should always think about the kinds of users who will access the component. For example, an Account enterprise bean might be accessed by customers, bank tellers, and branch managers. Each of these user categories is called a security role, an abstract logical grouping of users that is defined by the person who assembles the application. When an application is deployed, the deployer will map the roles to security identities in the operational environment.
    But wondering when I log into my application with some user name and password (specified in my Oracle database),wondering how this works with the security role I created .How does J2EE know the security role of the logged in user.
    Thanks
    Manohar

    shet wrote:
    role at run time.
    When I login say as "manju" and password as "money" then how does it know that this user belongs to this security role.Is that the j2ee administrator has to say that user manju has this this security role.Programmitically how does it really work.I am confusedThe j2ee implementation assigns the roles using the JAAS module you have configured for your application on your application server. different JAAS modules get roles in different ways. many allow a single static role to be assigned using a config file. if using a database, often there will be configuration to specify additional database fields which specify the role for a given username.
    At runtime, a developer can test roles using methods like EJBContext.isCallerInRole().

  • I have a photo in an album and in camera roll. I am trying to delete the photo from the camera rol and the only option that i get is : delete everywhere?     Noooooo i just want to delete it from camera roll!!!!!

    I have the same photo in an album and in camera roll. I am trying to delete the photo from the camera rol and the only option that i get is : delete everywhere?     Noooooo i just want to delete it from camera roll!!!!!

    The way that I understand that it works, is that the photos are not copied into the new albums, instead it just points to the photos - the number of photos on the iPad in Settings > General > About doesn't increase when you create new album so I assume from that that it isn't copying the photo, just pointing to it. So if you delete the photo from the camera roll you will therefore also be deleting all the pointers to it

  • EEWB :  how to determine the business object and the extension type ?

    Hi,
    I ask myself how to determine the business object and the extension type to use to add new fields in a new tab of a specific transaction ? what means each business object, does that correspond to a specific transaction ?
    I need to add a new tab in the ‘BaMI’ business activity in transaction CRMD_ORDER just after the tab 'Actions' at header level.
    Could you help me please to determine which business object and extension type I have to select during creation of the project and which business object category I have to select during creation of the extension (wizard) ?
    Thanks for your help,
    Marie

    Marie,
    In order to determine what type of transaction you are extending, you will need to look at the customizing for the transaction.
    In the IMG:
    Goto:
    Customer Relationship Management->Transactions->Basic Settings->Define Transaction Types.
    You will then choose the transaction defined that you want to extend.  If you display the details of the transaction you will find an attribute called:
    "Leading Transaction Category".  This tells you the general context in which the transaction is used.  The other item to view is the assignment of business transaction categories found in the maintenance screen.
    This information general corresponds to one of the options that the EEWB will give you on the transaction type.
    As far as extensions go, my recommendation is the following:
    - Use CUSTOMER_H Customer Header Extensions for any new fields at the header level.
    - Use CUSTOMER_I Customer Item Extensions for any new fields at the item level.
    Unless you have a specific requirement to extend a segment of the transaction, I recommend placing all new fields in these segments.  The CUSTOMER_H & CUSTOMER_I segments are considered "standard" segments, that are already built into all the necessary API structures. 
    Let me know if you have any further questions.
    Good luck,
    Stephen

Maybe you are looking for

  • Error in the update rules

    Hi All,    I added a BUOM Unit for a keyfigure and activated the cube.While I am activating the update rules it shows the error message unit for the Keyfigure is not recognized in the update rules . Kindly let me Know what i need to do for this error

  • Missing Commenting Toolbar for Acrobat Reader 9.3

    Our company's standard desktop PCs run Acrobat 9.3.4 , Windows XP SPII (still), and IE 8.0 I have 2 PDF files, with the same Reader Extensions applied to both (commenting). The source of the PDF files was from Autocad (plant drawings). They are produ

  • Macboo Pro 13 inch

    My macbook pro 13 inch screen suddenly goes black and comes right back on. I think this is due to the sleep function that is enabled when you close the mac, magnets tell the computer to go to sleep. The thing is when it goes black it comes right back

  • Unpack.sh doesn't work WLS 11g (10.3.2)

    Hi All, We are using wls_10.3.2 (11gR1). After packing a domain created at the hostA, the unpack script causes an error at the hostB as follows: 2010-05-21 18:49:30,173 INFO [runScript] com.bea.plateng.domain.script.ScriptExecutor - read template fro

  • Error -43 when updating to ios 5

    Updated to iTunes 10.5 this morning.  When updating my iPhone 4 (4.3.3) I received the following error: "An error occurred while backing up the iphone (-43).  Would you like to continue to update this iPhone?  Continuing will result in the loss of al