Hide Assignment Block !

Hi All,
In Salespro, I would like to hide or remove some assignment block from Account page...
I have tried BP_HEAD in Easy Enhancement Work Bench but no Luck....
Is BP_HEAD right component? I am going in Salespro->Account-> and search for customer. Select any customer and would like to remove assignment block there...
Am i missing something !
Please help !

Hi Amish
When you are in configuration tab/page, you would be by default taken to the DEFAULT configuration, i.e. the what the SAP CRM has designed for you by standard. Now in general practice we dont modify the DEFAULT configuration, we instead make a copy of it by clicking on COPY CONFIGURATION button& while copying we give a role configuration key which is associated with a business role (check in SPRO->CRM->UI Framework->Business Roles->Define Business Roles).
To answer your questions:-
(1) While i go for configuration.. there are more than one Context ID, Object Type and Sub object Type...
Which one is the right context ID.. Can you please explain...
When you are in configuration tab for viewset BP_HEAD/BPHeadOverview, you would not have the context Ids, but you would have a list of views embedded in this viewset - BP_ROLES,BP_PROFILES... etc. You can select your View to be hidden from this list and click on the button "Move to Right".
After moving it to Right Hand Side (Displayed Assignment Blocks), you can set setttings for display of this AB as 'Direct' if you want the AB to be always opened in "Expand Mode" , or as "LAZY" if you want the AB to be opened in "Collapse mode" or "HIDDEN" having the view hidden.
(2) Two different accounts has different assignment blocks listed on account overview page... any reason why ( data are not maintained on any of that account)
Ex. Account # 1 has Business Hours AB while Account #2 does not have Business Hours AB..
Having different views displayed based on a condition as it is in your case Account Type can be handled by loading different configurations at runtime in method DO_CONFIG_DETERMINATION of the respective view's implementation class.
Here you can pass the configuration parameters based on the condition you are seeking. (the different configurations must be already created/saved before you load it, otherwise the system throws an exception on not finding the requested configuration).
  me->set_config_keys( iv_object_type          = lv_object_type
                       iv_object_sub_type      = lv_subtype
                       iv_propagate_2_children = abap_true ).
- Dedeepya

