on 04-10-2008 10:42 AM
Hi,
I would like to add/insert the "Attachments" assignment block within the Interaction Record page. I mean the Attachments AB we have for example within the OVPs or in the Opportunity page.
Have anyone of you experienced/implemented yet something like that?
Thanks.
Regards,
Carlo.
Hi Carlo,
Yes this is possible, but it will require some work !
The Attachments assignment block is a re-use component. These re-use components can be integrated into all business transaction components, and as such also in the interaction record. You need to carefully check how the component GS_CM is integrated into component BT111H_OPPT.
1. Define your own enhancement for the interaction record component ICCMP_BT_INR
2. Definition of component usage for GS_CM in the runtime repository editor of the enhanced ICCMP_BT_INR component:
Component Usage: CUGSCM (compare with the component usage in BT111H_OPPT)
3. Enhance the component controller class CL_ICCMP_BT_BSPWDCOMPONE6_IMPL, method WD_USAGE_INITIALIZE
This method binds the context node(s) of the re-use component to the corresponding context node(s) of the main component ICCMP_BT_INR
Sometimes this is easy and binding can happen between 2 BTADMINH nodes for example. In case of the Attachment assignment block a custom controller is used, which makes it more complicated.
Example for BT111H_OPPT
Attachments
WHEN 'CUGSCM' OR 'CUGSCM_DET'.
CALL METHOD iv_usage->bind_context_node
EXPORTING
iv_controller_type = cl_bsp_wd_controller=>co_type_custom
iv_name = 'BT111H_OPPT/CUGSCMCuCo'
iv_target_node_name = 'CMBO'
iv_node_2_bind = 'CMBUSOBJ'.
IF gv_ppm_flag = abap_true.
CALL METHOD iv_usage->bind_context_node
EXPORTING
iv_controller_type = cl_bsp_wd_controller=>co_type_custom
iv_name = 'BT111H_OPPT/CUGSCMCuCo'
iv_target_node_name = 'ATTRIBUTES'
iv_node_2_bind = 'ATTRIBUTES'.
ENDIF.
4. Create custom controller in the enhanced ICCMP_BT_INR component, similar to BT111H_OPPT/CUGSCMCuCo.
You can re-use the opportunity custom controller, and just copy the code above into the WD_USAGE_INITIALIZE method of the interaction record component.
However, to have more clean code it would be better to define your own custom controller in the interaction record component.
5. Enhance the interaction record viewset to display the newly linked re-use component.
ICCMP_BT_INR/InrViewSet. You will probabily need to create a new viewarea and tablinks, and navigational links in the runtime repository.
Hope this helps.
Regards,
Gert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gert, All,
Perhaps someone can help me out on this. I found out and implemebnted all the required changes, but it does not make the solution comlpete.
Implementing your solution to the GS_CM component in order to have
attachments visible in the Interaction Record, only displays the list of attachments, bit not the buttosn associated with the view for creating links.
I cannot get this to work. I found the source of the error, but don't know how to solve it.
After the buttosn get picked up
in CL_CHTMLB_CONFIG_UTILITY=>GET_BUTTONS_FROM_CONTROLLER( controller )
theres is an erroor becouse the buttons are not passed back to a parent controller ( you can seet his in Class CL_THTMLB_AREAFRAMESETTER IF_BSP_ELEMENT method DO_AT_BEGINNING. SAP looks for an AreaFramesetter Parent Class or a TabContainer but can find neither of the 2 and so the buttosn are not picked up.
Int he method as described above the following is done:
LV_AREAFRAME ?= GET_CLASS_NAMED_PARENT( 'CL_THTMLB_AREAFRAME' ).
or
LV_TAB_CONTAINER ?= GET_CLASS_NAMED_PARENT( 'CL_THTMLB_TAB_CONTAINER' ).
But both these options fail !
Do I need a specific View / Viewset / ViewArea set up for this to pass ?
Can someone assist on this ? P L E A S E ?
Kr
Gino Verhulst
hello ...
thread is maked as solved...but how u fixed the button issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.