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: 

Problem with searching for 'empty' emails with BAPI_BUPA_SEARCH

Former Member
0 Kudos
100

Dear ABAP'ers.

I have got a small problem with BAPI_BUPA_SEARCH.

I Use this BAPI to search for Business Partners with the Email condition.

I put rhe Email to lv_email variable, it works ok.


    lv_email = ' '

    CALL FUNCTION 'BAPI_BUPA_SEARCH'
      EXPORTING
        email = lv_email
      TABLES
        searchresult = lt_searchresult   <= returns no BuPas
        return       = ls_bapiret2  .

But I need to have a possibility to search for such Business Partners who have got no email address. Unfortunatellu when I pass an empty lv_email to BAPI, it returns no Business Partners whilst such BuPas exist in database.

Is there some possibility to search for those BuPas who have got no email address assigned?

I will be thankful for help.

Regards,

P.

1 ACCEPTED SOLUTION

former_member156446
Active Contributor
0 Kudos
47

Can you query ADR6 table where SMTP_ADDR = space.

and pick the PERSNUMBER or ADDRNUMBER and pick the Patners related to that ..

1 REPLY 1

former_member156446
Active Contributor
0 Kudos
48

Can you query ADR6 table where SMTP_ADDR = space.

and pick the PERSNUMBER or ADDRNUMBER and pick the Patners related to that ..