CRM 7. How to make mandatory the BP Roles on CRM Web User Interface.

Dear CRM Gurus,
  The requirement in our project is to have as mandatory at least one BP Role (except the default role of BP). Is there any way to implement or configure the CRM system to display an error message when a user tries to save a BP from WEB UI without having maintained the BP Role ?
Thanks in advanced, John

Hi Jhon,
Before raising the error message as Garcia suggested check the collection of bp_roles.. if no roles maintain then raise the message.
you can raise the message in eh_onsave event of BP_HEAD/BPHEADOverview.
Sample code to check the collection of bp roles..
DATA: lv_collection TYPE REF TO if_bol_bo_col,
            lr_bp                TYPE REF TO cl_crm_bol_entity.
  lr_bp ?= me->typed_context->builheader->collection_wrapper->get_current( ).
  CHECK lr_bp IS BOUND.
TRY.
      lv_collection = lr_bp->get_related_entities(
             iv_relation_name = 'BuilRolesRel' ).
*     delete difftype-dependent roles (not maintainable/ displayed
*     in standard)
      cl_crm_uiu_bp_roles_service=>filter_difftype_dependent(
        CHANGING cr_collection = lv_collection ).
*     delete lifecycle stages (which are roles as well) from coll
*     of "normal" roles
      cl_bp_accountlifecycle_service=>filter_roles_exclusive_stage(
        CHANGING cr_collection = lv_collection ).
    CATCH cx_crm_genil_model_error.
*       should never happen
      EXIT.
    CATCH cx_sy_ref_is_initial.
  ENDTRY.
check lv_collection->size( ) le 0.
      raise error message.
Hope this helps.
Cheers,
Sumit Mittal

