New assignment block
Hi,
I'm trying to create a new assignment block on an Overview page. Here are the steps that I followed:
1) BSP_WD_COMPOMENT->Navigate to component->Create view set->Create view(Table view type for a Value node with a Z table).
2) Runtime Repository->Added the view set Create above.
3)Runtime Repository->Add the View created into the viewset.
4)Runtime Repository->Add Viewset into the Overview page viewset.
Now, I was hoping to the see the above created view in the available assignment blocks list. But, I do not see it. Please guide me as to how will I be able to add the assignment block.
Thanks
Hello Sreesanth,
Please check out the following [thread|Creating an overview page with content; where I described the steps necessary to add new assignment block to the overview page.
I hope it helps.
Best Regards,
Yevgen
Similar Messages
-
Hello Experts,
I need to add/create a new assignment block 'Strategy Plan ' similar to existing assignment block 'Attachment'
in Account screen.
I got the document which suggest creation of new assignment block by creating Set Type and attribute.
But can't figure out how to make that assignment block similar to existing one 'Attachment'.
Please help me how to proceed .
Thanks in Advance,
RamHi Arun,
I did exactly how you said.
Opened the Component BP_HEAD in Enhancement set 'Z_ENHANCE'.
Added the component usage 'ZStrategy' their inbound plugs and outbound plugs
similar to one used by Attachment assignment block.
Added the View 'ZStrategy.MainWindow' under viewarea 'OverviewPage'
of ViewSet 'BP_HEAD/BPHEADOverveiw'.
Also Initialized the component usage in WD_USAGE_INITIALIZE of component controller.
But When I see the assignment block in WebUI.
I see simple window with no toolbars in it. Also It disapears when expanded.
I gives error like "CX_BSP_WD_INCORRECT_IMPLEMENT - Define component usage 'ZStrategy'
CX_BSP_WD_INCORRECT_IMPLEMENT - Define component usage 'ZPlanStrategy' "
I think I missed some steps or may be my enhancement set is not loading.
Help me out.
Thanks and Regards,
Ram -
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 -
Hello everyone,
I am new in the topic SAP CRM Web Client and I have to create a new assignment block for the accounts site.
In this assignment block you should see the last ten orders of the account. I already have the code to get the data from the tables. But I have no idea how to show this in a new assignment block. Can anybody help me, please? Or do you know a good document, where the process is described?
I have the book SAP CRM Web Client Customizing and Development. So I've understood the basics. But it was not really helpful for my project.
So help me, please.
Thanks and regards,
StefanieStefanie,
Assignment block is nothing but a view. So you need to create one view with view type as Table view. Columns of the table would be the value attributes of the view. Write the population logic in ON_NEW_FOCUS method of the CNxx class associated with the view you created.
You can refer following code to get the TABLE View populated -->
data: lr_wrapper type ref to cl_bsp_wd_collection_wrapper, " BP collection wrapper
lr_entity type ref to if_bol_bo_property_access, " wrapper entity
lv_bp_nr type string, " BP (business partner) number as string
lv_partner type bu_partner, " BP number in correct format (for RFC call)
ls_smof_erpsh type smof_erpsh, " structure of the RFC destination
lr_col type ref to if_bol_bo_col, " collection to fill node ZBP_FAVS
lr_valuenode type ref to cl_bsp_wd_value_node, " value nodes to fill a collection
lr_tabline type ref to zbp_favs_s, " table line reference to fill value node
lt_favs type zbp_favs_tab, " local table with data from ERP-table ZBP_FAVS
ls_favs type zbp_favs_s. " local structure of table above
get partner entity and partner number
try.
lr_entity ?= focus_bo.
catch cx_sy_move_cast_error.
return.
endtry.
lv_bp_nr = lr_entity->get_property_as_string( 'BP_NUMBER' ).
if lv_bp_nr is initial. " no partner...
return. "...return without selection
endif.
get RFC destination of ERP system, if needed
if ZL_ZBP_FAVS_ZBPFAVORITES_IMPL=>gv_destination is initial.
call function 'CRM_GET_ERP_SYSTEM'
exporting
iv_rfcdest =
iv_siteid =
importing
es_smof_erpsh = ls_smof_erpsh.
if sy-subrc = 0 and ls_smof_erpsh-rfcdest is not initial.
ZL_ZBP_CUCL_ZCURRENCYCLAU_IMPL=>gv_destination = ls_smof_erpsh-rfcdest.
endif.
endif.
get favorite things for partner
lv_partner = lv_bp_nr. " call RFC function in ERP system
call function 'Z_CRM_GET_FAVS_FOR_BP'
destination ZL_ZBP_CUCL_ZCURRENCYCLAU_IMPL=>gv_destination
exporting
iv_partner = lv_partner
importing
et_favs = lt_favs
exceptions
others = 4.
if sy-subrc <> 0.
" should never happen
endif.
create collection object to transfer data
create object lr_col
type
cl_crm_bol_bo_col.
loop through all found data...
loop at lt_favs into ls_favs.
"...create line object
create data lr_tabline.
"...create value object with current line for colleciton
create object lr_valuenode
exporting
iv_data_ref = lr_tabline.
"...set current line data
lr_valuenode->set_properties( ls_favs ).
"...add current line to collection
lr_col->add( lr_valuenode ).
endloop.
set collection
me->set_collection( lr_col ). -
Better approach for adding a new assignment block in a standard component
Hi
I need to add a new assignment block in the standard component bt116h_srvo. There are two approaches :
1. create a new view in the component bt116h_srvo
2. create a custom component and embed it into bt116h_srvo using component usage.
Please tell which one is a better approach and why ??
Thanks,
Swati.Thanks for the quick reply lakshmi. However I am sure there is no possibility of reuse . My main concern here is tat will patch upgradation in future would have any impact on the views added directly in standard component or any other risk in adding view directly.
Rgds,
Swati -
Adding new assignment block in the sales order component
Hi ,
In sales order , qty filed is available at line item general details level .now my requirment, the qty field has to display in the new assinment block. i am thinking to create new view and context node in the same component and ii will add this view to SOItemOV page . Please guide me this approach is correct or not.Dear Venky,
Refer to this [WIKI|http://wiki.sdn.sap.com/wiki/display/CRM/Howtodisplayaz-tableinanassignmentblock] for help.
Thanks
Vishal -
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,
RadhikaHi 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 -
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.
Seemanot received answer from any one, thats why am closing this thread
-
Adding Assignment Block to Sales Order Screen
Hi
We enhanced the SAP GUI CRMD_ORDER screen to have a new tab and added custom fields to it. This was done using easy enhancement workbench.
Now we want to do the same thing to the Sales Order Screen in Webclient UI.
I have seen a lot of discussions in the forums, but for a beginner like me it is confusing.
Can someone please guide me on how to do it?
I have set up webclient UI and everything is working fine but I am not aware on how to create new assignment blockand add fields to it since the building block does not have it listed.
Any help would be appreciated.
Regards
JimmyHi Stephen
What we did in EEWB was we created a new tab on Sales Order Item Details called 'Customer Fields' and added some new custom fields there.
We want to change our Webclient UI Sales Order Item Details screen (BT131I_SLS) to add a new assignment block (Customer Fields) and insert the custom fields in it.
I am trying to figure out how to do it. I saw the link to the blog that you had sent but before I can add new fields I have to figure out how to add a new assignment block on Sales Order Item details.
Like when we click on item on sales order screen we get assignment blocks shipping,shipping transactions,Billing.......I want to create a new one called 'Customer Fields' and some custom fields there.
Your help is appreciated.
Regards -
Create New Info Block in ECC for CRM Customer Fact Sheet
Hi,
we have a requirement to add a new info block in Customer Fact Sheet to display Equipment master from ECC. the info block required somehow is not listed in standard ECC info block.
is there any way i can configure the info block in ECC so i can call it from CRM? or do i need to develop it using ABAP in ECC?
thanks in advanceWhat I really really need is an example of how a new Assignment block can be created so that it appears in the PDF fact sheet.
I'm aware that the interface within the Smartform will need to be changed, along with the coding to process any new data being parsed in. The copied class, now called ZCL_UIU_PRN_ACCOUNT has a method called Collect_data which populates the itabs and forwards to the appropriate Smartform. I'm currently looking through this code to see what needs to be done.
The collect_data method loops through the data in the CRMT_BSP_PRINT table and retrieves the data structure and class, and I assume it calls them, but I have no idea what these classes have in common as I can't see common theme with them.
The data sources are:
CRMT_BSP_ACTIVITY2_BP
COMT_BSP_BP_ADDRESS
CRMT_BSP_CONTACT_OBJ_BP
CRMT_BSP_INT_HISTORY_BP
CRMT_BSP_OPPORTUNITY_BP
CRMT_BSP_ACC_R3_FACT_SHEET
CRMT_BSP_ACC_RELATION
CRMT_BSP_SALES_AREA_BP
and their associated class/interface is:
CL_BSP_ACC_ACCMOD_ACTIVITY
CL_BSP_BP_ACCMOD_ADDR_MIX
CL_BSP_ACC_ACCMOD_CONTACT
CL_BSP_ACC_ACCMOD_INT_HISTORY
CL_BSP_ACC_ACCMOD_OPPORTUNITY
CL_BSP_ACC_ACCMOD_PRN_R3DATA
CL_BSP_ACC_ACCMOD_RELATIONS
CL_BSP_ACC_ACCMOD_SALES_AREA
It would look like a lot of these classes are based on CL_BSP_*ACCMOD classes, but that's guesswork on my part.
I am unhappy that I seem to be pioneering here as there's no guide/help on exactly what needs to be done to add new AB's/sections to the PDF fact sheet. I find that strange as most areas are well documented, except this area as far as I know.
Sure, there is a note which identifies some of the objects that need to be changed, but misses out a vital table, but there are no guides. There are many people who produce videos on how to achieve the easier stuff, like adding fields to AB's via the UI configurator, but there seems to nothing in the area of extending the PDF fact sheet.
Jas
Edited by: Jason Stratham on Apr 29, 2010 10:22 AM -
Handle change history assignment block
Hi Experts,
i need your help,
i will explain the requirement,
BSP Component : BT126H_CALL.
I have overage page validate expertise ,In overage page contains general data assignment block
In general data assignment block when i change status field , the change history assignment block is updated.
In same overview page i add two new assignment block i need to track data of new assignment block In chage history assignment block.
Could please explain step by step how create new object and how to use the object in my component .
Thank and best regards
BrahmaiahHi experts,
Any pointers on how to create a change history for any component, atleast?
Thanks,
Praveen -
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 view Knowledge Article Assignment Block in Service Confirmation
Hi dudes,
CRM 7.0 introduces Knowledge Articles, which can be used in Service Orders, Repairs, etc, they have an assignment block for this purpose. Unfortunately, it is not available for Service Confirmations.
I'm not sure if it is possible to reuse the asignment block in this case. I found an interesting WIKI entry which tells how to display a z table in an assignment block. There is also information about how to assing a view to a component on building blocks config guide C04.
So I decided to follow those indications, and try to reuse it. It looked (apparently) easy (at least with my poor knowledge, since I'm new on this).
From the service order (BT116H_SRVO), I wrote down the technical data of the KA assignment block:
COMPONENT: GSDOCFLOW
VIEW: HdrDocFlowEF
I want to add it to the service confirmation (BT117H_SRVC). So I went to the Runtime Repository Editor:
- Added View in ViewSet BT117H_SRVC/OVViewSet with component: GSDOCFLOW and View: HdrDocFlowEF.
- Saved.
I went back to the Component Structure Browser, View BT117H_SRVC/OVViewSet, Configuration tab, but the new assignment block is not available!!!
The C04 guide creates a component usage before adding the view, which I don´t know if it is needed in this case. Checking BT116H_SRVO, there is a component usage for KA!!! but I tried to replicate it and I got to the same point.
Maybe it is not as simple as I thought. I would really appreciate any advice on this issue
At least, please let me know if it is feasible.
thanks a lot!
Pablo
Edited by: Pablo Rodríguez Mateos on Sep 8, 2009 9:12 AM
Edited by: Pablo Rodríguez Mateos on Sep 8, 2009 11:24 AMThank you Enrique. I'll keep investigating. As soon as I reach a conclusion I'll let you know. I give you 2 points for the effort.
Regards.
Pablo -
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. -
Change History assignment block for Listings
Hi,
I need to create a new assignment block "Change history" for certain fields of Product listings, like Product ID, Validity from and validity to.
The component is LST_PPRITEM and change history for Products and Product categories.
Please let me know how I can achieve this.
Thanks,
PraveenHi experts,
Any pointers on how to create a change history for any component, atleast?
Thanks,
Praveen
Maybe you are looking for
-
How can I get rid of multiple pictures at the same time?
how can I get rid of multiple pictures at the same time?
-
Crystal Reports 2008 - help with formula to retrieve lastfullmonth
Hi, I'm new to this forum. First post. I have a SQL query where :month(CAST(a.LAST_MOD_DT / 86400 AS datetime) + CAST('01/ 01/1970' AS datetime)) = (MONTH(getdate())- 1) I need to create a CR formula that will pull in data from last month as this r
-
pls help
-
Cannot install "photo gallery for DW cs6 " error cannot update insertbar.xml " is there a fix
does any body have any clue as to why this error is happening ?
-
I've created a horizontal menubar with the Spry features. In FireFox, the submenu bars drop into the correct place and function properly. Pull up the page in IE 7 and the submenus appear off to the right of where I want them to be. Here's a link to t