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 : Screen Enhancement

Former Member
0 Kudos

Hi Friends,

<b>Requirement :</b> Need to add a <b>custom display</b> field(zzind_grp) in Customer Master.

<b>1.</b> TAB : "Marketing" and the same field(zzind_grp)

should be appended to KNA1 which is done.

<b>2.</b> Valid combination of Industry code(BRAN1) and zzind_grp is maintained in a custom table.

<b>3.</b> When user changes the existing Industry code then Industry Group also should be changed and saved in KNA1.

<b>WHAT ALL I TRIED :</b>

I'm using following BADI to achieve the same -

A. CUSTOMER_ADD_DATA_CS

B. CUSTOMER_ADD_DATA

This BADI is not meant to add the custom field in standard tab ( which is my exact requirement).

But using this i'm getting an additional button in the tool bar and when i click on this button i get a set of tab and i'm populating my custom field in one of the tab.

<b>PROBLEM :</b>

When i change the industry code (KNA1-BRAN1:standard field) and then i click on the additional button at tool bar then value for the custom fields getting changed ( based on custom table maintained ) BUT when i change the value of standard field BRAN1 and click on SAVE button Without clicking on additional button created by BADI , changes are not saved to the KNA1 for this custom field.

<b>Note :</b> If i get a exit/BADI by which i can change the general data ( KNA1) at the time of saving then my problem will be solved.<b></b>

4 REPLIES 4

former_member181962
Active Contributor
0 Kudos

<i><b>Note : If i get a exit/BADI by which i can change the general data ( KNA1) at the time of saving then my problem will be solved.</b></i>

CUSTOMER_ADD_DATA is the badi to do that.

Read the NOTE: 577502

https://websmp209.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=577502

Regards,

Ravi

0 Kudos

Thanks Ravi,

CUSTOMER_ADD_DATA is the badi in which a method is there to save the data in ztable not in sap standard table.

also the NOTE: 577502 says the same.

please suggest.

thanks

Sonal

0 Kudos

Hi Sonal,

YOu CAN change the Z Fields in KNA1 table in the CUSTOMER_ADD_DATA badi implementation. I think you have some Z fields appended in the KNA1 table which are needed to be maintained Which is quite possible using the badi.

REgards,

Ravi

0 Kudos

Thanks Ravi,

I Set break point in all the method of BADI CUSTOMER_ADD_DATA but i dont get any method which triggers where i can change the value of Z field appended to KNA1 <b>if i change value of standard field and click on save button without clicking on button which is added by the enhancement .</b>

I'll appreciate if you tell me the method by which i can achieve the same.

Regards

Sonal