cancel
Showing results for 
Search instead for 
Did you mean: 

Attachments assignment block within IC Web Client Interaction Record

carlo_avversari
Explorer
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member201179
Participant
0 Kudos

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

carlo_avversari
Explorer
0 Kudos

Yes Gert,

your help and advices helped me a lot.

Thanks.

Regards,

Carlo.

0 Kudos

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

Former Member
0 Kudos

Hi Gert

We are also having issues with this development. Can you please guide us on how to add the Attachment Assignment Block to the Interaction Record screen.

Thanks, Sai

former_member601051
Participant
0 Kudos

Dear Carlo,

I have the similar requirement

I  have followed the same steps what Gert Said but i am unable to achieve the requirement

Can u please guide us with your valuable inputs..

Waiting for your valuable inputs

Thanks in advance

Regards,

Vinutha

former_member601051
Participant
0 Kudos

Hi,

Sai

Did you Achieved  the requirement If so, Please guide me on how to add the the Attachment Assignment Block to the Interaction Record screen. I have the similar requirement ..

Waiting for the Valuable inputs.

Thanks in advance

Regards,

Vinutha

former_member601051
Participant
0 Kudos

Hi,

Gert I have similar requirement please guid me how to achieve ?

how to create a View area, tab links.

Thanks in advance.

Regards,

Vinutha

Answers (1)

Answers (1)

former_member188843
Participant
0 Kudos

hello ...

thread is maked as solved...but how u fixed the button issue?