SAP for Retail Discussions
Join conversations about personalization, omnichannel strategies, and operational excellence in retail using SAP for Retail software.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to make Attribute 3 (KNA1/KATR3) a mandatory field for a specific account group

Former Member
0 Kudos

How to make Attribute 3 (KNA1/KATR3) in customer master a mandatory field for a specific account group

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi everyone, Issue resolved

BADI: CUSTOMER_ADD_DATA


Method: CHECK_ALL_DATA


While saving, this method will be hit. We need to check for KNA1-KTOKD = ‘XXXX’, if yes, then check if KNA1-KATR3 is blank.

 

If it is blank, then display the error message ‘Attribute 3 has to be maintained for XXXX in Additional Data’

View solution in original post

4 REPLIES 4

former_member182609
Active Contributor
0 Kudos

I am not able to find to make Attribute 3 filed mandatory in configuration.You can do this user exit ,Insert logic based on account group if there is no entry in Attribute 3 field then through error  'Attribute 3 field mandatory ' .Or check with security team if they can do using authorisation roles.

amit_tunara
Active Contributor
0 Kudos

Hello Jebaraj,

Try to change the field status for required account groups.

Use following configuration.

SPRO: Financial Accounting (New) -> Accounts Receivable and Accounts Payable -> Customer Accounts -> Master Data -> Preparation for Creating Customer Master Data -> Define Account Groups with Screen Layout (Customers).

Regards,

Amit

0 Kudos

Hi Amit,

I checked there (OBD2) before posting here...Attribute field is not there...we did it through code change

Former Member
0 Kudos

Hi everyone, Issue resolved

BADI: CUSTOMER_ADD_DATA


Method: CHECK_ALL_DATA


While saving, this method will be hit. We need to check for KNA1-KTOKD = ‘XXXX’, if yes, then check if KNA1-KATR3 is blank.

 

If it is blank, then display the error message ‘Attribute 3 has to be maintained for XXXX in Additional Data’