cancel
Showing results for 
Search instead for 
Did you mean: 

FM to maintain email id of contact person for a customer

Former Member
0 Kudos

Hi All,

I need to create a contact person for a customer master using a FM.

I am able to create a contact person and maintain his last name , first name and telephone using FM SD_CUSTOMER_MAINTAIN_ALL.But I am not able to maintain email id of contact person.Is there any separate FM for this purpose.If anyone has any info regarding this pls help me.

Regards,

Raghu.

Accepted Solutions (1)

Accepted Solutions (1)

former_member188685
Active Contributor
0 Kudos

use the Function BAPI_ADDRESSCONTPART_CHANGE, here you spply all the details to the table parameter BAPIADSMTP to maintain the email address

Former Member
0 Kudos

Hi Vijay,

Thank you.

Former Member
0 Kudos

Does anybody know in which table are the email addresses for contact person maintained?

former_member184551
Contributor
0 Kudos

Use these fm's in the following order

ADDR_PERS_COMP_COMM_GET

loop at <resultant_table>
 <resultant_table>-updateflag = 'U'
 <resultant_table>-smtp_addr = new email
  modify <resultant_table>.
endloop

ADDR_PERS_COMP_COMM_MAINTAIN

ADDR_MEMORY_SAVE

This works 100 %

Answers (1)

Answers (1)

former_member184551
Contributor
0 Kudos

Hi Raghu

Can you please tell me how you created a contact person for customer,

I am not able to find any fm or bapi.

The fm that you mentioned, can you please send a hint code snippet as to how to use it ti create a contact? Does it also create a customer by default? Because if it does then that's not what we want.

Help will be appreicated.

Thanks