Skip to Content
0
Former Member
Jul 10, 2006 at 12:07 PM

CALL FUNCTION 'BAPI_BUPA_SEARCH' via Email

88 Views

Team,

I want to search Business Partners via their emails (from an excel sheet). I am getting error Wrong Data Type. Please let me know what is Data type to be used for Emails to pass to the fm.

Thanks

*******************

DATA: "PARTNER TYPE BU_PARTNER,

EMAIL TYPE BAPIADSMTP OCCURS 1 WITH HEADER LINE,

EMAILX TYPE BAPIADSMTX OCCURS 1 WITH HEADER LINE,

MESSAGES TYPE BAPIRET2 OCCURS 1 WITH HEADER LINE,

excel_email type BAPIBUS1006_COMM-E_MAIL,

dsearchresults type BAPIBUS1006_BP_ADDR occurs 1 with header line.

parameters: partner type bu_partner.

*PARTNER = '12345'.

TABLES: BUT000, BUT020, ADR6.

*search for BP via EMAIL address

excel_email = 'sapinfo@gmail.com'.

CALL FUNCTION 'BAPI_BUPA_SEARCH'

EXPORTING

  • TELEPHONE =

EMAIL = excel_email

  • URL =

  • ADDRESSDATA =

  • CENTRALDATA =

  • BUSINESSPARTNERROLE =

  • COUNTRY_FOR_TELEPHONE =

TABLES

SEARCHRESULT = dsearchresults

  • RETURN =

.