<?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 Re: Accessing BAPI structures in Excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-bapi-structures-in-excel/m-p/1900638#M376076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out....seems I was doing it right all along, just didn't have the right VB to print the fields that I wanted form ADDRESS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, it helped me see my VB mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2007 21:25:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-10T21:25:24Z</dc:date>
    <item>
      <title>Accessing BAPI structures in Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-bapi-structures-in-excel/m-p/1900636#M376074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently developing an Excel tool that calls BAPI_USER_GET_DETAIL to determine the user's firstname and lastname from the Export structure ADDRESS (BAPIADDR3).  I am having trouble in how I should declare a variable to contain the contents of this structure and how to access the FIRSTNAME and LASTNAME fields of the structure.  It seems that when I try to access ADDRESS as a string it returns a value of "Error 0".  Any help here would help.&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;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 20:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-bapi-structures-in-excel/m-p/1900636#M376074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T20:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing BAPI structures in Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-bapi-structures-in-excel/m-p/1900637#M376075</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;I assume tha you are using Visual Basic... &lt;/P&gt;&lt;P&gt;You can find small example below. Generally structures similar to tables are managed as objects so you should define it as Object... In example I used PartnerList variable to get fields values of returned table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim MyFunc, PartnerList, Row As Object&lt;/P&gt;&lt;P&gt;Dim Result As Boolean&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set MyFunc = Funct.Add("BAPI_FUNCTION_NAME")&lt;/P&gt;&lt;P&gt;Set PartnerList = MyFunc.Tables("PARTNER_LIST")&lt;/P&gt;&lt;P&gt;Result = MyFunc.Call&lt;/P&gt;&lt;P&gt;If Result = True Then&lt;/P&gt;&lt;P&gt;  Set PartnerList = MyFunc.Tables("PARTNER_LIST")&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  For Each Row In PartnerList.Rows&lt;/P&gt;&lt;P&gt;    Text = Row("PARTNER_NO") + " " + Row("BPTYPE") + " " + Row("NAME1")&lt;/P&gt;&lt;P&gt;    MsgBox Text&lt;/P&gt;&lt;P&gt;  Next Row&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;  MsgBox MyFunc.Exception&lt;/P&gt;&lt;P&gt;  Funct.Connection.Logoff&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krzys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 20:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-bapi-structures-in-excel/m-p/1900637#M376075</guid>
      <dc:creator>krzysztof_konitz4</dc:creator>
      <dc:date>2007-01-10T20:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing BAPI structures in Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-bapi-structures-in-excel/m-p/1900638#M376076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out....seems I was doing it right all along, just didn't have the right VB to print the fields that I wanted form ADDRESS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, it helped me see my VB mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 21:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-bapi-structures-in-excel/m-p/1900638#M376076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T21:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing BAPI structures in Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-bapi-structures-in-excel/m-p/1900639#M376077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently developing a Leave Application in VB that calls BAPI_USER_GET_DETAIL. I am facing same problem as u faced it earlier, to determine the user's FullName from the Export structure ADDRESS (BAPIADDR3). I am having trouble in how I should declare a variable to contain the contents of this structure and how to access the FullName fields of the structure. I hope that u overcame this problem.if so please give some details code&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;Minaxi Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 10:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-bapi-structures-in-excel/m-p/1900639#M376077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T10:30:34Z</dc:date>
    </item>
  </channel>
</rss>

