cancel
Showing results for 
Search instead for 
Did you mean: 

GET_A Method Question

former_member193352
Active Contributor
0 Kudos

Hi Experts,

I have a requirement where I need to hide/display a field based on a certain condition at runtime. I am trying to use get_a method available for context node attributes in CRM 7.0. But unfortunately, its not stopping there at the breakpoint.

If anyone has ever used get_a method, please share your experience how did you use get_a method.

Thanks

Vishal

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Vishal,

You need to set the attribute to be Read-Only(hidden) or Editable in Get_A method may be by calling appropriate

SET_ATTRIBUTE method if present already, before you set the field type.

Hope this helps!

Best Regards,

Shanthala Kudva.

former_member193352
Active Contributor
0 Kudos

Thanks for the pointer Shanthala..

But I am still confused how to implement this. Could you share some code if you have.

Thanks in advance

Vishal

Former Member
0 Kudos

Hi Vishal,

A-Getter is meant to be used for showing or hiding field based on Switch ID. If you see the return parameter, it returns also switch ID. Using A-Getter to showing and hiding field not based on Switch ID is not recommended.

A-Getter is already exists in CRM 7.0 but it is not used. It is used for the Enhancement Package release of CRM.

GET_A is mostly used by SAP developer to switch(show/hide) a field based on which Switch active or inactive. The switch can be activated or deactivated by its Business Function.

Please revert back if you have any further questions.

Sree.

former_member193352
Active Contributor
0 Kudos

Hi Sree,

Thanks for the explanation. I am aware of the functionality of Switch ID but unfortunately, its not taking me to the get_a method in the debug mode where I can dynamically try to show/hide a field based on switch id.

Is there something I need to do so that this get_a method gets called.

Thanks

Vishal

Former Member
0 Kudos

Hi Vishal ,

As explained earlier the Get_A method is used for SAP Enhancement packages and I am not sure if you can add anything in that method.

For dynamic availability of a field you can change screen configuration depending on the requirement.

You can use DO_CONFIG_DETERMINATION method to call the configuration depending upon the condition.

[;

You can also see the explanation given in the above link.

Thanks,

Sree.