cancel
Showing results for 
Search instead for 
Did you mean: 

retreive email id during BP creation, before saving BP

Former Member
0 Kudos

hi,

Is there any FM by which I can retrieve the email address entered in the "BP -> create Person" screen in my badi, before the BP is saved ???

I have retreived the role using CRM0_BUPA_ISDAT_PARAMETERS_GET. Similarly, i am looking for an FM that gives me the email Id.

Please help.

Thanks,

Shantanu.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can use below function Modules;

BUPA_PARTNER_CONTACT_SEARCH :Searches business partners for telephone, E-Mail, address.

BAPI_BUPA_SEARCH : Search Business Partner for Telephone, E-Mail, Address.

*BAPI_BUPA_CENTRAL_GETDETAIL *Read Central Data

Regards,

Amol Tambe

SAP CRM Technical Consultant.

Former Member
0 Kudos

hi amol,

I am not looking for BP , when Email ID is given.

Here, i want to retrieve email id from the BP screen, where the user enters a new email id

Former Member
0 Kudos

Create a field string and assign "(SAPLSZA11)SZA11_0100-SMTP_ADDR" to that field string and now you will get email address field value in that field string.

i donno which BADI you are using to get the detail before saving the business partner. but the way i mentioned in the above will capture the screen field value.

let me know if not clear.

SAPLSZA11 is the main program

SZA11_0100-SMTP_addr is the screen field.

regards

Muthu

Former Member
0 Kudos

the field is not available in the BADI. how do i include the main program in my badi?

Former Member
0 Kudos

Example

field-symbols <fs> type any.

assign '(SAPLSZA11)SZA11_0100-SMTP_ADDR' to <fs>.

here <FS> will have email address..

if this not helps you. let me know your code and BADI name.

Regards

Muthu

Former Member
0 Kudos

no, this does not help.

There are no syntax errors , but the field is empty, it does not contain the email ID.

I am using classic BADI address_search.

i have mailed the code to ur gmail id, because theres some problem uplodaing the code here .

Thanks , shan.