Similar Messages

  • Function module required to hide assignment block for Opportunity.

    Hi all,
    I have an requirement where i have to hide the assignment block "subsequent assignment" for the opportunity. I dont have any idea how to do it. Is there any function module or BADI to do so.
    Please reply if you have any hints about that.
    Thanks and Regards.
    Raman Khurana.

    Hi Raman,
    there are several ways:
    1.
    Implement method DO_CONFIG_DETERMINATION and get another configuration for the overviewpage. In this configuration you can display the assignmentblocks as desired.
    2.
    Methods DETACH_STATIC_OVW_VIEWS in combination with REATTACH_STATIC_OVW_VIEWS.
    Here you can iterate over all assignment blocks and strip those not wanted from the UI.
    3.
    In the business partner there is a BAdI for this. THere might be one for BT as well. Maybe someone knows, or debug for the call yourself.
    For detail use the search functionality of this forum. There have been some threads regarding this the last weeks.

  • Notes long text assignment block in service request component

    Hi,
    In Service Request , i am seeing notes assignment block . its custom one which has been created by using SRQM_NOTES as component usage in SRQM_INCIDENT_H.
    Every thing works good, the notes entered in that assignment block is stored in ZS01 text id of the service request.
    My requirement is to change that text id to ZS02. I mean text entered in the assingment block should be stored in ZS02 text id of the service request.
    I have checked all the methods of SRQM_NOTES and SRQM_INCIDENT_H to check the code(code for updating to ZS01 text id) but i could not see that.
    Could you please let me know your suggestions.
    Best Regards
    Rajesh

    Hi,
    If you set the position to 0 it will move to the 0 position not hide it
    Regards
    Vishal

  • How  to  hide a block  from a  selection screen.

    Hello Friends,
      I have a new reqirement in which a main program has two transactions.
    Both the transactions have the same fields and parameters.
        Now I am asked to add some fields in only one transaction without disturbing  the other txn.
    For this I have created a block and added two fields. But now i want to hide this block for the 2nd transaction.
    So please guide me for this...
    Thanks in advance.

    Hi Sapna,
      If you hide all the fileds that are in a block then that block should also get hidden as far as I know. have you tried assigning a MODIF ID to all the fileds and then using
    SCREEN-GROUP1 = 'GROUP NAME'
    SCREEN-ACTIVE = 0.
    This should work if this is not working then check if you can use the block name and hide it in LOOP AT SCREEN.
    Hi I has juse checked this code and it hides the block also.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: par1 TYPE spfli-carrid MODIF ID par.
    PARAMETERS: par2 TYPE spfli-connid MODIF ID par.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'PAR'.
          screen-active = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    MODIFYING your code
    <b>SELECTION-SCREEN BEGIN OF BLOCK PARAMETER WITH FRAME TITLE TEXT-053.
    PARAMETERS:
    P_1 LIKE t-f1 DEFAULT 'USD' MODIF ID par,
    P_2 LIKE t-f2 MODIF ID par.
    SELECTION-SCREEN END OF BLOCK PARAMETER.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'PAR'.
          screen-active = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.</b>
    Regards,
    Sesh
    Message was edited by:
            Seshatalpasai Madala

  • Deleting Assignment Block dynamically as per requirement

    Hi All
    I  need to hide a assignment block (added it to overbiew page view area and component usage used) dynamically based on some condition.
    I have redefined DEATTACH_STATIC_OVW_VIESETS and added the view to deattach 
    , but still that view internal table contains the deleted view in REATTACH_OVW_VIEWSETS  so I have removed there also but still some where that internal table picking up that view and showing in screen.
    Can any body please guide me

    Hi,
    this may be useful:
    http://wiki.sdn.sap.com/wiki/display/CRM/Dynamcallyhidinganassignmentblock
    Regards
    Ajay

  • It's not seen available component in assignment block via UI Configuration

    Hi, SAP Experts.
    I met a some problem in Webui Configuration (via Tcode : BSP_WD_CMPWB)
    I wanna diplay or undisplay particular component in UI Configuration.
    I move to left section (available assignment blocks) from right section(Displayed assignment blocks) some component.
    but, It's not seen some component in left section completely.
    It's not displayed components in ui configuration (available assingment block)
    I don't know why occurs this problem.
    Let me know or explain how to solved this problem.

    Hi Chang,
                       I actually dint understand the problem your are facing , but still can tell you the standard behaviour.
                 Generally we have a set of assignment blocks available in two sections i.e Available List at left side and Dispalyed List at right hand side.All the AB's present at the right hand side would be displayed on Web UI. IF they are not gettting displayed then check your personalisation settings and do reset to default and save once the configuration.
    In case you need to bring any of the AB's at left hand side to right ...................do that and save the configuration.  You should be able to see all the AB's whcih are at the right hand side.
    Sometimes few AB's are hidden at runtime, though they appear in the displayed list. In the controller class of the overview AB, there are two methods namely 'DETACH_STATIC_OVW_VIEWS' and 'REATTACH_STATIC_OVW_VIEWS'. Dettach is used to hide few AB's at runtime and Reattach is to add them. Keep a break-point in these methods and check is they at being hidded based on some condition at runtime. Check the outgoing parameter rt_return.
    Hope this helps .
    Regards,
    Ruby.

  • Can not update an assignment block with on_new_focus

    Hello Experts,
    I have the following problem. I created a new component which is similar to the component BP_BPBT to create activities for Business Agreements. In the overview page of the business agreement in WebUI, I have now the assigment blocks "Plannend activities" and "Interaction History".
    When I create a new activity in the assigment block "planned activities" with the new button and save the activity with the buttons "SAVE" or "SAVE AND BACK". The new created actity is shown, depending on the "Active Status" , in one of the assignment blocks "Plannend activities" and "Interaction History". When I create an another activity in the same way, the new actiity is not shown in the assignment blocks. But when I reload the page again, I can see the new created activity.
    During debugging, I see, that the first creating activity is in the collection in the method ON_NEW_FOCUS. When I create an another activity, the collection is not updated. Here is my coding:
    * get collection of dependent nodes
      TRY.
          entity ?= focus_bo.  "BuAg Entity 
        CATCH cx_sy_move_cast_error.
          RETURN.
      ENDTRY.
      TRY.
      lr_entity = entity->get_related_entity( iv_relation_name = 'BuAgBuPaRel' ).
         lv_collection = lr_entity->get_related_entities(
             iv_relation_name = 'BuilInteractionHistoryRel'
    *  D022159: Performance optimization
             iv_mode          = lv_mode ).
    Can anyone explain me, why the activities (after the first one) are not in my collection.
    Can anyone help me to fix this problem?
    Kind Regards,
    John H.

    Hi,
    Please check if you have added your entity to collection after you save the entry. It looks like your value is saved in DB but its not reflected on UI because you are not refreshing your collection.
    I would suggest that you write a code after you save and commit to refresh your collection of the context node.
    Regards,
    Bhushan

  • Can not see assignment block conditions in rule policy

    Hi gurus,
    I can't define any conditions in a new lead distribution rule. When I create a rule under a rule folder I can see the assignment blocks "Rule Details", "Actions" and "Preview", but I can't see the assignment block "Conditions" in order to define de conditions of the rule policy. How do I have to do to see this assignment block?
    Thanks and regards,
    Jesú

    Hi Jesús,
    Seems strange because as soon as you click on enter after 'New' rule, all 3 assignment blocks should show up.
    Could you please check whether the view has been included in the viewset correctly in the runtime repository editor of the underlying BSP component? For the standard it is usually the component CRM_ERMS_RULEM. The viewset is CRM_ERMS_RULEM/RuleDetailsViewSet  and the ViewArea " RuleDetailsConditions " should be included.
    Thanks and Regards,
    Nisha
    Edited by: NishaNC on Nov 25, 2010 7:15 AM

  • How to make an assignment block with valuenode editable?

    Hello All,
    I have read the blog [How to display a z-table in an assignment block|http://wiki.sdn.sap.com/wiki/display/CRM/Howtodisplayaz-tableinanassignmentblock]. This all went fine. Now I have a question if it is possible to make this table editable and if so, how?
    The problem is, it is valuenode for a custom z-table, without a GUID as key. (just partner number) So making a Simple Object of my z-table doesn't work, because the default class works with GUID as key. But I also can't seem to find if it is possible to make a valuenode editable.
    I also read these blogs, but they didn't do the trick for me either:
    [CRM Web UI Technical - Creating Table View In Web UI|http://wiki.sdn.sap.com/wiki/display/sandbox/CRMWebUITechnical-CreatingTableViewInWebUI]
    [Create a Z BOL Object Part 1|http://wiki.sdn.sap.com/wiki/display/sandbox/CRMWebUITechnical-CreatingTableViewInWebUI]
    I am silently hoping that there is an easy way of making my current assignment block editable by implementing a simple Save method or something similar. I do not prefer to have to recreate my view and stuff.
    Anyone an idea?
    Regards,
    Martijn.

    Hi Martijn,
    Try this code..
    If the main entity(assuming one order entity) is editable, set the view to editable.
    DATA:      lr_entity       TYPE REF TO cl_crm_bol_entity.
      lr_entity ?= me->typed_context->btadminh->collection_wrapper->get_current( ).
      CHECK lr_entity IS BOUND.
      if lr_entity->lock( ) = abap_true.
        *me->view_group_context->set_view_editable( me ).*
      endif.
    Check this therad for setting the view context.
    Edit the order
    Hope this helps..
    Cheers,
    Sumit Mittal

  • How to make an assignment block in an overview page read only

    Hi Experts,
    We have the following requirement:
    In Campaign overview page we need to make the Partner and Product assignment block read only.
    Can this be achieved through coding or through configuration?
    Please give detail steps for the appropriate approach.
    Thanks in advance.
    Regards,
    Sayan

    Hi Leon,
    Is there any authorization group which can be customized to take care of this situation?
    For Product Assignment block in DO_PREPARE_OUTPUT method of class CL_CPGOE_AB_OVELPRODUCTS_IMPL (Component : CPGOE_ABLOCKS :: View : OVELProducts) it is checking some authority. Any pointers where those authorities are maintained will be helpful.
    Creating a new configuration is not helping as the views are 'Table View'.
    We are looking for an approach which will avoid coding or involve minimum coding.
    Regards,
    Sayan

  • Creating a new field in assignment block  through EEWB

    Hi,
    I need to create a new field in an Master data --> Listings --> Listing items/Products assignment block. I do not have option to use AET (using CRM 7.0) for this assignment block. I think I should use EEWB only.
    Now, how can I find the right EEW Bus. object and the extension type to create new fields.
    Please suggest.
    Thanks,
    Praveen

    CRMCMP_LST/CondRecDispView.
    Here I would like to create new field in the header area. I found that the structure used by the BOL entity, in this view, cannot be enhanced. This new field will be defaulted according to the user information everytime the user creates a new Listing.
    Also, this field should be available in display view.
    Please suggest.
    Thanks,
    Praveen

  • Adding an assignment block

    hi
    I have to add a new assignment block on the UI. I  have done it by creating a view in a new component and then getting the fields displayed on the UI by including that component in the Component Usage for the required component. The problem i am facing is that, all the fields are getting displayed in  the non-editable mode. I am not able to manipulate the values for these fields using the GET, GET_I methods also. Please help me in solving this problem.
    Help would surely be rewarded.
    Regards,
    Radhika

    Hi Radhika,
    Please note that fields will get value either from custom controller or component controller in your case.
    When you include any component in other component you need to specify which custom controller your component will be using to fetch the value.
    Eg: Your componet is C1 and you have added it in component useage of C2. Also C2 has cuco.Also you need to create cuco in c2 for your component c1so that c1 is able to fetch the value.
    Now when you have specified the cuco, you need to tell in component controller that if your component is C1 then your cuco is cuco(that you created in C2).
    This you do in implementation class of component controller and wd_usage_initialize method of implementation class of component controller. If you check any standard component, you will find custom controller for component usage components. Write code for your component C1.
    Then you will be able to use values and fetch values.
    Best regards
    Pankaj Kumar

  • Remove the assignment blocks dynamically at runtime

    hello friends,
    i want to remove the assignmnet blocks dynamically at runtime but based on the condition data avilable or not . example for opportunity window, whether the item list assignment block is empty then only i want to delete it . for this case i have to put a validation . im using  DETACH_STATIC_OVW_VIEW method for deleting the assignmnet blocks . but in my case based on validation only i want to delete . how to do the validation. please help me out .
    thanks in advance.
    regards
    sashi

    Hello there,
    I believe the Method DETACH_STATIC_OVW_VIEWS as you mentioned is the correct one to achieve this functionality.
    Here what exactly has to be done in your scenario is not clear from your question.
    However if we consider your example; you can refer to the code excerpt below
    UI COmponent : BT111H_OPPT  ( Header Component of Opportunity)
    Class: CL_BT111H_O_OPPORTUNITYO0_IMPL
    Method : DETACH_STATIC_OVW_VIEWS
    It already has in place
    * get Details CuCo
      lr_cuco ?= me->get_custom_controller( controller_id = 'BT111H_OPPT/OpptDetailsCuCo' ).
    then it checkes the Product Items.
    You can put ou validation logic in place and do like following:
    * Competitor products on Item level
      IF lr_cuco->is_competitor_available( iv_mode = lc_item ) = abap_false.
        ls_viewid-viewid = 'BT111H_OPPT/CompProdItemOV'.
        INSERT ls_viewid INTO TABLE rt_viewid.
         ENDIF.
    Please reply if this helps.
    Best Regards,
    Vinamra.

  • Supressing Drag&Drop for Assignment Blocks in Overview Page

    Hi Experts,
    in the standard setup it is possible to change the order of assignment blocks in a Web UI Overview page by means of drag and drop. Does anybody know how this feature can be suppressed if not desired?
    Thanks,
    Jens

    Hi,
    one solution is to deactivate this in the customizing of the businessrole.
    Add function profile PERSONALIZATION with value ALL_DISABLED to disable all personalization functionality.
    There are some other values possible like:
    WA_ENABLED or PP_ENABLED
    Just test a little bit arround which is the correct one for your requirement. ALL_DISABLED deactivates all personalization.
    Kind regards
    Manfred

  • Error in creating a view for an assignment block

    Hello All,
    I am trying to create an assignment block in web UI using links below.
    http://weblogs.sdn.sap.com/cs/mobile/view/wlg/21034?x-topic=89  -- to create a table and corresponding BOL entity.
    http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebUITechnical-CreatingTableViewInWebUI u2013 to create an assignment block
    When I try to create an assignment block in CPG_MAIN, I am unable to find my zorder_so BOL entity. Any pointers would be of great help.
    Edited by: chandrakantklk on Jul 21, 2011 10:20 AM

    Unfortunately I did not see anything in this note that would help it appeared to be talking about IM and QM. 
    I do agree there is some inconsistencies and I am just not sure where....None of this makes any sense as I said one day it will work and then the next time you try it, it gives the error message....I am so at a lost at this point...

Maybe you are looking for

  • Photoshop CS5.5 "Not Responding"

    I encountered an annoying issue with photoshop cs5.5 a few months ago, but I never got around to solving it because I didn't need to use it, but now I'm back at school and I need to work on some things... When I open photoshop, there's no problem. Bu

  • Export to excel pivot table is incorrect

    Hi All, I have a problem when export Discoverer Plus report to Excel Pivot table... My problem is calculation field (ex. Average salary per employee) in pivot table shown incorrect data. May someone has any idea for this problem and how to solve it.

  • Tells me iDisk is full, and I can't publish my website

    Hello, I'm using iWeb '09 and recently took on the mobileme 2 months trial period. It will end on the 17th of April. I began publishing a blog and it worked really well ( I have not more than 7 articles though ). But now, all of a sudden, on the webs

  • Make DW default for XML files?

    I'm sure there's a way to do this that I'm missing, but I'd like to make DW my default app for XML files.  I know how this can be done on Windows (using "open with" and changing default), but I'm using Mac OSX.  I tried messing with the file types se

  • Query LPAR in oracle database.

    Hi Folks I was assigned to query LPAR and user_id in some databases. Based on the info on excel sheet, we are going to match up LPARs with physicals servers, and I'll then determine how many unique database ids exist across each physical server. I kn