<?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: Problem in Updating the Variant values through program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-updating-the-variant-values-through-program/m-p/594658#M24135</link>
    <description>&lt;P&gt;Thank you Matthew.&lt;/P&gt;
  &lt;P&gt;But After debugging also still not able to trace.&lt;/P&gt;
  &lt;P&gt;I tried differently , By maintaining variable in TVRAVC.&lt;/P&gt;
  &lt;P&gt;And update it through program and retrieve the same by selecting the variant as selection varaible "T" and name of TVARVC variable for the field in the variant.&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Raj&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jun 2018 14:55:29 GMT</pubDate>
    <dc:creator>jay_kumar8</dc:creator>
    <dc:date>2018-06-14T14:55:29Z</dc:date>
    <item>
      <title>Problem in Updating the Variant values through program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-updating-the-variant-values-through-program/m-p/594653#M24130</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I had requirement to change the selection screen&lt;STRONG&gt; created_at &lt;/STRONG&gt;field dynamically based on the report execution date.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;created_at&lt;/STRONG&gt; field is of data type DEC 15.&lt;/P&gt;
  &lt;P&gt;Domain for this field is of type COM_TSTMP&lt;/P&gt;
  &lt;P&gt;The values for this field will be stored in the format as shown below &lt;/P&gt;
  &lt;P&gt;07.01.2010 12:10:13 &lt;STRONG&gt;TO &lt;/STRONG&gt;20.01.2010 15:10:13&lt;/P&gt;
  &lt;P&gt;Due to this format i cannot populate the date dynamically.&lt;/P&gt;
  &lt;P&gt;so decided to use the FM &lt;STRONG&gt;RS_CHANGE_CREATED_VARIANT&lt;/STRONG&gt; to change the variant based on execution of report and trying to populate the select options.&lt;/P&gt;
  &lt;P&gt;I am populate the field &lt;B&gt;created_at &lt;/B&gt;manually as per my requirement&lt;/P&gt;
  &lt;P&gt;and passing the values to the tables parameter &lt;STRONG&gt;vari_contents&lt;/STRONG&gt; of the function module &lt;B&gt;RS_CHANGE_CREATED_VARIANT.&lt;/B&gt;&lt;/P&gt;
  &lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;
  &lt;P&gt;it is resulted in&lt;B&gt; runtime error saying that &lt;/B&gt;&lt;STRONG&gt;Unable to interpret "20180613 00:00:01" as a number&lt;/STRONG&gt;.&lt;/P&gt;
  &lt;P&gt;Is there any way to overwrite the variant values for the field which is of data type DEC.&lt;/P&gt;
  &lt;P&gt;I tried many ways but the result is same.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Jai&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 07:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-updating-the-variant-values-through-program/m-p/594653#M24130</guid>
      <dc:creator>jay_kumar8</dc:creator>
      <dc:date>2018-06-13T07:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Updating the Variant values through program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-updating-the-variant-values-through-program/m-p/594654#M24131</link>
      <description>&lt;P&gt;Looks like you're populating your field with the display format rather than the input format which is YYYYMMDDhhmmss&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 08:43:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-updating-the-variant-values-through-program/m-p/594654#M24131</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-06-13T08:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Updating the Variant values through program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-updating-the-variant-values-through-program/m-p/594655#M24132</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
  &lt;P&gt;Will this ABAP statement do ?&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;CONVERT DATE syst-datum TIME syst-uzeit INTO TIME STAMP created_at TIME ZONE gv_timezone.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Regards Jack&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 08:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-updating-the-variant-values-through-program/m-p/594655#M24132</guid>
      <dc:creator>JackGraus</dc:creator>
      <dc:date>2018-06-13T08:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Updating the Variant values through program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-updating-the-variant-values-through-program/m-p/594656#M24133</link>
      <description>&lt;P&gt;Thank you very much Mathew, Its working.&lt;/P&gt;
  &lt;P&gt;But the problem here is it is populating differently in the selection screen even though i am concatenating SY-DATUM and time as shown below.&lt;/P&gt;
  &lt;P&gt;CONCATENATE sy-datum '000001' INTO lv_dtfrm ....from value of &lt;B&gt;created_at &lt;/B&gt;field&lt;/P&gt;
  &lt;P&gt;CONCATENATE sy-datum '235959' INTO lv_dtto ......TO value of &lt;B&gt;created_at &lt;/B&gt;field&lt;/P&gt;
  &lt;P&gt;the variant in selection screen is updating as&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/158530-date.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Anything doing wrong here..&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 09:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-updating-the-variant-values-through-program/m-p/594656#M24133</guid>
      <dc:creator>jay_kumar8</dc:creator>
      <dc:date>2018-06-13T09:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Updating the Variant values through program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-updating-the-variant-values-through-program/m-p/594657#M24134</link>
      <description>&lt;P&gt;You should run it in debug and see how the data is being converted. Also consider that it might be better to use GET TIMESTAMP than to use SY-DATUM and concatenate.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 11:40:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-updating-the-variant-values-through-program/m-p/594657#M24134</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-06-13T11:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Updating the Variant values through program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-updating-the-variant-values-through-program/m-p/594658#M24135</link>
      <description>&lt;P&gt;Thank you Matthew.&lt;/P&gt;
  &lt;P&gt;But After debugging also still not able to trace.&lt;/P&gt;
  &lt;P&gt;I tried differently , By maintaining variable in TVRAVC.&lt;/P&gt;
  &lt;P&gt;And update it through program and retrieve the same by selecting the variant as selection varaible "T" and name of TVARVC variable for the field in the variant.&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Raj&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:55:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-updating-the-variant-values-through-program/m-p/594658#M24135</guid>
      <dc:creator>jay_kumar8</dc:creator>
      <dc:date>2018-06-14T14:55:29Z</dc:date>
    </item>
  </channel>
</rss>

