<?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: Variants changing values dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants-changing-values-dynamically/m-p/7134353#M1512796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manipal Parkala &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a program runs in background the system field sy-batch set to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can insert a code on top most of your START-OF-SELECTION block&lt;/P&gt;&lt;P&gt;like that :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-batch eq 'X'.&lt;/P&gt;&lt;P&gt;    Created on Date/Time(From)   = Created on Date/Time(To)  .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jul 2010 17:42:34 GMT</pubDate>
    <dc:creator>bbalci</dc:creator>
    <dc:date>2010-07-30T17:42:34Z</dc:date>
    <item>
      <title>Variants changing values dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants-changing-values-dynamically/m-p/7134351#M1512794</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;In the selection screen of my report i need to create variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two fields in selection parameter namely&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Created on Date/Time(From)&lt;/P&gt;&lt;P&gt;2. Created on Date/Time(To)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the program runs in background the variant must be such that once the report runs&lt;/P&gt;&lt;P&gt;the value of Created on Date/Time(To) must be saved to the value of Created on Date/Time(From) in the variant automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest me how a variant can be created to satisfy this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 15:37:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants-changing-values-dynamically/m-p/7134351#M1512794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-30T15:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variants changing values dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants-changing-values-dynamically/m-p/7134352#M1512795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create entries in TVARVC table, read and write those from within your program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 16:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants-changing-values-dynamically/m-p/7134352#M1512795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-30T16:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variants changing values dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants-changing-values-dynamically/m-p/7134353#M1512796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manipal Parkala &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a program runs in background the system field sy-batch set to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can insert a code on top most of your START-OF-SELECTION block&lt;/P&gt;&lt;P&gt;like that :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-batch eq 'X'.&lt;/P&gt;&lt;P&gt;    Created on Date/Time(From)   = Created on Date/Time(To)  .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 17:42:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants-changing-values-dynamically/m-p/7134353#M1512796</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-07-30T17:42:34Z</dc:date>
    </item>
  </channel>
</rss>

