Buttons in Assignment Blocks
Hi,
Anyone plz explain
How to Add Buttons in Assignment Blocks.
Thanks,
Kaaviya.
Hi Kaaviya,
U can define the buttons in the DO_PREPARE_OUTPUT method of the implementation class or the IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS method in the Context node.
U can use the following code to create a button,
DATA: ls_button TYPE crmt_thtmlb_button.
CLEAR gt_buttons.
CLEAR ls_button.
ls_button-type = cl_thtmlb_util=>gc_icon_edit.
ls_button-text = 'Edit'.
ls_button-on_click = 'edit'.
ls_button-tooltip = 'Edit'.
ls_button-enabled = me->view_group_context->is_view_in_display_mode( me ).
INSERT ls_button INTO TABLE gt_buttons.
The following Code to be added in the .htm page of the view:
<thtmlb:areaFrameSetter toolbarButtons = "<%= controller->gt_buttons %>"
maxButtonNumber = "1" />
Hope this helps you!
Regards
Veena.
Similar Messages
-
Personalize button in Assignment Block
Hi,
I created a new assignment block for Campaign History in the Account Overview screen.
But the personalize button does not work, i.e., when I click on personalize button, no fields are shown in available or displayed fields list.
Couls you please guide as to how I can go about with this.
Regards,
John.Hello John
The issue could be related to the code correction in note 1504637. Please check that note.
Best Regards
Luis -
How to disable the assignment block's Edit button
Hi guys,
I need to disable the edit button in assignment block Parties Involved on an opportunity. Only authorised people would be able to see Edit button as enabled.
I'm not able to do this in the BTPARTNER/Partner as I don't get process id and order id in Partner view.
Kindly suggest a way to disable the EDIT button of assignment block (in display mode).
Regards,
ShailiMake use of Parameter ID to set the values at Document Header page and on individual assignment block get this value to enable or disable the button.
Regards,
Harshit -
Remove export to excel button on an assignment block
Hi
I have a requirement to remove the "export to excel button" on an assignment block".
I have coded the following in .htm
<chtmlb:configTable xml = "<%= lv_xml %>"
id = "BuilContactPerson"
navigationMode = "BYPAGE"
onRowSelection = "select"
table = "//BuilContactPerson/Table"
displayMode = "<%= controller->view_group_context->is_view_in_display_mode( controller ). %>"
width = "100%"
headerVisible = "FALSE"
hasLeadSelection = "TRUE"
downloadToExcel = "FALSE"
actions = "<%= controller->gt_button %>"
selectionMode = "<%= BuilContactPerson->SELECTION_MODE %>"
selectedRowIndexTable = "<%= BuilContactPerson->SELECTION_TAB %>"
selectedRowIndex = "<%= BuilContactPerson->SELECTED_INDEX %>"
visibleFirstRow = "<%= BuilContactPerson->visible_first_row_index %>"
usage = "ASSIGNMENTBLOCK"
/>
Though I have coded the downloadTo Excel to "FALSE" the button still appears.
I think the button comes by default for an assignment and I am not sure how to restrict for assignment block.
Can anyone please provide some pointers on this?
Thanks
SushmaH Sushma,
Could you check with this SAP note 1288220 inorder to disbale the export to excel in the AB's.
Regards,
Venkat. -
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
KarthikeyanHi 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 -
Saved search DDLB button on an Assignment block toolbar
Hi,
We have a requirement to add a button on an Assignment block (in an overview page) similar to Saved search DDLB button/functionality present on the Header Area. Any ideas to achieve this. Please let me know.
Thank you
AnjiHello,
Refer below links
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90789317-4b7d-2e10-8f88-ada75bb67369?QuickLink=index&…
Saved Search in Custom BSP Component | SCN
If you have not gone through it already.
Regards,
Ashik -
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 -
How to populate data from bol to assignment block.
Dear experts,
I saw on sdn discussion similar questions, but have not found the suitable answer.
I need to add fields for BP using EEWB and to work with this field in WEB UI. For achievement of it I have executed following steps:
1. Using EEWB has added new z u2013 fields to BP. This fields have appeared in tcode bp on a tab "customer data". Besides I have seen this field in created z u2013 BOL.
2. Using tcode BSP_WD_CMPWB has created z bsp component.
3. In z bsp component has created view and custom controller which correspond earlier created z - BOL. Also has created following binding:
owner->do_context_node_binding(
iv_controller_type = cl_bsp_wd_controller=>CO_TYPE_CUSTOM
iv_name = 'ZBP_S_INF/NumBpOutSYS'
iv_target_node_name = 'ZZ9BHEEW'
iv_node_2_bind = ZZ9BHEEW ).
4. Has redefined method DO_PREPARE_OUTPUT and would make modify the *.htm file for the purpose on toolbar there were buttons of editing of the data.
5. Has adding z - assignment block to bp_head component.
At start WEB UI the assignment block it is visible in list displayed blocks of account data. In this block there are buttons on toolbar. But in this block the data is not displayed. Though really data there is, as they are displayed in tcode bp.
Please inform as to populate the data from bol to z u2013 component. I assume that it is necessary for me to create get_ methods. But methods get_ and set_ do not cause query.
Iu2019m work in CRM 7.0.
Best regards,
Eugene.HI, Prasenjit
Here the text my html pages
<%@page language="abap" %>
<%@extension name="thtmlb" prefix="thtmlb" %>
<%@extension name="chtmlb" prefix="chtmlb" %>
<%@extension name="bsp" prefix="bsp" %>
<thtmlb:areaFrameSetter toolbarButtons = "<%= controller->gt_button_header %>"
maxButtonNumber = "3"
displayMode = "<%= controller->view_group_context->is_view_in_display_mode( controller ) %>" />
<chtmlb:configTable actionsMaxInRow = "3"
allRowsEditable = "TRUE"
displayMode = "<%= controller->view_group_context->is_view_in_display_mode( controller ) %>"
downloadToExcel = "TRUE"
id = "Table1"
onRowSelection = "select"
personalizable = "TRUE"
selectedRowIndex = "<%= ZZ9BHEEW->SELECTED_INDEX %>"
selectedRowIndexTable = "<%= ZZ9BHEEW->SELECTION_TAB %>"
selectionMode = "<%= ZZ9BHEEW->SELECTION_MODE %>"
table = "//ZZ9BHEEW/Table"
usage = "EDITLIST"
visibleFirstRow = "<%= ZZ9BHEEW->VISIBLE_FIRST_ROW_INDEX
%>"
visibleRowCount = "6"
width = "100%"
xml = "<%= controller->configuration_descr->get_config_data( ) %>" />
Whether the page can html operate extraction of the data? -
How to add new assignment block in opportunity
Hi,Experts.
I'm a beginer of SAP CRM.
I need to add/create a new assignment block similar to existing assignment block 'Details'
and display enhancement items in Opportunity screen with SAP crm 2007.
I have created new view using Wizard in BSP_WD_CMPWB and added it in WebUI.
I can input the item of added assignment block when creating new transaction.
However updating the existing one, the item does not replaced by input mode
even if I push the EDIT button.
Is any coding necessary? My process was wrong?
Could you please help me out.
Thanks,Hi ,
For your issue , in the view/viewset impl class where the edit button is placed , redefine the method SET_VIEW_GROUP_CONTEXT and create an instance
IF iv_first_time EQ abap_true AND view_group_context IS INITIAL.
IF iv_parent_context IS INITIAL.
CREATE OBJECT view_group_context
TYPE
cl_bsp_wd_view_group_context.
ELSE.
view_group_context ?= iv_parent_context.
ENDIF.
ENDIF.
Then in the event handler of the edit button make the view editable
me->view_group_context->set_all_editable( ).
Then in the .htm of the view , in the chtmlb tag ,
displayMode = "<%= controller->view_group_context->is_view_in_display_mode( controller )
Please try this..This will work.. If so, plz award points -
Refresh Follow up Transaction History Assignment Block on Save
Hi All,
I am doing a requirement where I am creating follow up Chargeback document (marketing) from Claim on click of Save.
I am able to create it using code written in manual button event handler, but the transaction history of the document is not refreshed immediately.
Though when i open the follow up document it is there and when I open the original document again it is there as well. That is, though the link has been created, but how to refresh data of transaction history assignment block on click of Save button of preceding document.
Please suggest if someone has worked on a similar scenario somewhere (may be from Lead to Oppt creation on save).
Thanks and Regards,
Rohit KhetarpalHi Rohit
I believe it is in the buffers so maybe you need to trigger an Server Roundtrip dude on this scenario so that refreshing happens and the same gets reflected on the UI
(OR)
Since it is in the overview page do a reread on the entity say in do_prepare_output to get the latest one
(or) use the publish_current() to publish the entity in do_prepare_output.(this will automatically do a re-read i believe)
Thanks
Abishek -
Authobject for SAP collaboration assignment block in Solman 7.1
Hi Guru,
I am trying to find the authorisation object for edit option in SAP collaboration assignment block in Solman 7.1.
The edit button is disabled.
I could not find it through trace as it was greyed out.
Could you please suggest which authorisation object is used for this.
Regards,
PoojaHi,
Please see if this can help you ...
The Request for Change in Solution Manager 7.1 has a new screen area to define the scope. This new area is the scope assignment block.
The Request for Change in Solution Manager 7.1 offers inside the Scope assignment block the possibility for several follow up documents also of different types. The field subject is obsolete in Solman 7.1 it was replaced by the change category of the scope assignment block.
To define which change categories are valid you can perform the following customizing.
SAP Solution Manager Implementation Guide - SAP Solution Manager - Capabilities (Optional) - Change Management - Standard Configuration - Change Request Management Framework - Make Settings for Change Transaction Types
Choose SMCR Request for Change or your corresponding customer specific request for change and then double click on u201CCopy Control Rulesu201D in the left navigation area.
Here you can define which follow up documents (also your own Z & Y Types) you want to allow in the scope as change category as well as define which information of the request for change shall be automatically copied. e.g. priority, text, date, attachments, context.
Let me know if you need any further clarifications...
Thanks,
Ravi -
Hi Gurus,
I have a requirement:
in the Quotation Screen of Web UI, Component - BT115H_SLSO
I have to give multiple assignment blocks for the Items based on the item category.
where user will be able to maintain different items for different item category.
Here for maintaining the items the Component is BT115QIT_SLSQ.
I have created a new component Z* copying this standard component and also the corresponding views, view set & windows.
I am able to get the view into a new assignment b lock for the items. But in the New Assignment blocks the Editable Row for entering the item is not coming and also the insert Button is disabled.
Can any one please help me how to activate the insert button and also how to add rows to the table/structure?
Also I need to control the display & edit of the items based on the Item category in these assignment blocks - how to do this?
Please help me out!
Thanks a lot!
Regards,
TarakThe Hierarchy is this way.
BTOrder ->BTOrderHeader (BTAdminH ) ->BTHeaderItemsExt ( BTItems ) -> BTAdminI.
BTItems is a parent of BTAdminI.
( You can look in GENIL_MODEL_BROWSER for ONEORDER).
Here is the code snippet to insert an item at BTAdminI.
lr_btitems = lr_btadminh->get_related_entity( 'BTHeaderItemsExt' ).
IF lr_btitems IS NOT BOUND.
lr_btitems = lr_btadminh->create_related_entity( 'BTHeaderItemsExt' ).
ENDIF.
CHECK lr_btitems IS BOUND.
lr_btadmini = lr_btitems->create_related_entity( 'BTOrderItemAll' ).
lr_btadmini->set_property_as_string( iv_attr_name = 'DESCRIPTION'
iv_value = '' ).
Regards,
Masood Imrani S. -
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 -
Read data from assignment block
Hi all,
I'm a bit puzzled for the moment with a development I've done.
In short, I've created 2 views, 1 with a value node context node and 1 with a model node context node type BuilContactPerson.
These 2 views are put on an overview page. On the overview page I have a button 'Save'. In the eh_onsave event I need to read the content of the assignment block from the model node. Anyone an idea how to get this done?
Some background info on what I am doing.
In the BP_CONT_SEARCH component I've enhanced the SearchResult view and put a button "Move" on top of the assignment block. I also made the SearchResult table multi select.
The purpose of this is that you can select multiple contacts, hit the move button and then enter in a new customer where the contacts have to be moved to.
So, the selected contacts are showing correctly in my assignment block and I can read the newly entered customer. The only thing that is left is that I need to loop over the contacts so I can move them. Code to move them is also already done and tested.
Help is much appreciated.
Thanks
TSolved it myself.
DATA:
lr_entity_customer TYPE REF TO IF_BOL_BO_PROPERTY_ACCESS,
lr_entity_contact TYPE REF TO cl_crm_bol_entity,
lr_iter TYPE REF TO CL_bsp_wd_collection_wrapper,
lr_entity type ref to cl_crm_bol_entity.
lr_iter ?= me->typed_context->contacts->get_collection_wrapper( ).
lr_entity ?= lr_iter->IF_BOL_BO_COL~GET_FIRST( ).
lr_entity->get_properties( IMPORTING es_attributes = lv_contactdetails ). -
How to remove the filter in the assignment block.
We have a requirement where we need to clear the custom filter automatically in the assignment block ,when we press the save button.
Can any one help me to solve this issue.
Thank you,
Deepthi.Hi Deepthi,
Get the Assig. Block iterator list and use the standard method DELETE_FILTER (of interface IF_BOL_BO_COL_ITERATOR) in the save event.
Regards,
Shobhit
Maybe you are looking for
-
My dad got this iPhone for me a few months ago as a gift since I had a really awful phone before. The only thing is, I can't seem to upgrade it to the latest software without it telling me it's already updated to iOS 4 or something like that. (I wo
-
If I don't keep closing down Firefox, when I check in the Activity Monitor it sometimes takes up more than a gig of memory, but I'm not doing anything that should take that much. Please can anyone help? It slows my whole system down, giving me that a
-
i have this code to read a text file and put it's contents in a string and then use the string tokenizer to separate it public static void readTF() String s = TextIO.readTextFile(); StringTokenizer sToken = new StringTokenizer(s); javax.swing.JOption
-
Running gnome services without gnome
Does anyone here use some of the gnome services without running Gnome? I would like to get the gnome screensaver and USB autodetection (when I plugin a thumb drive, it should mount and open up rox) to work but I haven't had much luck so far.
-
Delete a Department in Quiz Result Analyzer
Has anyone been able to delete Organizations or Departments from the Quiz Analyzer? I see how to delete a course, but I want to do the same for a Organization/ Department in my account. Just want to clean out all the "test" courses that were uploade