<?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: Smartform variable picking up random values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-variable-picking-up-random-values/m-p/8390023#M1643822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The suggestions helped a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: NeenaJ on Dec 7, 2011 12:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2011 11:01:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-12-07T11:01:08Z</dc:date>
    <item>
      <title>Smartform variable picking up random values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-variable-picking-up-random-values/m-p/8390019#M1643818</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 have created a smart form where i have used a select statement to fetch data for a variable that i need to use in the where condition. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from table KNA1 into wa_kna1 where customer = gs_partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gs_partner is of a type data element  that is part of a structure. However at runtime this gs_partner is picking up some random value.  Before the execution of my code its already filled with data. It is being used in the footer as well with the same select statement. So ultimately my smartform is  it displaying the detailss of some random customer. I thought it could be a buffer memory issues so I logged out and logged in again. I also used the clear statemnt at the end of my code. Still I am getting the same value. How could this value be fetched randomly while designing the smartform? is there any way I can find out how and where this value is being filled&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 07:31:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-variable-picking-up-random-values/m-p/8390019#M1643818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-07T07:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform variable picking up random values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-variable-picking-up-random-values/m-p/8390020#M1643819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So Neena, what you currently have is : &lt;/P&gt;&lt;P&gt;there is a variable gs_partner (is this a variable or a workarea??)&lt;/P&gt;&lt;P&gt;you are using this inside the smartform&lt;/P&gt;&lt;P&gt;---&amp;gt; where are you picking this gs_partner from?&lt;/P&gt;&lt;P&gt;---&amp;gt; are you picking it before the smartform call(in the driver program) or inside the smartform,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;answer these then i think you can easily find the answer to your question&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 08:12:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-variable-picking-up-random-values/m-p/8390020#M1643819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-07T08:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform variable picking up random values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-variable-picking-up-random-values/m-p/8390021#M1643820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the value of &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;gs_partner&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;+ before calling the smartforms,&lt;/P&gt;&lt;P&gt;+ before select statement&lt;/P&gt;&lt;P&gt;+ after select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you put the select statement in the smartform? Why don't you transfer KNA1 to the smartform instead of selecting in the smartform?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select statement in footer window, the variable gs_partner can be used somewhere before that, or changed before going to the footer window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 08:17:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-variable-picking-up-random-values/m-p/8390021#M1643820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-07T08:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform variable picking up random values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-variable-picking-up-random-values/m-p/8390022#M1643821</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;Thanks for the suggestions. I got the solution because of the suggestions. gs_partner is a variable that was fillled before the select statement. It was called inside the smartform itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 11:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-variable-picking-up-random-values/m-p/8390022#M1643821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-07T11:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform variable picking up random values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-variable-picking-up-random-values/m-p/8390023#M1643822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The suggestions helped a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: NeenaJ on Dec 7, 2011 12:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 11:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-variable-picking-up-random-values/m-p/8390023#M1643822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-07T11:01:08Z</dc:date>
    </item>
  </channel>
</rss>

