<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Function Module to get the BP Details in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-bp-details/m-p/2455952#M550720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing a FM by taking the firstname and last name and company name I have to get the BP data such as prefix, contact type, firstname, lastname, title, accounname and address with phone number, email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following code but I am unable to get the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_but  OCCURS 0,&lt;/P&gt;&lt;P&gt;         prefix LIKE  but000-prefix1,&lt;/P&gt;&lt;P&gt;         contacttype LIKE but000-bpkind,&lt;/P&gt;&lt;P&gt;         firstname LIKE   but000-name_first,&lt;/P&gt;&lt;P&gt;         lastname LIKE    but000-name_last,&lt;/P&gt;&lt;P&gt;         titl LIKE       but000-title_let,&lt;/P&gt;&lt;P&gt;         accountname LIKE but000-name_org1,&lt;/P&gt;&lt;P&gt;         langu LIKE but000-langu_corr,&lt;/P&gt;&lt;P&gt;         phone LIKE adrc-tel_number,&lt;/P&gt;&lt;P&gt;         extens LIKE adrc-tel_extens,&lt;/P&gt;&lt;P&gt;         alterphone LIKE adrc-tel_number,&lt;/P&gt;&lt;P&gt;         alterextens LIKE adrc-tel_extens,&lt;/P&gt;&lt;P&gt;         addr1 LIKE adrc-str_suppl1,&lt;/P&gt;&lt;P&gt;         addr2 LIKE adrc-str_suppl1,&lt;/P&gt;&lt;P&gt;         addr3 LIKE adrc-str_suppl3,&lt;/P&gt;&lt;P&gt;         email LIKE adr6-smtp_addr,&lt;/P&gt;&lt;P&gt;         city LIKE  adrc-city1,&lt;/P&gt;&lt;P&gt;         stat LIKE  adrc-region,&lt;/P&gt;&lt;P&gt;         postalcode LIKE adrc-post_code1,&lt;/P&gt;&lt;P&gt;         countr LIKE adrc-country.&lt;/P&gt;&lt;P&gt;  DATA : END OF it_but.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT prefix1  bpkind  name_first  name_last  title_let  name_org1   langu_corr   addrcomm INTO&lt;/P&gt;&lt;P&gt;         (it_but-prefix,it_but-contacttype,it_but-firstname,it_but-lastname,&lt;/P&gt;&lt;P&gt;           it_but-title,it_but-accountname,it_but-primarylanguage,addnum )&lt;/P&gt;&lt;P&gt;           FROM but000 WHERE name_first = firstname AND name_last = lastname AND&lt;/P&gt;&lt;P&gt;           name_org1 = company.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT  tel_number tel_extens fax_number fax_extens str_suppl1 str_suppl2 str_suppl3 city1 region&lt;/P&gt;&lt;P&gt;            post_code1 country INTO (it_but-phone,it_but-extens,it_but-alterphone,&lt;/P&gt;&lt;P&gt;            it_but-alterextens,it_but-addr1,it_but-addr2,&lt;/P&gt;&lt;P&gt;            it_but-addr3,it_but-city,it_but-stat,it_but-postalcode,it_but-countr)&lt;/P&gt;&lt;P&gt;            FROM adrc WHERE addrnumber = addnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2007 21:35:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-05T21:35:18Z</dc:date>
    <item>
      <title>Function Module to get the BP Details</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-bp-details/m-p/2455952#M550720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing a FM by taking the firstname and last name and company name I have to get the BP data such as prefix, contact type, firstname, lastname, title, accounname and address with phone number, email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following code but I am unable to get the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_but  OCCURS 0,&lt;/P&gt;&lt;P&gt;         prefix LIKE  but000-prefix1,&lt;/P&gt;&lt;P&gt;         contacttype LIKE but000-bpkind,&lt;/P&gt;&lt;P&gt;         firstname LIKE   but000-name_first,&lt;/P&gt;&lt;P&gt;         lastname LIKE    but000-name_last,&lt;/P&gt;&lt;P&gt;         titl LIKE       but000-title_let,&lt;/P&gt;&lt;P&gt;         accountname LIKE but000-name_org1,&lt;/P&gt;&lt;P&gt;         langu LIKE but000-langu_corr,&lt;/P&gt;&lt;P&gt;         phone LIKE adrc-tel_number,&lt;/P&gt;&lt;P&gt;         extens LIKE adrc-tel_extens,&lt;/P&gt;&lt;P&gt;         alterphone LIKE adrc-tel_number,&lt;/P&gt;&lt;P&gt;         alterextens LIKE adrc-tel_extens,&lt;/P&gt;&lt;P&gt;         addr1 LIKE adrc-str_suppl1,&lt;/P&gt;&lt;P&gt;         addr2 LIKE adrc-str_suppl1,&lt;/P&gt;&lt;P&gt;         addr3 LIKE adrc-str_suppl3,&lt;/P&gt;&lt;P&gt;         email LIKE adr6-smtp_addr,&lt;/P&gt;&lt;P&gt;         city LIKE  adrc-city1,&lt;/P&gt;&lt;P&gt;         stat LIKE  adrc-region,&lt;/P&gt;&lt;P&gt;         postalcode LIKE adrc-post_code1,&lt;/P&gt;&lt;P&gt;         countr LIKE adrc-country.&lt;/P&gt;&lt;P&gt;  DATA : END OF it_but.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT prefix1  bpkind  name_first  name_last  title_let  name_org1   langu_corr   addrcomm INTO&lt;/P&gt;&lt;P&gt;         (it_but-prefix,it_but-contacttype,it_but-firstname,it_but-lastname,&lt;/P&gt;&lt;P&gt;           it_but-title,it_but-accountname,it_but-primarylanguage,addnum )&lt;/P&gt;&lt;P&gt;           FROM but000 WHERE name_first = firstname AND name_last = lastname AND&lt;/P&gt;&lt;P&gt;           name_org1 = company.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT  tel_number tel_extens fax_number fax_extens str_suppl1 str_suppl2 str_suppl3 city1 region&lt;/P&gt;&lt;P&gt;            post_code1 country INTO (it_but-phone,it_but-extens,it_but-alterphone,&lt;/P&gt;&lt;P&gt;            it_but-alterextens,it_but-addr1,it_but-addr2,&lt;/P&gt;&lt;P&gt;            it_but-addr3,it_but-city,it_but-stat,it_but-postalcode,it_but-countr)&lt;/P&gt;&lt;P&gt;            FROM adrc WHERE addrnumber = addnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 21:35:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-bp-details/m-p/2455952#M550720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T21:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the BP Details</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-bp-details/m-p/2455953#M550721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will not get since you just comparing addnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first try to write query with BUT000 Table and keep the data into one internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and get the data from ADRC Table with comparing BUT000 Internal table ( Try to use for all entries ),so that you will get exact data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 21:52:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-bp-details/m-p/2455953#M550721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T21:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the BP Details</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-bp-details/m-p/2455954#M550722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did the following code still I am unable to get entries into internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION zibp_rfc_search_complaint.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(COMPANY) TYPE  BU_NAMEOR1 OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(FIRSTNAME) TYPE  BU_NAMEP_F OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(LASTNAME) TYPE  NAME_LAST OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(PHONE) TYPE  AD_TLNMBR1 OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(CITY) TYPE  AD_CITY1 OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(STATE) TYPE  REGIO OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(POSTALCODE) TYPE  AD_PSTCD1 OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(EMAIL) TYPE  AD_SMTPADR OPTIONAL&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      T_CONTACT STRUCTURE  ZST_COMPLAINTS_CUSTOMER OPTIONAL&lt;/P&gt;&lt;P&gt;*"      ET_RETURN STRUCTURE  BAPIRET2 OPTIONAL&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF it_but OCCURS 0.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE but000.&lt;/P&gt;&lt;P&gt;  DATA:    END OF it_but.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF it_adrc OCCURS 0.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE adrc.&lt;/P&gt;&lt;P&gt;  DATA: END OF it_adrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT  * FROM but000  INTO TABLE it_but&lt;/P&gt;&lt;P&gt;          WHERE name_org1 LIKE company AND&lt;/P&gt;&lt;P&gt;                name_first LIKE firstname AND&lt;/P&gt;&lt;P&gt;                name_last LIKE lastname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    et_return-type = 'E'.&lt;/P&gt;&lt;P&gt;    et_return-message = 'BP Notfound'.&lt;/P&gt;&lt;P&gt;    APPEND et_return.&lt;/P&gt;&lt;P&gt;    CLEAR et_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    t_contact-prefix = it_but-prefix1.&lt;/P&gt;&lt;P&gt;    t_contact-contacttype = it_but-bpkind.&lt;/P&gt;&lt;P&gt;    t_contact-firstname = it_but-name_first.&lt;/P&gt;&lt;P&gt;    t_contact-lastname = it_but-name_last.&lt;/P&gt;&lt;P&gt;    t_contact-title = it_but-title_let.&lt;/P&gt;&lt;P&gt;    t_contact-accountname = it_but-name_org1.&lt;/P&gt;&lt;P&gt;    t_contact-primarylanguage = it_but-langu_corr.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    for all entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT * FROM adrc INTO TABLE it_adrc&lt;/P&gt;&lt;P&gt;    WHERE addrnumber = it_but-addrcomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      t_contact-phone = it_adrc-tel_number.&lt;/P&gt;&lt;P&gt;      t_contact-extension = it_adrc-tel_extens.&lt;/P&gt;&lt;P&gt;      t_contact-alternatephone = it_adrc-fax_number.&lt;/P&gt;&lt;P&gt;      t_contact-alterextension = it_adrc-fax_extens.&lt;/P&gt;&lt;P&gt;      t_contact-address1 = it_adrc-str_suppl1.&lt;/P&gt;&lt;P&gt;      t_contact-address2 = it_adrc-str_suppl2.&lt;/P&gt;&lt;P&gt;      t_contact-address3 = it_adrc-str_suppl3.&lt;/P&gt;&lt;P&gt;      t_contact-city = it_adrc-city1.&lt;/P&gt;&lt;P&gt;      t_contact-state = it_adrc-region.&lt;/P&gt;&lt;P&gt;      t_contact-postalcode = it_adrc-post_code1.&lt;/P&gt;&lt;P&gt;      t_contact-country = it_adrc-country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 22:40:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-bp-details/m-p/2455954#M550722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T22:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the BP Details</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-bp-details/m-p/2455955#M550723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you checked in the debugging as where the code is failing. In which select query you are not getting the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check there should be entries into your DB tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 23:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-bp-details/m-p/2455955#M550723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T23:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the BP Details</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-bp-details/m-p/2455956#M550724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Last name, first name etc are text fields and case sensitive. So when you are creating a function module to do that, you have to make sure that the input is in the same way your database entries. Instead if you use the match code fields MC_NAME1 and MC_NAME2 and convert your input into upper case using TRANSLATE firstname TO UPPER CASE, you can compare them (first 35 characters only).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 00:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-bp-details/m-p/2455956#M550724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T00:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the BP Details</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-bp-details/m-p/2455957#M550725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried it.But I am not getting it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me out in this......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 12:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-bp-details/m-p/2455957#M550725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T12:50:40Z</dc:date>
    </item>
  </channel>
</rss>

