cancel
Showing results for 
Search instead for 
Did you mean: 

How to change field properties of Attributes of BP_COMPNY entity

Former Member
0 Kudos

Hi Guru,

I am trying to use the BADI USMD_ACC_FLD_PROP_CUST_DEP_SET

with this method IF_EX_USMD_ACC_FLD_PROP_CDS~MODIFY_FLD_PROP_ATTR

to make some fields in BP_COMPNY hidden.

Now, the variable IV_ENTITY does not get the entity BP_COMPNY. It could be because this entity is in lower levels of the hierarchy. It is under the BP_MLT_AS, BP_VENGEN.

The method can only read the data up to the level of BP_MLT_AS.

How can I read the field properties of the attributes under BP_COMPNY?

Will it be possible to do it in the same BADI? Can you please tell me how?

Thank you.

Regards,

Onyx

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI ,

If you provide the Filter for the BADI as your required entity type and model it should be triggered for BP_company also

For your case Entity = BP_COMPANY and MODEL = BP . Can you try this

Former Member
0 Kudos

Hi Ramesh,

I already tried but the BADI was not triggered. It looks like the entity BP_COMPNY is not read. The entities higher than it are read. Even the BP_VENGEN entity is not read.

Could there be another way?

Thank you.

Regards,

Onyx

former_member230136
Contributor
0 Kudos

HI Onyx,

Please check the Filter criteria for your BADI. Is it set to Model = 'BP' ?

Depending on what level you are in, IV_ENTITY will read the corresponding entity.

For eg:- if you open the Vendor, When you are inside Company Code Page, and a BUKRS value is selected in the Company Code Dropdown, then the BADI will pick up the value IV_ENTITY as 'BP_COMPNY'.

I have implemented the same BADI & it is reading every entity. BP_VENGEN to BP_COMPNY.

Thanks,