Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Customer master: region as a mandatory field

vallamuthu_madheswaran2
Active Contributor
0 Kudos

Hi Friends,

Currently field “REGION” in customer master data is set as optional entry. This setting is controlled at account group level. There is a requirement that in the same account group, for specific countries, this field needs to be a mandatory field. if this can be controlled in BAPI or enhancement .

Thanks with Regards,

Vallamuthu M

1 ACCEPTED SOLUTION

arindam_m
Active Contributor
0 Kudos

Hi,

Check the BADI CUSTOMER_ADD_DATA. The method CHECK_ALL_DATA should help.

Cheers,

Arindam

6 REPLIES 6

GauthamV
Active Contributor
0 Kudos

There are many Exits and Badi available for Customer master data validations.

For example enhancement SAPMF02D or Badi CUSTOMER_ADD_DATA.

Check in debug mode which one suits your requirement and write your logic there.

Regards,

Gautham.

arindam_m
Active Contributor
0 Kudos

Hi,

Check the BADI CUSTOMER_ADD_DATA. The method CHECK_ALL_DATA should help.

Cheers,

Arindam

Former Member
0 Kudos

Hi Vallamuthu,

Please check this user exit EXIT_SAPMF02D_001.

BR.

former_member188827
Active Contributor
0 Kudos

Please use this path:

SPRO->Logistics General->Business Partner->Customers->Control->Define Transaction Dependent Screen Layout->Create Customer(Centrally)->Addresses

and then make your desired changes.

Choose other appropriate transaction types where the "region" field should be mandatory and repeat the process.

Regards

0 Kudos

Hi Netweaver developer,

Thanks for your reply.

is there any option to restrict region based on the account group.

Regards,

Vallamuthu M

0 Kudos

you can restrict region using customer exit "SAPMF02D". you can maintain the mapping of account group and regions in a z- table and then query this table in this exit to determine that region entered is correct.

Regards