Authorize Users to Create ONLY Contact Person Details in a BP Account.

Hello,
I have an issue with respect to Authorization in CRM WebUI.
Issue:-
A User (end-user) depending on his role (Role A Assigned in SU01) should not be allowed to edit any account details except CONTACT Block Details, i.e. the respective user should be able to edit/create only the contact block details.
The standard Authorization Groups CRM_BPROLE & B_BUPA_RLT are set with the folliowing values:-
ROLE A
1) BPTYPE = 000000, BUP003
    ACTVT = '  '
2) BPTYPE = BUP001, BUP002, CRM000
    ACTVT   = 1,2,3
*Analysis & implementation *
I have created a Z BADI implementation of BADI in the method IF_UIU_BP_AUTHORITY~CHECK_EDIT.
Commented the code from Ossnote 1259940 and wrote a simple code to give no/full authorization depending on parameter
IV_APPLICATION_NAME.
IF iv_application_name = cl_crm_ic_bp_constants=>gc_cp_create or
    iv_application_name = cl_crm_ic_bp_constants=>gc_cp_edit.
    cv_not_allowed = abap_false.
ELSE.
    cv_not_allowed = abap_true.
ENDIF.
RESULT
The test results are -
either the user gets to edit the complete BP account (incl. CP) or
he gets no authority to edit any BP details (incl. CP).
What I want is->
Though the user CANNOT edit the complete BP account details, he should be able to EDIT/CREATE Contact Details.
Now i need help from you all to suggest me on how to achieve it.
One option is - Take away the complete authority from the user and give only authority on CONACT PERSON block.
But for this I need to know how do we create authorizations on block levels.
Any Help/Tip would be appreciated.
Thanks
Dedeepya

Dedeepya reddy,
I just wanted to say thanks for coming back, and giving the solution you used.
It is helpful to anyone who may want to perform a similiar thing.  If you didn't do that they would be just as lost!
I appreciate that people provide solutions when they ask questions that way it can further the help for others.
Again thank you.

Similar Messages

  • Get Selected Employee Contact Persons Details

    Hi all,
    Created One Value set(DFF) to get Employee Contact Persons Details.
    That value set is getting all Employee's Contact Person's Details(From HRMS Manger)
    Here I want to Restrict Only Selected Employee Contact person's Details Has to Shown in Value Set(DFF) when ever HR Selects any Specific Employee
    Example:
    HR selected 'ABCD' Employee in People Enter and Maintain Form .In My DFF Value Set I want to see only 'ABCD' Employee Contact Persons Details instead of All Employees Contact Persons Details
    Edited by: user10357646 on May 24, 2009 3:28 AM

    Hi Sharath Gajula ,
    How to Get the Selected Person Id ?
    Value Set Query
    select papf1.FULL_NAME from per_all_people_f papf,
    per_all_people_f papf1,
    per_contact_relationships pcr
    where papf.PERSON_ID=pcr.PERSON_ID
    and pcr.CONTACT_PERSON_ID=papf1.PERSON_ID
    and sysdate between papf.EFFECTIVE_START_DATE and papf.EFFECTIVE_END_DATE
    and papf.EMPLOYEE_NUMBER is not null
    --How to get Selected Person Id In Run time
    Edited by: user10357646 on May 24, 2009 3:44 AM

  • Badi for modifying the Contact person details....

    Hi,
    I have a problem here, can anyone help me.? I am creating a contact person for an account/bp in the IC Webclient. I  need to modify certain fields on Contact person address while saving. Can anyone tell what badi's or user-exits that I can use for this purpose?
    Regards,
    Phani.

    Hi,
    Business object for contact person relationship is BUS1006002.
    By the way you can check out any BOR in transaction SWO1 using F4 help :-).
    Thanks and warm regards,
    Smita.

  • ICR Contact persons details- Communication method  by default set as Remote

    While maintaining  Contact person  details through FBRC010. The communication method  by default it is picking up as
    Remote mail, it is same in user profile also,  with this setting when we tried to send the mail using template   through
    FBICR3 or FBICR1. mails are not going to the  intended user.
    When we changed the user profile from Remote mail to  Email,  mails are going,   But i understood that from ECC6 onwards
    the mail type in user profile should be kept as Remote mail. if we change it to  Email, our concern is  users might not get
    mails from other source.
    Is there any way to come out this situation please.
    Thanks
    Ganapathi.

    Hello Ganapathi,
    ICR simply uses SAPOffice standard functionality. Details about sending options would have to be answered by a basis communication expert. I'm glad you were able to find a workaround but if you would like to have a different solution you may want to ask somewhere else...
    Ralph

  • To restrict the user to create only Standard quotation in PCUI

    Dear All,
    Please help me in this issue.
    We have requirement like below:
    In SAP GUI user is authorized to create 3 kinds of quotation:
    1. Standard quotation
    2. Estimate Quotation
    3. Quotation OCM.
    It is maintained properly in authorization profile for his role.
    Now requirement is that user should able to create only Standard Quotation in PCUI and others should not be visible.
    Regards
    Pankaj Vispute

    Hi,
              check this MBCF0005.
    EXIT_SAPM07DR_001.
    BADI being <b>MB_MIGO_BADI.</b>
    <b>Reward points</b>
    Regads

  • Error while creating the Contact Person in the BP Master Data

    Dear Experts,
                    I encountered the following error while updating the contact person name either while creating new or editing existing customer.
    Error - [Contact Persons - Contact Persons name][Line 1],'This entry already exists in the following tables 'Contact Persons' (OCPR) (ODBC - 2035)' [Message 131-183].

    Dear Experts,
                      I am not doing a DTW for the same, i am updating the BP Master manually. It has been a recent occurence since 3 days when the customer is trying to update the contact person the following error throws. I tried updating for the existing customers with no contact person, there in also it throwed the same error.
                   To bring to your notice i had a test database for the same customer where in i encounter no issues with regard to the contact person update.
    Saravanan

  • Issue while saving contact person details in CRM 5.2

    This issue is in IC webclient CRM 5.2.
    Issue:We search for the product and then confirm it.Once its confirmed,it will display the list
    of partners(ex:Sold to party ) for that product.
    When I  select sold to party ,it will display the list of contact persons for that sold to party.
    Then I select one contact person and I change some details for the selected contact person like extension,email and save it.
    Its getting saved.
    After that I do cancel interaction and I repeat the same steps.After changing the contact person,when I click on save ,its not getting saved.
    Again If I click on Save,its getting saved.
    I found that in setter method,collection wrapper is getting refreshed for the second time.Because of that,its throwing an exception 'CS_SY_REF_IS_INITIAL'.
    Can you please tell why this collection wrapper is getting refreshed and what could be the problem.
    Thanks in advance.
    Best Regards
    Baku

    Hi,
    You can set a check to see whether the object is bound. Otherwise, try to find out why the method is called twice.
    Regards
    Prasenjit

  • Displaying not only contact persons

    Hello Friends,
    I'm working with CRM 7.0 and configuring IC-Agent.
    After Account Identification, the standad system only shows contact persons(BUP001) from that account, but we need to show all contacts related to an account. We need to display all contacts inserted on relationships infoblock at Account Overview.
    Is there any way to make this possible?
    Any help will be apprecited!
    Best Regards,
    Nivea

    Hi Nivea,
    With CRM 7.0, SAP has provided a new functionality of multiple business partner in Define Account Identification Profiles for Multiple Business Partners.
    Below is the path, CRM>iC webclient>Master data-->Define Account Identification Profiles for Multiple Business Partners
    try configuring with multiple business partner and check if this helps.
    Regards,
    Chandrakant

  • Error while creating vendor contact person using vmd_ei_api

    Hi,
    while craeting vendor contact person using maintain_bapi of vmd_ei_api class iam getting error like 'Specify address number or address handle'.
    code :
    CALL FUNCTION 'BAPI_PARTNEREMPLOYEE_GETINTNUM'
    EXPORTING
    quantity = 1
    IMPORTING
    * RETURN =
    contactid = lv_contactid
    * QUANTITY =
    * TABLES
    * CONTACT =
    ls_contacts1-task = 'I'.
    ls_contacts1-data_key-parnr = lv_contactid."ls_knvk-parnr.
    ls_contacts1-data-abtnr = '0002'."ls_knvk-abtnr.
    ls_contacts1-data-pafkt = '02'."ls_knvk-pafkt.
    ls_contacts1-data-parau = 'BNotes'."ls_knvk-parau.
    ls_contacts1-datax-abtnr = 'X'.
    ls_contacts1-datax-pafkt = 'X'.
    ls_contacts1-datax-parau = 'X'.
    * Inserting Phone ,Fax and email.
    ls_phone-contact-task = 'I'. "Phone
    ls_phone-contact-data-telephone = '89655696569'.
    ls_phone-contact-data-extension = '778548'.
    ls_phone-contact-datax-telephone = 'X'.
    ls_phone-contact-datax-extension = 'X'.
    APPEND ls_phone TO lt_phone.
    ls_phone-contact-task = 'I'.
    ls_phone-contact-data-r_3_user = 'X'.
    ls_phone-contact-data-telephone = '89845589369'.
    ls_phone-contact-data-extension = '858588'.
    ls_phone-contact-datax-updateflag = 'X'.
    ls_phone-contact-datax-telephone = 'X'.
    ls_phone-contact-datax-extension = 'X'.
    ls_phone-contact-datax-r_3_user = 'X'.
    APPEND ls_phone TO lt_phone.
    ls_fax-contact-task = 'I'.
    ls_fax-contact-data-fax = '8896589'.
    ls_fax-contact-data-extension ='44521'.
    ls_fax-contact-datax-fax = 'X'.
    ls_fax-contact-datax-extension ='X'.
    APPEND ls_fax TO lt_fax.
    ls_contacts1-address_type_3-communication-phone-current_state = ' '.
    ls_contacts1-address_type_3-communication-phone-phone = lt_phone.
    ls_contacts1-address_type_3-communication-fax-current_state = ' '.
    ls_contacts1-address_type_3-communication-fax-fax = lt_fax.
    ls_contacts1-address_type_3-communication-fax-current_state = ' '.
    ls_contacts1-address_type_3-communication-fax-fax = lt_fax.
    ls_contacts1-address_type_3-task = 'I'.
    ls_contacts1-address_type_3-POSTAL-data-FIRSTNAME = 'Roger'.
    ls_contacts1-address_type_3-postal-data-lastname = 'Fedrer'.
    ls_contacts1-address_type_3-POSTAL-datax-FIRSTNAME = 'X'.
    ls_contacts1-address_type_3-postal-datax-lastname = 'X'.
    APPEND ls_contacts1 TO lt_contacts1.
    ls_vendor1-header-object_instance = p_lifnr.
    ls_vendor1-header-object_task = 'M'.
    ls_vendor1-central_data-contact-contacts = lt_contacts1.
    ls_vendor1-central_data-contact-current_state = 'X'.
    ls_vendor1-central_data-central-data-adrnr = ls_adrnr.
    ls_vendor1-central_data-central-datax-adrnr = 'X' .
    APPEND ls_vendor1 TO lt_vendor1.
    gs_vmds_extern-vendors = lt_vendor1.
    DATA:gs_succ_messages TYPE cvis_message,
    gs_vmds_error TYPE vmds_ei_main,
    gs_err_messages TYPE cvis_message,
    gs_vmds_succ TYPE vmds_ei_main.
    * Call the Method for creation of Vendor.
    CALL METHOD vmd_ei_api=>maintain_bapi
    EXPORTING
    is_master_data = gs_vmds_extern
    IMPORTING
    es_master_data_correct = gs_vmds_succ
    es_message_correct = gs_succ_messages
    es_master_data_defective = gs_vmds_error
    es_message_defective = gs_err_messages.
    if sy-subrc  = 0.
    commit work.
    Please suggest which fields else i have to pass??

    Hi Abhijeet,
    here i am showing you some scn help to use maintain bapi of vmd_ei_api class, i think you are missing some data to be uploaded along with there are methods in lsmw, bdc too for this, please go through below links carefully , i hope you will able to solve your problem.
    Vendor Master Upload Program - ABAP Development - SCN Wiki
    unable to vendor master record update using class vmd_ei_api
    Creation of Vendor - VMD_EI_API

  • Create/Update Contact Person address data (BUT051)

    Hello experts.
    Scenario:
    We have a potential customer, name it customer POT, identical to an ERP customer, name it ERP, and POT has a contact person, name it CONT.
    POT is in CRM documents.
    The initial idea was, with FMs CRM_ORDER_MAINTAIN and CRM_ORDER_SAVE, replace POT BY ERP in those documents, and then delete POT from CRM system WITH report bupa_test_delete.
    But that way, the relation between POT and CONT is lost.
    So, with FMs BAPI_BUPR_RELATIONSHIP_DELETE and BAPI_BUPR_RELATIONSHIP_CREATE it's possible to make CONT, the contact person of ERP (instead of POT), before deleting POT from system.
    However, the contact data (BUT051) is lost, because BAPI_BUPR_RELATIONSHIP_CREATE doen's maintaint adress data in relation.
    Is there a way to do it?
    Thanks in advance.
    Valter Olvieira.

    I used batch input and worked fine.

  • How to authorize users to use only certain tax codes not all

    After creating tax codes uasing FTXP, is there any way we can control the use of it by assigning only few to users to use ant all.
    Any help.
    Regards
    Robert

    We can restrict user based on:-
    Organizational Levels in Transaction code PFCG
    Accounting Number & Cost Center in Transaction code SU01
    Edited by: G K Raja on Nov 4, 2009 12:02 PM

  • How to authorize users to change only Variable Values for Planning Folders

    My users want to be able to change the values of the Planning Area variables for the Planning Folders in SEM BPS. However I wouldn't like them to have access to change anything else except the variables.
    What is the best way to do this.
    Please let me know
    Thanks

    Hi Arvind,
    If they are variables to be set by the users, change the type to user specific variables and check the values can be changed by user check box.
    M.

  • How to get list of FMs while creating Contact Person from User Admin Link

    Hi Experts,
    We are implementing SAP ECommerce for my SAP ERP. In one of our requirements, we need to develop MASS UPLOAD program which will take input as Contact Person's first name, last name, address and authorization details and create new Contact Person as it is done through User admin link.
    To develop above tool, I want to trace all the Function Modules which are called while creating new Contact Person from User admin link.
    Please provide your inputs on how I can get the trace of FMs.
    Thanks,
    Keya

    Hi Keya,
    For a B2C eCommerce solution, you are looking at FMs BAPI_CUSTOMER_CREATEFROMDATA1 and ISA_USER_CREATE and the table USAPPLREF which holds the reference to the customer and user.
    To get the FMs called, you would have to do a session trace during B2C user registration / B2B user creation from UME. You could search this forum on a 'how-to' for doing a session trace or lookup the development and extension guide that provides a lot of useful information.
    Cheers,
    Ashok.

  • Badi for contact person creation of isa user admin

    Hi fnds,
    I am creating a new custom field on isa user admin app of b2b. Now when i create a contact, the FM CRM_ISA_UA_IUSER_CREATE is been called. I am planning to pass this custom value to extension table of this FM.
    Now can u tell me a badi which triggers, so that i can use the extension table values and save it to the contact person details in the database?
    I am looking for a badi to save this custom value to contact person BP .
    thanks in advance,
    Niraja

    HI Niraja,
    Thanks for the useful information that itself has partially solved my querry, along with this I am in need of one more clarification from you and that is while creating user from ISA user management how can i modify it to add a standard user alias field, like u said I have created one custom field in ISA user mangement, can u please share it so that I can enhace the ISA user mangement to have one standard field(user alias).
    Thanks and Regards,
    Mayank
    Edited by: mayank Choudhary on Jul 10, 2009 2:09 PM

  • Problem  while creating  contact person using SD_CUSTOMER_MAINTAIN_ALL

    Hi All,
    I am trying to create a contact person to a customer using FM SD_CUSTOMER_MAINTAIN_ALL.Following is the simple code that I am using.FM is not giving any exception.But the contact person is not getting created.can anyone help me regarding this.
    DATA: I_FKNVK TYPE TABLE OF FKNVK,
          wa      type FKNVK.
    MOVE '0009011357' to wa-kunnr.
    MOVE 'Bose' TO wa-namev.
    MOVE 'Lalit' TO wa-name1.
    MOVE  '9980055557'   to wa-TELF1.
    *MOVE 'City' TO wa-ort01.
    *MOVE 'DE' TO wa-parla.
    *MOVE '' to watelf1.
    *MOVE 'U' to wa-kz.
    APPEND wa to I_FKNVK.
    CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
    EXPORTING
      I_KNA1                              =
      I_KNB1                              =
      I_KNVV                              =
      I_BAPIADDR1                         =
      I_BAPIADDR2                         =
      I_MAINTAIN_ADDRESS_BY_KNA1          = ' '
      I_KNB1_REFERENCE                    = ' '
      I_FORCE_EXTERNAL_NUMBER_RANGE       = ' '
      I_NO_BANK_MASTER_UPDATE             = ' '
      I_CUSTOMER_IS_CONSUMER              = ' '
      I_RAISE_NO_BTE                      = ' '
        PI_POSTFLAG                         = 'X'
      PI_CAM_CHANGED                      = ' '
      PI_ADD_ON_DATA                      =
      I_FROM_CUSTOMERMASTER               = ' '
    IMPORTING
      E_KUNNR                             =
      O_KNA1                              =
      E_SD_CUST_1321_DONE                 =
    TABLES
      T_XKNAS                             =
      T_XKNBK                             =
      T_XKNB5                             =
      T_XKNEX                             =
      T_XKNVA                             =
      T_XKNVD                             =
      T_XKNVI                             =
        T_XKNVK                             = I_FKNVK
      T_XKNVL                             =
      T_XKNVP                             =
      T_XKNZA                             =
      T_YKNAS                             =
      T_YKNBK                             =
      T_YKNB5                             =
      T_YKNEX                             =
      T_YKNVA                             =
      T_YKNVD                             =
      T_YKNVI                             =
      T_YKNVK                             =
      T_YKNVL                             =
      T_YKNVP                             =
      T_YKNZA                             =
      T_UPD_TXT                           =
    EXCEPTIONS
       CLIENT_ERROR                        = 1
       KNA1_INCOMPLETE                     = 2
       KNB1_INCOMPLETE                     = 3
       KNB5_INCOMPLETE                     = 4
       KNVV_INCOMPLETE                     = 5
       KUNNR_NOT_UNIQUE                    = 6
       SALES_AREA_NOT_UNIQUE               = 7
       SALES_AREA_NOT_VALID                = 8
       INSERT_UPDATE_CONFLICT              = 9
       NUMBER_ASSIGNMENT_ERROR             = 10
       NUMBER_NOT_IN_RANGE                 = 11
       NUMBER_RANGE_NOT_EXTERN             = 12
       NUMBER_RANGE_NOT_INTERN             = 13
       ACCOUNT_GROUP_NOT_VALID             = 14
       PARNR_INVALID                       = 15
       BANK_ADDRESS_INVALID                = 16
       TAX_DATA_NOT_VALID                  = 17
       NO_AUTHORITY                        = 18
       COMPANY_CODE_NOT_UNIQUE             = 19
       DUNNING_DATA_NOT_VALID              = 20
       KNB1_REFERENCE_INVALID              = 21
       CAM_ERROR                           = 22
       OTHERS                              = 23
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        WAIT          = 'X'
    IMPORTING
       RETURN        =
    ENDIF.

    i see this so much on this site, users just posting solved and not giving details on how they fixed the problem, the SDN is meant to be for sharing!!
    If you find a fix, share it or don't bother being a part of the SDN community.(so annoying)

Maybe you are looking for

  • Timemachine mail backup?

    I am using Timemachine  for the first time to back up my data as i plan to reformat my mac.It has slowed down considerably. i want to confirm,if my mails on my apple mail will be backed up and restored as it is with time machine? Thanks.

  • Error when syncing to iTunes

    This picture says it all: It keeps saying "could not be synced because the connection was lost" which sometimes happened when doing a Wi-Fi sync, but this is a wired sync!

  • Can a 180 trial license of Windows Server 2012 R2 Essentials be converted to full use license without uninstalling

    Hi, Is it possible to convert a 180 day trial version Windows Server 2012 R2 Essentials to a full retail license? Or do I have reinstall it again? I found this information: http://technet.microsoft.com/library/jj574204 But it doesn't say anything abo

  • SQL Tuning - Please

    Dear all, I have this query which is taking too much of time. I guess it is all because of FTSs. Below is the query. SELECT rpad(nvl(to_char(MDC_SITE_CONVERSIONS.ID), '*'), 20, '*')||        rpad(nvl(to_char(SMR.id),'*'), 20, '*')||        rpad(nvl(t

  • How to build the vertical photo gallery?

    Similar to tn3, but I need to build a vertical photo gallery with scroll bar with as3. Can you please advise?