10-23-2006 10:39 AM
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>
10-23-2006 10:46 AM
<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
10-24-2006 10:26 AM
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
10-24-2006 10:31 AM
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
10-25-2006 5:41 AM
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