Skip to Content

How to hide fields in MDG based on BP Group

We are using S/4 Hana 1610 with MDG 9.0.

In MDG, how to hide/show fields or make the field as mandatory, based on BP Group (like we do for Customer/Vendor Account Groups in ECC).

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 20, 2017 at 02:55 AM

    Hi Vamsi,

    Implement the BAdI: USMD_ACC_FLD_PROP_CUST_DEP_SET.

    Apply the Filter : MODEL as BP

    Implement the Method : IF_EX_USMD_ACC_FLD_PROP_CDS~MODIFY_FLD_PROP_ATTR

    Provide the check for your Entity, Read the IT_DATA for the Account Group Value ( or use the API) and then based on that change the CT_FLD_PROP for the required field.

    You can hide it, make it grey out or required/optional field.

    This above process will make your fields hidden for the CR process.

    To make the field hidden while displaying a Vendor/Customer -> Use the Feeder Class & provide a Post-exit and hide the necessary field.

    -Rohit

    Add comment
    10|10000 characters needed characters exceeded