Skip to Content

How to change field properties of Attributes of BP_COMPNY entity

Oct 26, 2017 at 02:30 AM


avatar image

Hi Guru,

I am trying to use the BADI USMD_ACC_FLD_PROP_CUST_DEP_SET


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.



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

ramesh gubba Oct 26, 2017 at 04:18 AM

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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.




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.