Skip to Content
0

How to hide fields in MDG based on BP Group

Jul 19, 2017 at 09:17 PM

128

avatar image

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).

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

1 Answer

Rohit Singh Jul 20, 2017 at 02:55 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded