cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CRM WebUI Development

Former Member
0 Kudos

Hello,

I want to find where is the button "Remove basket" (Screenshot) in the table in my code. This table itself is in GS_CM/DocList View as well as the handler of this button. But could you tell me the name of structure/component of this table, how can I find a place in coding to deactivate this button.

Thanks!

Best Regards

Vladislav

Accepted Solutions (1)

Accepted Solutions (1)

kutjohn
Active Participant
0 Kudos

Hi Vladislav,

You can deactivate the button in the GET_OCA_T_TABLE method of your context node class of the node DOCLIST.

See the screen captures below:

Regards JP

Answers (3)

Answers (3)

former_member211707
Active Participant
0 Kudos

Hello,

you can find structure of view context node from genil_model_browser. we need to get component set from run-time repository first as shown below:

Put CM as component set in genil_model_browser and find structure of context node base entity CMDocument ( you can find base entity from context node class attribute BAS_ENTITY_NAME ). Structure is CRMT_CMIC_DOC_ATTR as shown below:-

Thanks,

Amit

samantak_chatterjee
Active Contributor
0 Kudos

Hello Vladislav,

The Buttons which you want to remove or add are added to the OCA using the method : GET_OCA_T_TABLE. This is present in the context node class : CL_GS_CM_DOCLIST_CN01. If you want to implement any OCA functionality in a Table View you can add buttons by implementation of this method.

I have added a screenshot for your further reference.

Hope this will help. Let me know if you need any further information.

Many thanks in advance.

Best Regards,

Samantak.

Former Member
0 Kudos

Hi Vladislav,

this is a so called One-Click-Action (OCA) - see attribute THTMLB_OCA.

I'd suggest so set an external breakpoint in method GET_THTMLB_OCA: although the method implementation is empty, it could serve as a starting point for further debugging.

Best regards,

Christian.

JerryWang
Advisor
Advisor
0 Kudos

Hello Vladislav,

You can also disable the full edit function on the attachment. If you would like to know technical detail about GS_CM, you can find it in my blog.

"dynamically control the enablement of attachment maintenance"

Best regards,

Jerry