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

Similar Messages

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

  • How to Set Assignment block in Display mode

    Hi All,
    I have a Z assignment block in Account (BP_Head), requirement to set this assignment block in display mode only.
    No user allowed to  edit its edit list.
    Could you help me how to do that with sample code and event.

    HI,
    In configTable set attribute displayMode = "TRUE". Then this AB will be always in display mode
    displayMode            = "TRUE" or
    if you ar using configCelleator uyou need to give iv_all_rows_editable = space
    cl_thtmlb_util=>translate_selection_mode(
      exporting
      iv_selection_mode    = ITEMS->SELECTION_MODE
    iv_all_rows_editable = space
      importing
      ev_selection_mode   = lv_cellerator_selectionmode
    ev_edit_mode        = lv_cellerator_editmode
      ev_selection_column = lv_cellerator_selectioncolumn ).
    Regards,
    Deepika.

  • Button "NEW " being deleted in Assignment Blocks of Contacts

    Hi Experts,
    This is the Scenario.
    When we go to Contacts, there is an Assignment Block Relationships to Employees where Button "NEW" is being deleted(which was present earlier).
    The same scenario  is seen in Assignment Block Relationships to other Contacts  also.
    Please propose a solution to bring the NEW Button back.
    Many thanks in advance
    Regards
    Karthikeyan

    Hi laxmi,
    The scenario is not difficult to resolve.But you must figure out if your business requires this or not.Possibly if the button is getting deleted due to some condition being executerd,you should check if the same condition is applicable to you.YOu should find out whihc view it is,by pressing F2 on the view in the UI. Goto that particular compoennet and view and then chekc out the following methods in the View IMPL class- DO_PREPARE_OUTPUT OR IF_BSP_WD_TOOLBAR_CALLBACK=>GET_BUTTONS.One of these will contain the code where a table GT_Buttons or rt_buttons would be filled .This is an internal tabel which contains all the  buttons to be displayed on the UI.Here you can check if the NEW button code is present or not,and do the needful by copying the code which brings about other buttons.
    Suvidha

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

  • Help needed in defaulting Dynamic assignment blocks

    Hi All,
    We are trying to default assignment blocks based on the configuration saved against each object type.
    Procedure followed is as below
    Created 2 configurations, one for sold to party and the other one for ship to party in the BP_Head cpmponent for the Overview page. Two configurations of the overview page are saved against a role config key but with a variant of object type
    Created two logical link IDs one each for sold to party and ship to party
    Make these two logical link IDs available in the UI as direct link groups
    Upon clicking sold to party the configuration saved against that(Set of assignment blocks in the overview page) needs to be called (Remember we saved this configuration with a variant of object type)
    Similarly when clicking on the ship to party link corresponding configuration (Set of assignment blocks in the overview page) needs to be displayed
    Any inputs on this will be of great help.
    Regards,
    udaya

    you need to redefine the method DO_CONFIG_DETERMINATION of your controller
    there you get the role and any other needed values, and you define the OBJECT_TYPE and SUBTYPE that will be used as key fields for the configuration

  • Assignement block - Private Note

    Hello everyone,
    I have a question regarding the assignement block "Private Note" available in service request.
    I have read somewhere that this block is for user only; which means that the text enters in that block will be only visible by the user that wrote it.
    However, I am struggeling to find information on that block and on the authorization process that there is. In fact, my client requirement is to have that block that can be visible for everyone and not only the user.
    Would anyone know if that's possible (even with little coding or enhancement)? Would you have any links or information available on that assignement block?
    Thanks a lot,
    Regards,
    Anaïs

    Hi,
    To use private note for all users it will require enhancement in system which would be complex.
    Everything is done in class : CL_CRM_PRIVNOTE_IL
    Better to use standard notes section for this where you can define one more text type as per requirement and also can show text of newly defined text type in private notes or different assignment block by making small enhancement.
    Regards,
    Naresh

  • How to view specific assignment block information for opportunity

    Hi everyone,
    We have the following requirement from our users:
    1) Users will specify a selection criteria to view only specific opportunities on the opportunity search screen
    2) Users will then select multiple opportunities from the result list
    3) Users want the ability to choose the specific assignment block information they want to view(opportunity header, sales team, partners etc)
    4) We should then display this in some form so that only specific AB information is available to the users
    As I am compartively new to the SAP world, I would really appreciate if some one could guide me here. Currently a solution is in place where users can launch a report which opens a new excel sheet which has information for about 7 assignment blocks(this is static and users cannot choose which ones they want). We essentially need a solution which can interact with our CRM system and give the users the ability to choose which AB information they want to view and then output this information in a printable format.
    I have been told that we can use Crystal reports to accomplish this but I am not very sure as these are primarily analytics tools? It would be great if anyone can provide some pointers.
    Regards,
    Abhinav

    Hello Madhusudan,
    In your overview page controller you have to overwrite methods: DETACH_STATIC_OVW_VIEWS (this is where you remove your assignment block from the page dynamically), REATTACH_STATIC_OVW_VIEWS (this is where you can put your assignment block back on the page). Both methods have a returning parameter where you can specify which assignment block you want to detach/reattach.
    Hope this helps.
    Best Regards,
    Yevgen

  • 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

  • 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

  • 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

  • Adding assignment blocks notes and marketing att to the Quickcontact Page

    Hi Gurus,
    My requirement is to assign new assignement blocks to the QuickContactCreate view in component BP_CONT.
    Right now when user want to create a Quick Contact create from Account Over view page, he could see a single view with general data. View name is  BP_CONT/ContactQuickCreateEF
    when you create a new contact(not a quick contact create) from master data, you could see notes and marketing assignment blocks along with general data.
    My requirement is to assign/display the same notes and marketing assignment blocks in QucikContactCreate Over view page also.
    Please tell how can i reuse/assign/display those two blocks in quick contact view
    I tried to assign the above blocks through confiuration but i dont see them in the left assignment block list to assign.
    can any one help me with steps how can i show those two assignment blocks on quickcontact create page and how can i use from contact over view page.
    Thanks for all.
    Seema

    not received answer from any one, thats why am closing this thread

  • How to delete records from dynamic internal table.

    Hi Experts,
    Need urgent help!!!
    Issue is with Dynamic internal tables.
    Below is code written by me :
    FORM select_query USING Lw_tabnam
                      TYPE  t682i-kotabnr.
      DATA :  lw_line  TYPE REF TO data,
              lw_line1 TYPE REF TO data.
        CREATE DATA Lw_line    TYPE (lw_TABNAM).
        ASSIGN      Lw_line->* TO   <WA_tbl>.
        CREATE DATA LW_LINE    TYPE STANDARD TABLE OF (Lw_tabnam)
                               WITH NON-UNIQUE DEFAULT KEY.
        ASSIGN      Lw_line->* TO <TBL>.
        SELECT * FROM  (Lw_tabnam)
                 INTO CORRESPONDING FIELDS OF TABLE <TBL>
                 WHERE (t_keys).
    Endform.
    code is working fine.
    here even the table name and where condition are dynamic,everything is fine upto this point.
    Now i have to delete some record from <TBL> based on some conditons.
         for ex : ( here lc_fieldname is KUNNR)
          loop at t_kunnr.
              lw_tabix = sy-tabix.
            Read table <tbl>
                    with key (lc_fieldname) = t_kunnr-kunnr ASSIGNING <wa_tbl>.
            If sy-subrc = 0.
            *Delete
            delete <tbl> from <wa_tbl>
    delete <tbl> index  lw_tabix.
            Endif.
         Endloop.
    The above delete statement doesn't work ,even we can't use index as it gives a syntax error " something related to "index is not allowed in standard table or hash table.
    Can you help me ab't how to delete records in Dynamic internal table?
    Other option that i am thinking of is to create a static table of type dynamic table.
    means, data itab type standard table of <tbl> .I know the syntax is wrong ,however is there any way to do this?
    Thanks in advance ,
    If you have any suggestion ab't this then do let me know.
    bye,
    Gaurav.

    Hi
    I wrote this code and it works fine:
    DATA LW_TABNAM(10) VALUE 'LFA1'.
    DATA : LW_LINES TYPE REF TO DATA,
           LW_LINE  TYPE REF TO DATA.
    FIELD-SYMBOLS: <TABLE> TYPE TABLE,
                   <WA>    TYPE ANY.
    CREATE DATA LW_LINES TYPE TABLE OF (LW_TABNAM)
    WITH NON-UNIQUE DEFAULT KEY.
    ASSIGN LW_LINES->* TO <TABLE>.
    CREATE DATA LW_LINE TYPE (LW_TABNAM).
    ASSIGN LW_LINE->* TO <WA>.
    DO 10 TIMES.
      APPEND INITIAL LINE TO <TABLE>.
    ENDDO.
    SY-TABIX = 4.
    DELETE <TABLE> INDEX SY-TABIX.
    WRITE SY-SUBRC.
    I hope it help you
    Max

  • Trying to add PDF icons to my Assignment Block (CRM 7 WebUI)

    Hello gurus,
    I am trying to display a pdf icon in every row of my assignment block in CRM 7 WebUI. I am using one click actions, so I have an actions column, and I the logic to make the icon image appear is in the GET_OCA_T_TABLE of the context node class. When I create actions like delete and edit, it is very easy to get the icons, for example, the following code works perfectly and the icons are displayed in the assignment block:
       ls_one_click_action-id      = 'DELETE'.
        ls_one_click_action-icon    = 'delete.gif'.
        ls_one_click_action-text    = ''.
    ls_one_click_action-id      = 'EDIT'.
        ls_one_click_action-icon    = 'edit.gif'.
        ls_one_click_action-text    = ''.
    But, I cannot add a pdf icon.... I have tried the paths to PDF icons in the MIME repository, and I have tried getting the PDF icons like this cl_thtmlb_util=>GC_ICON_FILE_PDF or with cl_thtmlb_util=>get_icon_url(pdf)... nothing displays anything but a broken image.
    Please help me!  <text removed>
    Jonathan
    Edited by: Matt on Jun 27, 2011 10:18 AM

    Thanks!!!
    You mean, in the .htm file?? Well that would not work, at least not in my case, because there is almost nothing in the .htm.. Anyways, thanks a lot. I did not find it your way.... In the debugger, I found the path through the MIME repository to the default MIME types for THMLB.
    Now I have to open a PDF file in IXOS in a new window in the WEBUI....... how can I call a PDF in IXOS based on my an object ID??
    Thank you!!
    Jonathan

  • How to add "ATTACHMENTS" assignment block in standard component ERP_H

    Dear All,
    I have a requirement where i have to add the "Attachments" assignment block to standard component "ERP_H". I have taken following steps so far and i am able to display the view in the component ERP_H, however no funtionality has been defined.
    I created a component usage of component "GS_CM" in the runtime repository of component ERP_H
    and now i am able to display the assignment block in the overview page of component ERP_H
    Now i have to create a custom controller and here is where the problem lies. When i try to create a custom controller, it asks for a BOL Entity, and in order to have the same BOL entity as in component GS_CM, i have to add Model "CM" to the runtime repository of component ERP_H, however i m not able to add Model CM in the runtime repository of component ERP_H unabling me to create the custom controller.
    Any pointers would help, if there is any other way to create custom controller instead of adding bol component in the runtime repository.
    Regards,
    Pradeep

    hi,
       can you please add the solution , how u have done  it?

Maybe you are looking for

  • Backing up and restoring iPhoto Library

    I am currently using Time Machine to back up my iMac, including my iPhoto Library, which is quite large (80 GB). If I have to restore the iPhoto Library, will the photos retain their descriptions so that I an reorganize them?  How about using a cloud

  • Current value of a column.row in a Report region

    Hi I have a report that I want to display a single row per page. No problem there. I also want to show, in a separate region below the value of two specific columns for that row (they are large text items that I want to show as text areas). My proble

  • After effects cc RAM preview problem

    I recently bought a new rig  i7 4790K running at stock 8gb 1866mhz corsair vengeance pro ram 2x4gb EVGA GTX 770 2gb superclocked WD Black 1TB 7200rpm Samsung 840 Pro 128gb Asus Z97-PRO motherboard I run AE and open a file and import my clip (59.94fps

  • Transport of Customizing from Dev Server to Quality Server

    Hai ,               After release of change request using SE10,How we can transfer from one server to another . Regards, Mohanraju

  • Adobe Muse is sluggish - no painfully slow

    Why is Muse increadibly slow to respond to comands. Running PC windows 7 64bit with duel xeon  8 core 48Gb memory. All other programs run smoothly and quick Not Muse. Why?