cancel
Showing results for 
Search instead for 
Did you mean: 

How to read BP header data in standardaddress context node

Former Member
0 Kudos

Hi,

we have the next requirement in CRM 7.0 WebUI:

In view BP_ADDR/StandardAddress the field STRUCT.TELEPHONETEL should only be an input field if the authorization group of the business partner has a certain value. So I tried to solve this in the I-getter method for this STRUCT.TELEPHONETEL field by reading the authorization group and change the rv_disabled value.

How should I read the authorization group? This is field STRUCT.AUTHORIZATIONGROUP and belongs to the HEADER node.

Can you please supply me an example code for this?

Thanks in advance!!

Kind regards,

Roy Willems

Accepted Solutions (1)

Accepted Solutions (1)

former_member192716
Contributor
0 Kudos

Hi,

In the get_i method use the below code to get BuilHeader entity.


Data: lv_entity type ref to cl_crm_bol_entity.

lv_entity ?= collection_wrapper->current( ).

lv_entity ?= lv_entity->get_parent( ).

if lv_entity is not bound.
   lv_authgrp =   lv_entity->get_property_as_string( iv_attr_name = 'AUTHORIZATIONGROUP' ).
endif.

Regards,

Arun

Edited by: Arun Kumar on Aug 9, 2010 12:58 PM

Answers (0)