Skip to Content
0

How to change field properties of Attributes of BP_COMPNY entity

Oct 26, 2017 at 02:30 AM

101

avatar image
Former Member

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

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

1 Answer

avatar image
Former Member Oct 26, 2017 at 04:18 AM
0

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
Former Member

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

0
Former Member
Former Member

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,

0