Skip to Content
avatar image
Former Member

How to change field properties of Attributes of BP_COMPNY entity

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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,