Similar Messages

  • I have added a 5 songs from a single album and in Ipod it comes as enigma album and in that one song is available and another album named enigma and another song. IT happens for 5 songs also. How to make all the 5 songs in one album name Enigma

    I have added a 5 songs from a single album and in Ipod it comes as enigma album and in that one song is available and another album named enigma and another song. IT happens for 5 songs also. How to make all the 5 songs in one album name Enigma???

    I am working on a friend of mine's 15g ipod(W/dock connector)and I am having the same trouble except it does it to all the songs. I have tried reseting it multiple times, but to no avail.
    I am not sure that this runs on windows XP, it is absolutly archaic (compared to my 5th gen. 30g video).
    Help?
    15g ipod (w/dock connector)   Windows XP  
      Windows XP  

  • How to find out the tables related to CRM datasources?

    How to find out the tables related to CRM datasources? For example, the table related to 0CRM_OPPT_H.
    Regards,
    R.Ravi

    Hi Ravi,
    To find out all tables used go into the CRM source system to transaction RSA3 and prepare the selections for extraction of your datasource.
    In a parallel session execute transaction ST05 and press the button 'Activate Trace'
    Go back to the extracor checker and execute the extraction.
    Switch sessions and subsequently 'Deactivate Trace' and 'Display Trace'.
    This will list all tables used.
    regards,
    Olav

  • How to make Firefox the Default search engine on Android Kitkat

    HTC Desire 816 with Google set as Default

    Here's how to [[Make Firefox the default browser on Android]] .
    [https://support.mozilla.org/en-US/kb/make-firefox-default-browser-android]
    Did this help you? We will love to hear from you.
    Thanks.

  • How to make QuickTime the default player again?

    How to make QuickTime the default player again?

    Two finger Click on the file and then select get info.
    It will open a window.
    Srcoll down to open with.
    Select Quicktime.
    Then select change all.
    After that, all MPEG 4 or the type of file that video is, will be defaultly opened by quicktime.
    Hope this helped!

  • How to make add the program system.out messages to a applet text field?

    How to make add the program system.out messages to a applet text field?
    System.out.println("I wanna displany this message on a applet text field, thanks");

    You may wish to change the output destination to a JTextArea. Please have a look at this link that likely shows what you want:
    [http://forums.sun.com/thread.jspa?forumID=54&threadID=640376|http://forums.sun.com/thread.jspa?forumID=54&threadID=640376]
    If you need other examples, search the forum. I found the search terms -- redirect system out textarea -- very helpful.
    Good luck

  • How to make Default the Higher-Level Manager of the employee

    Dear experts,
    how to make Default the Higher-Level Manager of the employee as Further Participant in performance management ?
    Regards,
    TVS

    Hi,
    The delivered BAdI below defaults in both the appraiser and appraisee as part-appraisers//Default Further Participants.
    BAdI Area: Appraisal Enhancements
    BAdI Definition: HRHAP00_DOC_DEF_DO (Appraisal - Default Further Participants)
    App. Enhn.: DEFAULT_ALL_MANAGERS     
    Implementation: HRTMC_DEF_OTHERS
    Implementation short text: Determine All Managers
    Implement this BADI  in SE18/SE19 and  write the desired code in the  BADI methods
    Hope this will help u out.....
    Regards
    Lakhan

  • You sent the iphone 4s in Italy with the program 'Syrians', which is beautiful but you put the Italian language nn .. nn is normal .. how to make even the Italian language ..

    you sent the iphone 4s in Italy with the program 'Syrians', which is beautiful but you put the Italian language nn .. nn is normal .. how to make even the Italian language ..

    you sent the iphone 4s in Italy with the program 'Syrians', which is beautiful but you put the Italian language nn .. nn is normal .. how to make even the Italian language ..

  • How to make gmail the main post?

    How to make gmail the main post?

    Add it into the mail application - it will automatically become your default email
    Or are you asking to for it to be your main email on the Apple ID?
    http://iforgot.apple.com/appleid
    You can change it there

  • How to make iTunes the default on my MacBook Pro

    I recently updated iTunes and now I'm having trouble making it my default music player. Any ideas?

    Hi ajjacoby14,
    To make iTunes the default application to use for playing music, use the steps found in this article -
    iTunes for Windows: How to make iTunes the default application for music and audio files
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • How to make in the loop codes?

    How to make in the loop codes to have like my output(below)?
    For example:
    I am trying to figure out how to make them correct the way I want to have the output.
    String start = "02-01-08";
    String end = "02-29-08";
    Calendar a = new GregorianCalendar();
    while( start <= end ) {
              a.add(Calendar.DAY_OF_WEEK, 7);
              Date d = a.getTime();
              DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
              String ss = df.format(d);
              System.out.println(ss);
    }The output:
    +02-01-08+
    +02-08-08+
    +02-15-08+
    +02-22-08+
    +02-29-08+
    Anybody know how to make it correct?

    artist_tech07 wrote:
    I am confused where is the answer in the doc that you gave me?Read my first reply and read the docs. Then read them again.
    And then re-read this
    To do what you want you need a start and end Dates. These you can compare in one numeric form or the other. For example by using getTime.
    Then during each loop iteration you will need to add *1 day (using the Calendar)* to the start date.
    I am telling you what methods to use. I have told you were you can find those methods. I have given you a link to the Calendar class API. All you have to do is put 2 and 2 together. Or at the very least make an attempt to do so.

  • How to make all the rows editable in webdynpro alv output

    Hi,
    How to make all the rows editable in webdynpro alv output.
    Thanks
    Rakshar

    Hi Rakshar,
    Check this wiki:
    http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoeditconditionallyrowofaALVtableinWebDynprofor+ABAP
    Regards

  • How to make sure the maps are loaded though nokia ...

    Hi,
    I have downloaded new nokia map v.3.0109 to my nokia E75 and loaded maps by using nokia map loader (Asia).
    but still I cant see the all regional map which I downloaded, without usign live internet connection.
    How to make sure the maps are loaded properly to my mobile ?
    with regards
    Moderator's note: Email address removed. It is not wise to publish your personal information on a public forum.
    Message Edited by myn1126 on 27-Jan-2010 07:54 AM

    Hi,
    I have downloaded new nokia map v.3.0109 to my nokia E75 and loaded maps by using nokia map loader (Asia).
    but still I cant see the all regional map which I downloaded, without usign live internet connection.
    How to make sure the maps are loaded properly to my mobile ?
    with regards
    Moderator's note: Email address removed. It is not wise to publish your personal information on a public forum.
    Message Edited by myn1126 on 27-Jan-2010 07:54 AM

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

  • How can I get the man book pro 13 inch user's guide in spanish

    How can I get the man book pro 13 inch user's guide in spanish

    http://support.apple.com/manuals/#portablecomputers
    Location the manual for your model and click the arrow next to "languages" to see the various options.
    Regards.

Maybe you are looking for

  • My Creative Zen micro is loc

    when i switch on my Zen Micro it shows the Creative logo ,but doesnt proceed there after . Also i dont hear any sound on key events . When i get in to recovery mode im able to select the options ,if i select reload firmware it displays "erasing firmw

  • Can't add new contacts in Mavericks

    Since installing Mavericks I can't add anything to Contacts. It behaves as if it's working right up until I close it, whereupon it promptly deletes all the information I just added. It also won't let me delete existing contacts. The only account I ha

  • I have OS and photoshop CC my spacebar doesn't turn into the hand anymore

    I don't know if I pressed a series of keys that took away the action of my spacebar turning into the hand tool but my spacebar now doesn't turn into the hand tool.  I have looked into the Keyboard short cuts and found the Hand tool.  It has an H next

  • Install.cmd is missing in oracle revenue management folder

    I have downloaded the ORMB softwares from oracle edelivery site and i found that ORMB folder doesnt have install.cmd file, may I know whats wrong?

  • Stack search

    Hi, I am have a class named location with the following fields, int x, int y and I create a stack with the class location. I think the stack search doesnt work properly. I used stack.search(item) == -1 to mean if there isnt the item in the stack do t