on 12-15-2017 5:46 PM
Hello,
I'm trying to add the Attachments block to Interaction Record component.
I've followed the blog How to integrate attachments to Interaction Records from gopal.yuvaraj and I can successfully see the new block in my screen. However the buttons are not enabled to create any document.
I've also check that component GS_CM is already enhanced. There is an implementation in view GS_CM/AddDoc for event handler EH_ONATTACH_BTN (validation of file type, tax number, dates...).
Could you guys help me solve this issue? What can be the reason for this behavior?
Thank you!
Diego
Hello Diego,
If you use the mainwindow, then the view should be GS_CM/DocList by default I guess, right?
I debugged in standard 'sales order' creation view for the 'attachments' assignment block.
Method CL_GS_CM_DOCLIST_IMPL->IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS (maybe in your case, the class will be a different one?) should be something : In CL_GS_CM_DOCLIST_IMPL->fill_buttons, ls_button-enabled is set according to different conditions. Thus please debug and see how the logics affects.
Best Regards, Corrine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Corrine,
I've debbuged the GET_BUTTONS method and in the GET_DISPLAY_MODE( ) method I'm getting abap_true. That's why my CMBO is not bound.
However, in my component ZICCMP_ATTACH (that has a usage of GS_CM) the WD_USAGE_INITIALIZE of my component controller has the code to bind my CMBO node (as described in the step 8 of the blog I've mentioned before).
I've also realized that my ON_NEW_FOCUS implementation (step 6 of the blog) is not getting triggered.
Do you have any idea what is happening?
Regards, Diego.
Hello Diego,
Best Regards, Corrine
Hi,
I have checked ICCMP_BT_INR WD_USAGE_INITILAIZATION method and found that before binding itself, there is no entity bound for both the context nodes BTadminH and BTOrder.
Regards
Vikranth
User | Count |
---|---|
8 | |
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.