<?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: BAPIs and JAVA , method setValue() is giving error ??? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapis-and-java-method-setvalue-is-giving-error/m-p/2598764#M595363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nilesh,&lt;/P&gt;&lt;P&gt;Check my thread &lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/07/05/sap" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/07/05/sap&lt;/A&gt;&lt;EM&gt;Application&lt;/EM&gt;Hierarchy&lt;EM&gt;using&lt;/EM&gt;JAVA&amp;amp;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Jul 2007 06:46:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-28T06:46:25Z</dc:date>
    <item>
      <title>BAPIs and JAVA , method setValue() is giving error ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapis-and-java-method-setvalue-is-giving-error/m-p/2598763#M595362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;I havea bapi ,which i m calling from my java application using JCO , &lt;/P&gt;&lt;P&gt;The function module : 'ZBAPINEW1'&lt;/P&gt;&lt;P&gt;Import parameter : IN1 type ZBAPI_NEW1 ( ZBAPI_NEW1 is a structure having 'CARRID' as the only field inside )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the code inside the java pgm is as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IFunctionTemplate ft = repository.getFunctionTemplate("ZBAPINEW1");&lt;/P&gt;&lt;P&gt;          . &lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  JCO.Function func = ft.getFunction();&lt;/P&gt;&lt;P&gt;JCO.ParameterList input = func.getImportParameterList();&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;i&amp;gt; &amp;lt;b&amp;gt;input.setValue("AA","IN1");&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is here that it is giving me error that the value string"AA" cant be assigned to a structure "IN1" , which is understandable ..but now  my qn is how to assign import values to the fields of the BAPI function module whic are of type structure.&lt;/P&gt;&lt;P&gt;PLz help !!&lt;/P&gt;&lt;P&gt;Thank in advance&lt;/P&gt;&lt;P&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jul 2007 05:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapis-and-java-method-setvalue-is-giving-error/m-p/2598763#M595362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-28T05:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPIs and JAVA , method setValue() is giving error ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapis-and-java-method-setvalue-is-giving-error/m-p/2598764#M595363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nilesh,&lt;/P&gt;&lt;P&gt;Check my thread &lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/07/05/sap" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/07/05/sap&lt;/A&gt;&lt;EM&gt;Application&lt;/EM&gt;Hierarchy&lt;EM&gt;using&lt;/EM&gt;JAVA&amp;amp;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jul 2007 06:46:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapis-and-java-method-setvalue-is-giving-error/m-p/2598764#M595363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-28T06:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPIs and JAVA , method setValue() is giving error ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapis-and-java-method-setvalue-is-giving-error/m-p/2598765#M595364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i went through ur link&lt;/P&gt;&lt;P&gt;but i didn understand 1 thing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input.setValue("INFO_TABLT", "QUERY_TABLE");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the QUERY_table is an import parameter in ur function module , so is it of type DDIC structure which contaisn some fileds or directly some DDIC field .IF this is aDDIC structure (as in my case) how can we assign the value to the structure , rather iw ant ot assign that value to one field in that structure (         IN1-carrid in my case) . &lt;/P&gt;&lt;P&gt;thank &lt;/P&gt;&lt;P&gt;nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jul 2007 07:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapis-and-java-method-setvalue-is-giving-error/m-p/2598765#M595364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-28T07:31:58Z</dc:date>
    </item>
  </channel>
</rss>

