<?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: sap.net connector error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-net-connector-error/m-p/876326#M50753</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;When you enter an example in SE37, some field conversion exits are active. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example base_unit_qty will be translated from english PC to database format ST (german :-).&lt;/P&gt;&lt;P&gt;Try to use ..._iso and PCE (or something like that), than you are language independent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same is valid for material number, if you have values without character -&amp;gt; use CONVERSION_EXIT_ALPHA_INPUT for translation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Feb 2005 16:40:26 GMT</pubDate>
    <dc:creator>christian_wohlfahrt</dc:creator>
    <dc:date>2005-02-22T16:40:26Z</dc:date>
    <item>
      <title>sap.net connector error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-net-connector-error/m-p/876325#M50752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get an error when I try to call BAPI_HU_PACK from a vb.net application.  I can call RM_RS_Upload without any trouble so I know I have my connection correct.  When I call BAPI_HU_PACK, the application jumps out with "Object referece not set to an instance of an object."&lt;/P&gt;&lt;P&gt;I have ran the same function inside the GUI with SE37 and it ran correctly with exactly the same data as I am trying to pass from the application.  I don't actually get an SAP error returned, but rather an application run time error.  My SAP system log states "Communication Error, CPIC return code 020, SAP return code 223"  My code is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Dim proxyme As SAPProxyPack.SAPProxy1&lt;/P&gt;&lt;P&gt;        Dim bapItem As New SAPProxyPack.BAPIHUITEM&lt;/P&gt;&lt;P&gt;        Dim bapret2 As New SAPProxyPack.BAPIRET2Table&lt;/P&gt;&lt;P&gt;        Dim baphuprop As New SAPProxyPack.BAPIHUITMPROPOSAL&lt;/P&gt;&lt;P&gt;        Dim baphuhead As New SAPProxyPack.BAPIHUHEADER&lt;/P&gt;&lt;P&gt;        Dim bapserial As New SAPProxyPack.BAPIHUITMSERIALTable&lt;/P&gt;&lt;P&gt;        Dim bapseritem As New SAPProxyPack.BAPIHUITMSERIAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        With baphuprop&lt;/P&gt;&lt;P&gt;            .Hu_Item_Type = "1"&lt;/P&gt;&lt;P&gt;            .Material = "01B209AB"&lt;/P&gt;&lt;P&gt;            .Pack_Qty = 1&lt;/P&gt;&lt;P&gt;            .Plant = "1862"&lt;/P&gt;&lt;P&gt;            .Base_Unit_Qty_Iso = ""&lt;/P&gt;&lt;P&gt;            .Base_Unit_Qty = "PC"&lt;/P&gt;&lt;P&gt;            .Stge_Loc = "0001"&lt;/P&gt;&lt;P&gt;            .No_Of_Serial_Numbers = 0&lt;/P&gt;&lt;P&gt;            .Number_Pack_Mat = 0&lt;/P&gt;&lt;P&gt;            '.Flag_Suplmt_Item = "0"&lt;/P&gt;&lt;P&gt;        End With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Try&lt;/P&gt;&lt;P&gt;            proxyme = New SAPProxyPack.SAPProxy1&lt;/P&gt;&lt;P&gt;            proxyme.Connection = New SAP.Connector.SAPConnection(SAPDestination)&lt;/P&gt;&lt;P&gt;            proxyme.Connection.Open()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            'MsgBox(proxyme.Connection.SystemRelease)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Call proxyme.Bapi_Hu_Pack("12345", baphuprop, baphuhead, bapItem, bapret2, bapserial)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            'Me.DataGrid1.DataSource = bapret2.ToADODataTable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            proxyme.Connection.Close()&lt;/P&gt;&lt;P&gt;            proxyme.Connection.Dispose()&lt;/P&gt;&lt;P&gt;        Catch ex As Exception&lt;/P&gt;&lt;P&gt;            MsgBox(ex.Message.ToString)&lt;/P&gt;&lt;P&gt;        End Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2005 22:41:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-net-connector-error/m-p/876325#M50752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-21T22:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: sap.net connector error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-net-connector-error/m-p/876326#M50753</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;When you enter an example in SE37, some field conversion exits are active. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example base_unit_qty will be translated from english PC to database format ST (german :-).&lt;/P&gt;&lt;P&gt;Try to use ..._iso and PCE (or something like that), than you are language independent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same is valid for material number, if you have values without character -&amp;gt; use CONVERSION_EXIT_ALPHA_INPUT for translation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2005 16:40:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-net-connector-error/m-p/876326#M50753</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-02-22T16:40:26Z</dc:date>
    </item>
  </channel>
</rss>

